mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-05 08:16:06 +08:00
my connect server
This commit is contained in:
+2
-1
@@ -1,5 +1,6 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
export ATHENA_HOST="wss://connect-ws.duckdns.org"
|
||||
export API_HOST="https://connect-api.duckdns.org"
|
||||
export PASSIVE="0"
|
||||
exec ./launch_chffrplus.sh
|
||||
|
||||
|
||||
@@ -92,6 +92,7 @@ std::unordered_map<std::string, uint32_t> keys = {
|
||||
{"CarParamsCache", CLEAR_ON_MANAGER_START},
|
||||
{"CarVin", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
|
||||
{"CompletedTrainingVersion", PERSISTENT},
|
||||
{"ConnectVersion", PERSISTENT},
|
||||
{"ControlsReady", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
|
||||
{"CurrentRoute", CLEAR_ON_MANAGER_START | CLEAR_ON_IGNITION_ON},
|
||||
{"DisablePowerDown", PERSISTENT},
|
||||
|
||||
@@ -78,6 +78,10 @@ def manager_init() -> None:
|
||||
params.put("GitBranch", get_short_branch(default=""))
|
||||
params.put("GitRemote", get_origin(default=""))
|
||||
|
||||
if params.get("ConnectVersion", encoding="utf8") != "MoreTorqueV1":
|
||||
params.remove("DongleId")
|
||||
params.put("ConnectVersion", "MoreTorqueV1")
|
||||
|
||||
# set dongle id
|
||||
reg_res = register(show_spinner=True)
|
||||
if reg_res:
|
||||
|
||||
Reference in New Issue
Block a user