mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-07-14 01:12:06 +08:00
lte toggle (#20683)
This commit is contained in:
@@ -25,6 +25,7 @@ keys = {
|
||||
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"CommunityFeaturesToggle": [TxType.PERSISTENT],
|
||||
b"EnableLteOnroad": [TxType.PERSISTENT],
|
||||
b"EndToEndToggle": [TxType.PERSISTENT],
|
||||
b"CompletedTrainingVersion": [TxType.PERSISTENT],
|
||||
b"DisablePowerDown": [TxType.PERSISTENT],
|
||||
|
||||
@@ -349,7 +349,7 @@ def thermald_thread():
|
||||
if should_start != should_start_prev or (count == 0):
|
||||
params.put_bool("IsOffroad", 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"
|
||||
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.",
|
||||
"../assets/offroad/icon_openpilot.png",
|
||||
this));
|
||||
toggles.append(new ParamControl("EnableLteOnroad",
|
||||
"Enable LTE while onroad",
|
||||
"",
|
||||
"../assets/offroad/icon_network.png",
|
||||
this));
|
||||
|
||||
#endif
|
||||
|
||||
bool record_lock = Params().getBool("RecordFrontLock");
|
||||
|
||||
Reference in New Issue
Block a user