update the information about enabled vs not
With the roboRIO, we get different information about whether motors are
enabled (and some about sensors too), so the system for propagating it
around to everything needs to change.
Change-Id: I7e5f9591eeac1fdfe57b271333c3827431fbef01
diff --git a/frc971/wpilib/joystick_sender.cc b/frc971/wpilib/joystick_sender.cc
index 7115c38..de7fe88 100644
--- a/frc971/wpilib/joystick_sender.cc
+++ b/frc971/wpilib/joystick_sender.cc
@@ -20,7 +20,7 @@
while (run_) {
ds->WaitForData();
- auto new_state = ::aos::robot_state.MakeMessage();
+ auto new_state = ::aos::joystick_state.MakeMessage();
HALControlWord control_word;
HALGetControlWord(&control_word);
@@ -37,10 +37,10 @@
new_state->joysticks[i].axis[j] = ds->GetStickAxis(i, j);
}
}
- LOG_STRUCT(DEBUG, "robot_state", *new_state);
+ LOG_STRUCT(DEBUG, "joystick_state", *new_state);
if (!new_state.Send()) {
- LOG(WARNING, "sending robot_state failed\n");
+ LOG(WARNING, "sending joystick_state failed\n");
}
}
}