enable experimental longitudinal control on devel (#26544)

pull/26565/head
Adeeb Shihadeh 2 years ago committed by GitHub
parent 548888d634
commit 94aa39bdd4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      selfdrive/controls/controlsd.py
  2. 6
      system/version.py

@ -12,7 +12,7 @@ import cereal.messaging as messaging
from common.conversions import Conversions as CV
from panda import ALTERNATIVE_EXPERIENCE
from system.swaglog import cloudlog
from system.version import is_tested_branch, get_short_branch
from system.version import is_release_branch, get_short_branch
from selfdrive.boardd.boardd import can_list_to_can_capnp
from selfdrive.car.car_helpers import get_car, get_startup_event, get_one_can
from selfdrive.controls.lib.lateral_planner import CAMERA_OFFSET
@ -132,7 +132,7 @@ class Controls:
safety_config.safetyModel = car.CarParams.SafetyModel.noOutput
self.CP.safetyConfigs = [safety_config]
if is_tested_branch():
if is_release_branch():
self.CP.experimentalLongitudinalAvailable = False
# Write CarParams for radard

@ -7,7 +7,8 @@ from functools import lru_cache
from common.basedir import BASEDIR
from system.swaglog import cloudlog
TESTED_BRANCHES = ['devel', 'release3-staging', 'dashcam3-staging', 'release3', 'dashcam3']
RELEASE_BRANCHES = ['release3-staging', 'dashcam3-staging', 'release3', 'dashcam3']
TESTED_BRANCHES = RELEASE_BRANCHES + ['devel', 'devel-staging']
training_version: bytes = b"0.2.0"
terms_version: bytes = b"2"
@ -96,6 +97,9 @@ def is_comma_remote() -> bool:
def is_tested_branch() -> bool:
return get_short_branch() in TESTED_BRANCHES
@cache
def is_release_branch() -> bool:
return get_short_branch() in RELEASE_BRANCHES
@cache
def is_dirty() -> bool:

Loading…
Cancel
Save