Skip to content

Commit

Permalink
rm solenoid operations while closing tc lid (#478)
Browse files Browse the repository at this point in the history
  • Loading branch information
caila-marashaj authored and ahiuchingau committed Nov 18, 2024
1 parent 895677c commit dfd16e5
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -983,8 +983,6 @@ class MotorTask {
if (_lid_stepper_state.status != LidStepperState::Status::IDLE) {
return false;
}
// First release the latch
policy.lid_solenoid_engage();
// Update velocity for this movement
std::ignore = policy.lid_stepper_set_rpm(
LidStepperState::LID_DEFAULT_VELOCITY_RPM);
Expand Down Expand Up @@ -1279,9 +1277,6 @@ class MotorTask {
LidStepperState::Status::CLOSE_OVERDRIVE;
break;
case LidStepperState::Status::CLOSE_OVERDRIVE:
// Now that the lid is at the closed position,
// the solenoid can be safely turned off
policy.lid_solenoid_disengage();
// Turn off lid stepper current
policy.lid_stepper_set_dac(LID_STEPPER_HOLD_CURRENT);
// Movement is done
Expand Down

0 comments on commit dfd16e5

Please sign in to comment.