Add localizer reset buttons to the drivetrain
This lets us recover without command line help.
Change-Id: Ia2ef1837a2ec1cf17ec1974832b1bd552e7c0e4a
Signed-off-by: Austin Schuh <austin.linux@gmail.com>
diff --git a/frc971/input/action_joystick_input.h b/frc971/input/action_joystick_input.h
index cdd0aa6..3284b15 100644
--- a/frc971/input/action_joystick_input.h
+++ b/frc971/input/action_joystick_input.h
@@ -65,6 +65,11 @@
return drivetrain_input_reader_->robot_velocity();
}
+ // Returns the current drivetrain status.
+ const control_loops::drivetrain::Status *drivetrain_status() const {
+ return drivetrain_input_reader_->drivetrain_status();
+ }
+
// Returns the drivetrain config.
const ::frc971::control_loops::drivetrain::DrivetrainConfig<double>
dt_config() const {