Skip to content

Commit

Permalink
add velocity check
Browse files Browse the repository at this point in the history
  • Loading branch information
tildezero committed Nov 15, 2024
1 parent 5c9e20c commit 0cdb9bb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ void FlywheelSubsystem::refresh()

for (int i = 0; i < FLYWHEELS; i++)
{
motors[i].setActive(!killSwitch && !isAmputated());
motors[i].setActive(!killSwitch && !isAmputated() && velocity != 0.0f);
motors[i].updateVelocity(velocity);
}
}
Expand Down

0 comments on commit 0cdb9bb

Please sign in to comment.