From 0daece8d41cce1a541accbbef6a4f461e01e6dc4 Mon Sep 17 00:00:00 2001 From: Sammohana Date: Sun, 12 Jan 2025 10:05:29 +0530 Subject: [PATCH] fixed numtype error --- selfdrive/controls/controlsd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/selfdrive/controls/controlsd.py b/selfdrive/controls/controlsd.py index 38d53dce9312e9..6779689c7114bc 100755 --- a/selfdrive/controls/controlsd.py +++ b/selfdrive/controls/controlsd.py @@ -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)