Skip to content
This repository has been archived by the owner on Nov 15, 2022. It is now read-only.

Commit

Permalink
Smartspeed (#83)
Browse files Browse the repository at this point in the history
* bordershifter

* smartspeed variables, sm logic, and img

* speedlimit ui elements

* add back smartspeed

* more speedlimit

* fixes

* map_size

* missing assets

* missing param
  • Loading branch information
rav4kumar authored Dec 12, 2020
1 parent e88a8bf commit 4cbf74f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions common/params_pyx.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand All @@ -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],
Expand Down
4 changes: 4 additions & 0 deletions selfdrive/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"),
Expand Down

0 comments on commit 4cbf74f

Please sign in to comment.