Improve intaking.
Add a stuck box detector (box intake velocity), and better handling for
boxes coming in sideways.
Change-Id: I5fa4a5b00f7dd1288f8fed33375953bdfe710559
diff --git a/y2018/control_loops/superstructure/superstructure.q b/y2018/control_loops/superstructure/superstructure.q
index 9bdabed..e2cad73 100644
--- a/y2018/control_loops/superstructure/superstructure.q
+++ b/y2018/control_loops/superstructure/superstructure.q
@@ -132,12 +132,15 @@
bool grab_box;
bool open_claw;
+ bool close_claw;
bool deploy_fork;
bool hook_release;
double voltage_winch;
+
+ bool disable_box_correct;
};
message Status {
@@ -152,6 +155,9 @@
IntakeSideStatus right_intake;
ArmStatus arm;
+
+ double filtered_box_velocity;
+ uint32_t rotation_state;
};
message Position {