Convert aos over to flatbuffers
Everything builds, and all the tests pass. I suspect that some entries
are missing from the config files, but those will be found pretty
quickly on startup.
There is no logging or live introspection of queue messages.
Change-Id: I496ee01ed68f202c7851bed7e8786cee30df29f5
diff --git a/aos/input/joystick_input.h b/aos/input/joystick_input.h
index ed72e78..5e8bf5a 100644
--- a/aos/input/joystick_input.h
+++ b/aos/input/joystick_input.h
@@ -3,7 +3,7 @@
#include <atomic>
-#include "aos/events/event-loop.h"
+#include "aos/events/event_loop.h"
#include "aos/input/driver_station_data.h"
namespace aos {
@@ -21,7 +21,7 @@
event_loop_->MakeWatcher(
".aos.joystick_state",
[this](const ::aos::JoystickState &joystick_state) {
- this->HandleData(joystick_state);
+ this->HandleData(&joystick_state);
});
event_loop->SetRuntimeRealtimePriority(29);
}
@@ -30,7 +30,7 @@
int mode() const { return mode_; }
private:
- void HandleData(const ::aos::JoystickState &joystick_state);
+ void HandleData(const ::aos::JoystickState *joystick_state);
// Subclasses should do whatever they want with data here.
virtual void RunIteration(const driver_station::Data &data) = 0;
@@ -41,12 +41,6 @@
int mode_;
};
-// Class which will proxy joystick information from UDP packets to the queues.
-class JoystickProxy {
- public:
- void Run();
-};
-
} // namespace input
} // namespace aos