mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-07-26 03:02:06 +08:00
no need for this
This commit is contained in:
@@ -118,10 +118,6 @@ class Controls:
|
||||
if not CC.longActive:
|
||||
self.LoC.reset()
|
||||
|
||||
# Neural Network Lateral Control
|
||||
if self.CP_SP.neuralNetworkLateralControl.enabled or self.params.get_bool("LateralTorqueControlEnhancedLateralAccel"):
|
||||
self.LaC.extension.update_model_v2(model_v2)
|
||||
|
||||
# accel PID loop
|
||||
pid_accel_limits = self.CI.get_pid_accel_limits(self.CP, CS.vEgo, CS.vCruise * CV.KPH_TO_MS)
|
||||
actuators.accel = float(self.LoC.update(CC.longActive, CS, long_plan.aTarget, long_plan.shouldStop, pid_accel_limits))
|
||||
|
||||
Reference in New Issue
Block a user