mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-07 01:06:01 +08:00
add torque interceptor settings and enable in manager
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -75,6 +75,41 @@ TogglesPanel::TogglesPanel(SettingsWindow *parent) : ListWidget(parent) {
|
||||
"../assets/icons/metric.png",
|
||||
false,
|
||||
},
|
||||
{
|
||||
"TorqueInterceptorEnabled",
|
||||
tr("Enable Torque Interceptor"),
|
||||
tr("Use the torque interceptor"),
|
||||
"../assets/icons/chffr_wheel.png",
|
||||
true,
|
||||
},
|
||||
{
|
||||
"RadarInterceptorEnabled",
|
||||
tr("Enable Radar Interceptor"),
|
||||
tr("Use the radar interceptor to block the car's radar and use openpilot's radar instead. This is required for openpilot longitudinal control on some cars, but can also be used with stock ACC."),
|
||||
"../assets/icons/chffr_wheel.png",
|
||||
false,
|
||||
},
|
||||
{
|
||||
"NoMRCC",
|
||||
tr("Disable Stock MRCC"),
|
||||
tr(""),
|
||||
"../assets/icons/chffr_wheel.png",
|
||||
false,
|
||||
},
|
||||
{
|
||||
"NoFSC",
|
||||
tr("Disable Stock FSC"),
|
||||
tr(""),
|
||||
"../assets/icons/chffr_wheel.png",
|
||||
false,
|
||||
},
|
||||
{
|
||||
"ManualTransmission",
|
||||
tr("Manual Transmission"),
|
||||
tr(""),
|
||||
"../assets/icons/chffr_wheel.png",
|
||||
false,
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -63,6 +63,7 @@ def manager_init() -> None:
|
||||
params.put_bool("IsTestedBranch", build_metadata.tested_channel)
|
||||
params.put_bool("IsReleaseBranch", build_metadata.release_channel)
|
||||
params.put("HardwareSerial", serial)
|
||||
params.put_bool("TorqueInterceptorEnabled", True)
|
||||
|
||||
# set dongle id
|
||||
reg_res = register(show_spinner=True)
|
||||
|
||||
Reference in New Issue
Block a user