Convert y2014 to use explicit ids
This makes it harder to accidentally break compatability
Change-Id: Id0e5cdb56a1e442b7d39fd7c9f9424a192462462
diff --git a/y2014/control_loops/claw/claw_position.fbs b/y2014/control_loops/claw/claw_position.fbs
index 17d9f17..2a8eb8a 100644
--- a/y2014/control_loops/claw/claw_position.fbs
+++ b/y2014/control_loops/claw/claw_position.fbs
@@ -5,21 +5,21 @@
// All angles here are 0 vertical, positive "up" (aka backwards).
table HalfClawPosition {
// The current position of this half of the claw.
- position:double;
+ position:double (id: 0);
// The hall effect sensor at the front limit.
- front:frc971.HallEffectStruct;
+ front:frc971.HallEffectStruct (id: 1);
// The hall effect sensor in the middle to use for real calibration.
- calibration:frc971.HallEffectStruct;
+ calibration:frc971.HallEffectStruct (id: 2);
// The hall effect at the back limit.
- back:frc971.HallEffectStruct;
+ back:frc971.HallEffectStruct (id: 3);
}
table Position {
// All the top claw information.
- top:HalfClawPosition;
+ top:HalfClawPosition (id: 0);
// All the bottom claw information.
- bottom:HalfClawPosition;
+ bottom:HalfClawPosition (id: 1);
}
root_type Position;