From 4cbf74fd7357ff5adc8836564589010ddcc35e9a Mon Sep 17 00:00:00 2001 From: Kumar <36933347+rav4kumar@users.noreply.github.com> Date: Sat, 12 Dec 2020 15:47:54 -0700 Subject: [PATCH] Smartspeed (#83) * bordershifter * smartspeed variables, sm logic, and img * speedlimit ui elements * add back smartspeed * more speedlimit * fixes * map_size * missing assets * missing param --- common/params_pyx.pyx | 4 ++++ selfdrive/manager.py | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/common/params_pyx.pyx b/common/params_pyx.pyx index cb1753a04d18a9..af147697d3a01d 100755 --- a/common/params_pyx.pyx +++ b/common/params_pyx.pyx @@ -45,7 +45,10 @@ keys = { b"LastAthenaPingTime": [TxType.PERSISTENT], b"LastUpdateTime": [TxType.PERSISTENT], b"LastUpdateException": [TxType.PERSISTENT], + b"LimitSetSpeed": [TxType.PERSISTENT], + b"LimitSetSpeedNeural": [TxType.PERSISTENT], b"LiveParameters": [TxType.PERSISTENT], + b"LongitudinalControl": [TxType.PERSISTENT], b"OpenpilotEnabledToggle": [TxType.PERSISTENT], b"LaneChangeEnabled": [TxType.PERSISTENT], b"PandaFirmware": [TxType.CLEAR_ON_MANAGER_START, TxType.CLEAR_ON_PANDA_DISCONNECT], @@ -56,6 +59,7 @@ keys = { b"ReleaseNotes": [TxType.PERSISTENT], b"ShouldDoUpdate": [TxType.CLEAR_ON_MANAGER_START], b"SubscriberInfo": [TxType.PERSISTENT], + b"SpeedLimitOffset": [TxType.PERSISTENT], b"TermsVersion": [TxType.PERSISTENT], b"TrainingVersion": [TxType.PERSISTENT], b"UpdateAvailable": [TxType.CLEAR_ON_MANAGER_START], diff --git a/selfdrive/manager.py b/selfdrive/manager.py index 9f1b1efdab2387..50f4975120b284 100755 --- a/selfdrive/manager.py +++ b/selfdrive/manager.py @@ -580,6 +580,10 @@ def main(): ("HasCompletedSetup", "0"), ("IsUploadRawEnabled", "1"), ("IsLdwEnabled", "1"), + ("SpeedLimitOffset", "0"), + ("LongitudinalControl", "1"), + ("LimitSetSpeed", "1"), + ("LimitSetSpeedNeural", "1"), ("LastUpdateTime", datetime.datetime.utcnow().isoformat().encode('utf8')), ("OpenpilotEnabledToggle", "1"), ("LaneChangeEnabled", "1"),