mirror of
https://github.com/infiniteCable2/openpilot.git
synced 2026-09-13 03:43:44 +08:00
Update controlsd.py
This commit is contained in:
@@ -244,6 +244,8 @@ class Controls(ControlsExt):
|
||||
lat_tuning = self.CP.lateralTuning.which()
|
||||
if self.CP.steerControlType == car.CarParams.SteerControlType.angle:
|
||||
cs.lateralControlState.angleState = lac_log
|
||||
elif self.CP.steerControlType == car.CarParams.SteerControlType.curvatureDEPRECATED:
|
||||
cs.lateralControlState.curvatureStateDEPRECATED = lac_log
|
||||
elif lat_tuning == 'pid':
|
||||
cs.lateralControlState.pidState = lac_log
|
||||
elif lat_tuning == 'torque':
|
||||
|
||||
Reference in New Issue
Block a user