Modified the angle adjust code to use the new zeroed_joint.
diff --git a/frc971/control_loops/wrist/wrist.cc b/frc971/control_loops/wrist/wrist.cc
index 85cc221..13471fa 100644
--- a/frc971/control_loops/wrist/wrist.cc
+++ b/frc971/control_loops/wrist/wrist.cc
@@ -75,7 +75,6 @@
transformed_position.position = position->pos;
transformed_position.hall_effects[0] = position->hall_effect;
transformed_position.hall_effect_positions[0] = position->calibration;
- printf("Position is %f\n", position->pos);
}
const double voltage = zeroed_joint_.Update(transformed_position_ptr,
@@ -90,7 +89,6 @@
if (output) {
output->voltage = voltage;
- printf("Voltage applied is %f\n", voltage);
}
}
diff --git a/frc971/control_loops/wrist/wrist.h b/frc971/control_loops/wrist/wrist.h
index 1dd9afd..a53f603 100644
--- a/frc971/control_loops/wrist/wrist.h
+++ b/frc971/control_loops/wrist/wrist.h
@@ -29,6 +29,9 @@
// True if the wrist is zeroing.
bool is_zeroing() const { return zeroed_joint_.is_zeroing(); }
+ // True if the wrist is zeroing.
+ bool is_moving_off() const { return zeroed_joint_.is_moving_off(); }
+
// True if the state machine is uninitialized.
bool is_uninitialized() const { return zeroed_joint_.is_uninitialized(); }