Skip to content

Commit

Permalink
Emergency PosSpeedLimit fix
Browse files Browse the repository at this point in the history
  • Loading branch information
walkermburns committed Apr 21, 2024
1 parent 5e139ae commit ef4a38f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/systems/src/TorqueControllerMux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,6 @@ void TorqueControllerMux::applyTorqueLimit(DrivetrainCommand_s* command)
void TorqueControllerMux::applyPosSpeedLimit(DrivetrainCommand_s* command) {
for (int i = 0; i < NUM_MOTORS; i++)
{
command->torqueSetpoints[i] = std::max(0.0f, command->torqueSetpoints[i]);
command->speeds_rpm[i] = std::max(0.0f, command->speeds_rpm[i]);
}
}

0 comments on commit ef4a38f

Please sign in to comment.