Make stilts deploy button higher priority
Change-Id: Ic3d2b9436bb818e374a2997e8bc1e5349f9f5e10
diff --git a/y2019/joystick_reader.cc b/y2019/joystick_reader.cc
index 17cc45f..f29855a 100644
--- a/y2019/joystick_reader.cc
+++ b/y2019/joystick_reader.cc
@@ -186,10 +186,10 @@
}
// TODO(sabina): max height please?
- if (data.IsPressed(kDeployStilt)) {
- new_superstructure_goal->stilts.unsafe_goal = 0.50;
- } else if (data.IsPressed(kFallOver)) {
+ if (data.IsPressed(kFallOver)) {
new_superstructure_goal->stilts.unsafe_goal = 0.71;
+ } else if (data.IsPressed(kDeployStilt)) {
+ new_superstructure_goal->stilts.unsafe_goal = 0.50;
} else {
new_superstructure_goal->stilts.unsafe_goal = 0.01;
}