Convert control loop tests over to simulated event loop
This makes it so that we properly only use ShmEventLoop for running in
realtime on a robot. Very nice.
Change-Id: I46b770b336f59e08cfaf28511b3bd5689f72fff1
diff --git a/y2018/joystick_reader.cc b/y2018/joystick_reader.cc
index d819c6f..b4c4efa 100644
--- a/y2018/joystick_reader.cc
+++ b/y2018/joystick_reader.cc
@@ -373,9 +373,12 @@
} // namespace y2018
int main() {
- ::aos::Init(-1);
+ ::aos::InitNRT(true);
+
::aos::ShmEventLoop event_loop;
::y2018::input::joysticks::Reader reader(&event_loop);
- reader.Run();
+
+ event_loop.Run();
+
::aos::Cleanup();
}