mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-08-05 08:16:03 +08:00
Update controlsd.py
This commit is contained in:
@@ -99,9 +99,10 @@ class Controls:
|
||||
|
||||
steer_angle_without_offset = math.radians(CS.steeringAngleDeg - lp.angleOffsetDeg)
|
||||
self.curvature = -self.VM.calc_curvature(steer_angle_without_offset, CS.vEgo, lp.roll)
|
||||
self.curvature_3dof = -self.VM.calc_curvature_3dof(self.calibrated_pose.acceleration.y, self.calibrated_pose.acceleration.x,
|
||||
self.calibrated_pose.angular_velocity.yaw, CS.vEgo, steer_angle_without_offset,
|
||||
lp.roll)
|
||||
if self.calibrated_pose is not None:
|
||||
self.curvature_3dof = -self.VM.calc_curvature_3dof(self.calibrated_pose.acceleration.y, self.calibrated_pose.acceleration.x,
|
||||
self.calibrated_pose.angular_velocity.yaw, CS.vEgo, steer_angle_without_offset,
|
||||
lp.roll)
|
||||
self.roll = lp.roll
|
||||
|
||||
# Update Torque Params
|
||||
|
||||
Reference in New Issue
Block a user