mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-07-11 20:32:13 +08:00
fixup toggle cleanup
old-commit-hash: 300577f38f963bb2854a6139ed50544d9bb493b1
This commit is contained in:
@@ -145,8 +145,9 @@ class Controls:
|
||||
|
||||
# cleanup old params
|
||||
if not self.CP.experimentalLongitudinalAvailable:
|
||||
params.remove("EndToEndLong")
|
||||
params.remove("ExperimentalLongitudinalEnabled")
|
||||
if not self.CP.openpilotLongitudinalControl:
|
||||
params.remove("EndToEndLong")
|
||||
|
||||
self.CC = car.CarControl.new_message()
|
||||
self.CS_prev = car.CarState.new_message()
|
||||
|
||||
Reference in New Issue
Block a user