Skip to content

Commit

Permalink
fixed numtype error
Browse files Browse the repository at this point in the history
  • Loading branch information
Sammohana committed Jan 12, 2025
1 parent 46fbb49 commit 0daece8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion selfdrive/controls/controlsd.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ def state_control(self):
# Steering PID loop and lateral MPC
self.desired_curvature = clip_curvature(CS.vEgo, self.desired_curvature, model_v2.action.desiredCurvature)
actuators.curvature = float(self.desired_curvature)
actuators.steer = float(actuators.steer)
actuators.steer, actuators.steeringAngleDeg, lac_log = self.LaC.update(CC.latActive, CS, self.VM, lp,
self.steer_limited, self.desired_curvature,
self.calibrated_pose) # TODO what if not available
actuators.steer = float(actuators.steer)
# Ensure no NaNs/Infs
for p in ACTUATOR_FIELDS:
attr = getattr(actuators, p)
Expand Down

0 comments on commit 0daece8

Please sign in to comment.