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_goal.fbs b/y2014/control_loops/claw/claw_goal.fbs
index eb5860c..8db5e68 100644
--- a/y2014/control_loops/claw/claw_goal.fbs
+++ b/y2014/control_loops/claw/claw_goal.fbs
@@ -3,13 +3,13 @@
// All angles here are 0 vertical, positive "up" (aka backwards).
table Goal {
// The angle of the bottom claw.
- bottom_angle:double;
+ bottom_angle:double (id: 0);
// How much higher the top claw is.
- separation_angle:double;
+ separation_angle:double (id: 1);
// top claw intake roller
- intake:double;
+ intake:double (id: 2);
// bottom claw tusk centering
- centering:double;
+ centering:double (id: 3);
}
root_type Goal;
diff --git a/y2014/control_loops/claw/claw_output.fbs b/y2014/control_loops/claw/claw_output.fbs
index 8cb42e0..d0a6b58 100644
--- a/y2014/control_loops/claw/claw_output.fbs
+++ b/y2014/control_loops/claw/claw_output.fbs
@@ -2,10 +2,10 @@
// All angles here are 0 vertical, positive "up" (aka backwards).
table Output {
- intake_voltage:double;
- top_claw_voltage:double;
- bottom_claw_voltage:double;
- tusk_voltage:double;
+ intake_voltage:double (id: 0);
+ top_claw_voltage:double (id: 1);
+ bottom_claw_voltage:double (id: 2);
+ tusk_voltage:double (id: 3);
}
root_type Output;
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;
diff --git a/y2014/control_loops/claw/claw_status.fbs b/y2014/control_loops/claw/claw_status.fbs
index eda9279..7d502cc 100644
--- a/y2014/control_loops/claw/claw_status.fbs
+++ b/y2014/control_loops/claw/claw_status.fbs
@@ -3,19 +3,19 @@
// All angles here are 0 vertical, positive "up" (aka backwards).
table Status {
// True if zeroed enough for the current period (autonomous or teleop).
- zeroed:bool;
+ zeroed:bool (id: 0);
// True if zeroed as much as we will force during autonomous.
- zeroed_for_auto:bool;
+ zeroed_for_auto:bool (id: 1);
// True if zeroed and within tolerance for separation and bottom angle.
- done:bool;
+ done:bool (id: 2);
// True if zeroed and within tolerance for separation and bottom angle.
// seperation allowance much wider as a ball may be included
- done_with_ball:bool;
+ done_with_ball:bool (id: 3);
// Dump the values of the state matrix.
- bottom:double;
- bottom_velocity:double;
- separation:double;
- separation_velocity:double;
+ bottom:double (id: 4);
+ bottom_velocity:double (id: 5);
+ separation:double (id: 6);
+ separation_velocity:double (id: 7);
}
root_type Status;