Skip to content

Commit

Permalink
Update src/modules/rover_differential/RoverDifferentialControl/RoverD…
Browse files Browse the repository at this point in the history
…ifferentialControl.cpp

Co-authored-by: Silvan Fuhrer <[email protected]>
  • Loading branch information
chfriedrich98 and sfuhrer authored Nov 11, 2024
1 parent c7644cf commit 5b4e291
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ float RoverDifferentialControl::calcNormalizedSpeedDiff(const float yaw_rate_set
slew_rate_normalization = max_thr_yaw_r > FLT_EPSILON ? max_thr_yaw_r : 0.f;
}

if (max_yaw_accel > FLT_EPSILON && slew_rate_normalization > 0.f) {
if (max_yaw_accel > FLT_EPSILON && slew_rate_normalization > FLT_EPSILON) {
yaw_rate_with_accel_limit.setSlewRate(max_yaw_accel / slew_rate_normalization);
yaw_rate_with_accel_limit.update(yaw_rate_setpoint, dt);

Expand Down

0 comments on commit 5b4e291

Please sign in to comment.