Skip to content

Commit

Permalink
Revert "NOO without Prime"
Browse files Browse the repository at this point in the history
This reverts commit ccc34ea.

remove selfdrive/navd/otisserv.py

update translations
  • Loading branch information
Edison-CBS committed Oct 8, 2023
1 parent 54fc8de commit 26506bd
Show file tree
Hide file tree
Showing 37 changed files with 4 additions and 935 deletions.
46 changes: 0 additions & 46 deletions Brewfile

This file was deleted.

9 changes: 0 additions & 9 deletions common/i18n.py

This file was deleted.

5 changes: 0 additions & 5 deletions common/params.cc
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ std::unordered_map<std::string, uint32_t> keys = {
{"DoShutdown", CLEAR_ON_MANAGER_START},
{"DoUninstall", CLEAR_ON_MANAGER_START},
{"DrivingPersonalitiesUIWheel", PERSISTENT},
{"EnableGmap", PERSISTENT},
{"ExperimentalLongitudinalEnabled", PERSISTENT},
{"ExperimentalMode", PERSISTENT},
{"ExperimentalModeConfirmed", PERSISTENT},
Expand All @@ -127,7 +126,6 @@ std::unordered_map<std::string, uint32_t> keys = {
{"GithubSshKeys", PERSISTENT},
{"GithubUsername", PERSISTENT},
{"GitRemote", PERSISTENT},
{"GmapKey", PERSISTENT },
{"GsmApn", PERSISTENT},
{"GsmMetered", PERSISTENT},
{"GsmRoaming", PERSISTENT},
Expand Down Expand Up @@ -161,11 +159,8 @@ std::unordered_map<std::string, uint32_t> keys = {
{"LiveTorqueCarParams", PERSISTENT},
{"LiveTorqueParameters", PERSISTENT | DONT_LOG},
{"LongitudinalPersonality", PERSISTENT},
{"MapboxPublicKey", PERSISTENT},
{"MapboxSecretKey", PERSISTENT},
{"NavDestination", CLEAR_ON_MANAGER_START | CLEAR_ON_OFFROAD_TRANSITION},
{"NavDestinationWaypoints", CLEAR_ON_MANAGER_START | CLEAR_ON_OFFROAD_TRANSITION},
{"NavEnable", PERSISTENT},
{"NavPastDestinations", PERSISTENT},
{"NavSettingLeftSide", PERSISTENT},
{"NavSettingTime24h", PERSISTENT},
Expand Down
Binary file removed selfdrive/assets/images/both_keys_set.png
Binary file not shown.
Binary file removed selfdrive/assets/images/no_keys_set.png
Binary file not shown.
Binary file removed selfdrive/assets/images/offline.png
Binary file not shown.
Binary file removed selfdrive/assets/images/public_key_set.png
Binary file not shown.
Binary file removed selfdrive/assets/images/setup_completed.png
Binary file not shown.
7 changes: 0 additions & 7 deletions selfdrive/manager/process_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
from openpilot.system.hardware import PC, TICI
from openpilot.selfdrive.manager.process import PythonProcess, NativeProcess, DaemonProcess

# FrogPilot variables
params = Params()
not_prime = params.get_int("PrimeType") == 0

WEBCAM = os.getenv("USE_WEBCAM") is not None

def driverview(started: bool, params: Params, CP: car.CarParams) -> bool:
Expand Down Expand Up @@ -91,9 +87,6 @@ def only_offroad(started, params, CP: car.CarParams) -> bool:
# debug procs
NativeProcess("bridge", "cereal/messaging", ["./bridge"], notcar),
PythonProcess("webjoystick", "tools.bodyteleop.web", notcar),

# FrogPilot procs
PythonProcess("otisserv", "selfdrive.navd.otisserv", always_run, enabled=not_prime),
]

managed_processes = {p.name: p for p in procs}
7 changes: 1 addition & 6 deletions selfdrive/navd/navd.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,7 @@ def __init__(self, sm, pm):

self.reroute_counter = 0

if self.params.get_int("PrimeType") == 0:
self.mapbox_token = self.params.get("MapboxPublicKey", encoding='utf8')
self.mapbox_host = "https://api.mapbox.com"
elif "MAPBOX_TOKEN" in os.environ:
self.params.put("MapboxPublicKey", "")
self.params.put("MapboxSecretKey", "")
if "MAPBOX_TOKEN" in os.environ:
self.mapbox_token = os.environ["MAPBOX_TOKEN"]
self.mapbox_host = "https://api.mapbox.com"
else:
Expand Down
Loading

0 comments on commit 26506bd

Please sign in to comment.