Files
openpilot-evo/selfdrive/locationd/ubloxd.cc
T
Adeeb Shihadeh 0f22f60170 small ubloxd cleanup
old-commit-hash: c131f9db57ba92bdf69481757203a6ac72fac986
2020-12-19 15:05:40 -08:00

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);
}