Skip to content

Commit

Permalink
Navigate on Chill Mode
Browse files Browse the repository at this point in the history
  • Loading branch information
garrettpall committed Jan 20, 2024
1 parent 22f3f58 commit 47b739c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions common/params.cc
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ std::unordered_map<std::string, uint32_t> keys = {
{"MuteDoor", PERSISTENT},
{"MuteOverheated", PERSISTENT},
{"MuteSeatbelt", PERSISTENT},
{"NavChill", PERSISTENT},
{"NavEnable", PERSISTENT},
{"NavSpeedLimit", PERSISTENT},
{"NavSpeedLimitControl", PERSISTENT},
Expand Down
1 change: 1 addition & 0 deletions selfdrive/frogpilot/ui/control_settings.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ FrogPilotControlsPanel::FrogPilotControlsPanel(SettingsWindow *parent) : FrogPil
{"QOLControls", "Quality of Life", "Miscellaneous quality of life changes to improve your overall openpilot experience.", "../frogpilot/assets/toggle_icons/quality_of_life.png"},
{"DisableOnroadUploads", "Disable Onroad Uploads", "Prevent large data uploads when onroad.", ""},
{"HigherBitrate", "Higher Bitrate Recording", "Increases the quality of the footage uploaded to comma connect.", ""},
{"NavChill", "Navigate on Chill Mode", "Allows cars without longitudinal support to navigate. Allows navigation without experimental mode.", ""},
{"PauseLateralOnSignal", "Pause Lateral On Turn Signal Below", "Temporarily disable lateral control during turn signal use below the set speed.", ""},
{"ReverseCruise", "Reverse Cruise Increase", "Reverses the 'long press' functionality when increasing the max set speed. Useful to increase the max speed quickly.", ""},
{"SetSpeedOffset", "Set Speed Offset", "Set an offset for your desired set speed.", ""},
Expand Down
2 changes: 1 addition & 1 deletion selfdrive/modeld/modeld.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ def main():
# Enable/disable nav features
timestamp_llk = sm["navModel"].locationMonoTime
nav_valid = sm.valid["navModel"] # and (nanos_since_boot() - timestamp_llk < 1e9)
nav_enabled = nav_valid and params.get_bool("ExperimentalMode")
nav_enabled = nav_valid and (params.get_bool("ExperimentalMode") or params.get_bool("NavChill"))

if not nav_enabled:
nav_features[:] = 0
Expand Down

0 comments on commit 47b739c

Please sign in to comment.