Skip to content

Commit

Permalink
fixed VehicleBase syntax error: ._accelMax -> _accel_max (typo) (#422)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoachimDunkel committed Aug 7, 2024
1 parent b134a07 commit 8159c84
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roboticstoolbox/mobile/Vehicle.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def limits_va(self, v, v_prev):
vp = v_prev[0]
if self._accel_max is not None:
if (v - vp) / self._dt > self._accel_max:
v = vp + self._accelmax * self._dt
v = vp + self._accel_max * self._dt
elif (v - vp) / self._dt < -self._accel_max:
v = vp - self._accel_max * self._dt
v_prev[0] = v
Expand Down

0 comments on commit 8159c84

Please sign in to comment.