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/frc971/codelab/basic.fbs b/frc971/codelab/basic.fbs
new file mode 100644
index 0000000..82c9607
--- /dev/null
+++ b/frc971/codelab/basic.fbs
@@ -0,0 +1,35 @@
+namespace frc971.codelab;
+
+// The theme of this basic test is a simple intake system.
+//
+// The system will have a motor driven by the voltage returned
+// by output, and then eventually this motor, when run enough,
+// will trigger the limit_sensor. The hypothetical motor should shut
+// off in that hypothetical situation to avoid hypothetical burnout.
+table Goal {
+ // The control loop needs to intake now.
+ intake:bool;
+}
+
+table Position {
+ // This is a potential incoming sensor value letting us know
+ // if we need to be intaking.
+ limit_sensor:bool;
+}
+
+table Status {
+ // Lets consumers of basic_queue.status know if
+ // the requested intake is finished.
+ intake_complete:bool;
+}
+
+table Output {
+ // This would be set up to drive a hypothetical motor that would
+ // hope to intake something.
+ intake_voltage:double;
+}
+
+root_type Goal;
+root_type Position;
+root_type Status;
+root_type Output;