Brian Silverman | 3204dd8 | 2013-03-12 18:42:01 -0700 | [diff] [blame] | 1 | #include "aos/common/sensors/sensor_receiver.h" |
2 | #include "aos/atom_code/init.h" | ||||
3 | |||||
4 | #include "frc971/queues/sensor_values.h" | ||||
5 | #include "frc971/input/sensor_unpacker.h" | ||||
6 | |||||
7 | int main() { | ||||
8 | ::aos::Init(); | ||||
9 | ::frc971::SensorUnpacker unpacker; | ||||
10 | ::aos::sensors::NetworkSensorReceiver< ::frc971::sensor_values> | ||||
11 | receiver(&unpacker); | ||||
12 | while (true) { | ||||
13 | receiver.RunIteration(); | ||||
14 | } | ||||
15 | ::aos::Cleanup(); | ||||
16 | } |