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/aos/input/joystick_input.h b/aos/input/joystick_input.h
index 98a89b1..ed72e78 100644
--- a/aos/input/joystick_input.h
+++ b/aos/input/joystick_input.h
@@ -23,10 +23,9 @@
[this](const ::aos::JoystickState &joystick_state) {
this->HandleData(joystick_state);
});
+ event_loop->SetRuntimeRealtimePriority(29);
}
- void Run();
-
protected:
int mode() const { return mode_; }
@@ -36,10 +35,6 @@
// Subclasses should do whatever they want with data here.
virtual void RunIteration(const driver_station::Data &data) = 0;
- static void Quit(int /*signum*/);
-
- static ::std::atomic<bool> run_;
-
EventLoop *event_loop_;
driver_station::Data data_;