old-commit-hash: 2eac604993
commatwo_master
Adeeb Shihadeh 4 years ago committed by GitHub
parent 50a73824f9
commit e5be410cd5
  1. 1
      common/params_pyx.pyx
  2. 2
      selfdrive/thermald/thermald.py
  3. 6
      selfdrive/ui/qt/offroad/settings.cc

@ -25,6 +25,7 @@ keys = {
b"CarParamsCache": [TxType.CLEAR_ON_MANAGER_START, TxType.CLEAR_ON_PANDA_DISCONNECT], b"CarParamsCache": [TxType.CLEAR_ON_MANAGER_START, TxType.CLEAR_ON_PANDA_DISCONNECT],
b"CarVin": [TxType.CLEAR_ON_MANAGER_START, TxType.CLEAR_ON_PANDA_DISCONNECT], b"CarVin": [TxType.CLEAR_ON_MANAGER_START, TxType.CLEAR_ON_PANDA_DISCONNECT],
b"CommunityFeaturesToggle": [TxType.PERSISTENT], b"CommunityFeaturesToggle": [TxType.PERSISTENT],
b"EnableLteOnroad": [TxType.PERSISTENT],
b"EndToEndToggle": [TxType.PERSISTENT], b"EndToEndToggle": [TxType.PERSISTENT],
b"CompletedTrainingVersion": [TxType.PERSISTENT], b"CompletedTrainingVersion": [TxType.PERSISTENT],
b"DisablePowerDown": [TxType.PERSISTENT], b"DisablePowerDown": [TxType.PERSISTENT],

@ -349,7 +349,7 @@ def thermald_thread():
if should_start != should_start_prev or (count == 0): if should_start != should_start_prev or (count == 0):
params.put_bool("IsOffroad", not should_start) params.put_bool("IsOffroad", not should_start)
HARDWARE.set_power_save(not should_start) HARDWARE.set_power_save(not should_start)
if TICI: if TICI and not params.get_bool("EnableLteOnroad"):
fxn = "stop" if should_start else "start" fxn = "stop" if should_start else "start"
os.system(f"sudo systemctl {fxn} --no-block lte") os.system(f"sudo systemctl {fxn} --no-block lte")

@ -72,6 +72,12 @@ TogglesPanel::TogglesPanel(QWidget *parent) : QWidget(parent) {
"Use wide angle camera for driving and ui. Only takes effect after reboot.", "Use wide angle camera for driving and ui. Only takes effect after reboot.",
"../assets/offroad/icon_openpilot.png", "../assets/offroad/icon_openpilot.png",
this)); this));
toggles.append(new ParamControl("EnableLteOnroad",
"Enable LTE while onroad",
"",
"../assets/offroad/icon_network.png",
this));
#endif #endif
bool record_lock = Params().getBool("RecordFrontLock"); bool record_lock = Params().getBool("RecordFrontLock");

Loading…
Cancel
Save