|
|
@ -111,12 +111,6 @@ class SelfdriveD: |
|
|
|
self.car_events = CarSpecificEvents(self.CP) |
|
|
|
self.car_events = CarSpecificEvents(self.CP) |
|
|
|
self.disengage_on_accelerator = not (self.CP.alternativeExperience & ALTERNATIVE_EXPERIENCE.DISABLE_DISENGAGE_ON_GAS) |
|
|
|
self.disengage_on_accelerator = not (self.CP.alternativeExperience & ALTERNATIVE_EXPERIENCE.DISABLE_DISENGAGE_ON_GAS) |
|
|
|
|
|
|
|
|
|
|
|
# cleanup old params |
|
|
|
|
|
|
|
if not self.CP.experimentalLongitudinalAvailable: |
|
|
|
|
|
|
|
self.params.remove("ExperimentalLongitudinalEnabled") |
|
|
|
|
|
|
|
if not self.CP.openpilotLongitudinalControl: |
|
|
|
|
|
|
|
self.params.remove("ExperimentalMode") |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# cleanup old params |
|
|
|
# cleanup old params |
|
|
|
if not self.CP.experimentalLongitudinalAvailable: |
|
|
|
if not self.CP.experimentalLongitudinalAvailable: |
|
|
|
self.params.remove("ExperimentalLongitudinalEnabled") |
|
|
|
self.params.remove("ExperimentalLongitudinalEnabled") |
|
|
|