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/y2014/control_loops/claw/claw_position.fbs b/y2014/control_loops/claw/claw_position.fbs
new file mode 100644
index 0000000..17d9f17
--- /dev/null
+++ b/y2014/control_loops/claw/claw_position.fbs
@@ -0,0 +1,25 @@
+include "frc971/control_loops/control_loops.fbs";
+
+namespace y2014.control_loops.claw;
+
+// All angles here are 0 vertical, positive "up" (aka backwards).
+table HalfClawPosition {
+ // The current position of this half of the claw.
+ position:double;
+
+ // The hall effect sensor at the front limit.
+ front:frc971.HallEffectStruct;
+ // The hall effect sensor in the middle to use for real calibration.
+ calibration:frc971.HallEffectStruct;
+ // The hall effect at the back limit.
+ back:frc971.HallEffectStruct;
+}
+
+table Position {
+ // All the top claw information.
+ top:HalfClawPosition;
+ // All the bottom claw information.
+ bottom:HalfClawPosition;
+}
+
+root_type Position;