mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-22 00:43:44 +08:00
0f22f60170
old-commit-hash: c131f9db57ba92bdf69481757203a6ac72fac986
23 lines
403 B
C++
23 lines
403 B
C++
#include <stdio.h>
|
|
|
|
#include "messaging.hpp"
|
|
|
|
#include "ublox_msg.h"
|
|
|
|
Message * poll_ubloxraw_msg(Poller * poller) {
|
|
auto p = poller->poll(1000);
|
|
|
|
if (p.size()) {
|
|
return p[0]->receive();
|
|
} else {
|
|
return NULL;
|
|
}
|
|
}
|
|
|
|
int send_gps_event(PubSocket *s, const void *buf, size_t len) {
|
|
return s->send((char*)buf, len);
|
|
}
|
|
|
|
int main() {
|
|
return ubloxd_main(poll_ubloxraw_msg, send_gps_event);
|
|
} |