Skip to content

Commit 9e89575

Browse files
authored
Toyota: TSS2 Longitudinal: Custom Tuning toggle (commaai#185)
* Toyota: TSS2 Longitudinal: Custom Tuning toggle * add this in another PR
1 parent 0da0e92 commit 9e89575

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

selfdrive/ui/qt/offroad/sunnypilot_settings.cc

+10
Original file line numberDiff line numberDiff line change
@@ -561,9 +561,19 @@ SPVehiclesTogglesPanel::SPVehiclesTogglesPanel(SPVehiclesPanel *parent) : ListWi
561561
lkasToggle->setConfirmation(true, false);
562562
addItem(lkasToggle);
563563

564+
auto toyotaTss2LongTune = new ParamControl(
565+
"ToyotaTSS2Long",
566+
"TSS2 Longitudinal: Custom Tuning",
567+
"Smoother longitudinal performance for Toyota/Lexus TSS2/LSS2 cars. Big thanks to dragonpilot-community for this implementation.",
568+
"../assets/offroad/icon_blank.png"
569+
);
570+
toyotaTss2LongTune->setConfirmation(true, false);
571+
addItem(toyotaTss2LongTune);
572+
564573
// trigger offroadTransition when going onroad/offroad
565574
connect(uiState(), &UIState::offroadTransition, [=](bool offroad) {
566575
hkgSmoothStop->setEnabled(offroad);
576+
toyotaTss2LongTune->setEnabled(offroad);
567577
});
568578
}
569579

0 commit comments

Comments
 (0)