ui: reset live parameters and delay when reset calibration pressed (#35211)

* Reset params and lag too

* Old param too
pull/35218/head
Kacper Rączy 2 weeks ago committed by GitHub
parent 98c4a4582b
commit 1a3e342303
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      selfdrive/ui/qt/offroad/settings.cc

@ -194,6 +194,9 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) {
if (ConfirmationDialog::confirm(tr("Are you sure you want to reset calibration?"), tr("Reset"), this)) {
params.remove("CalibrationParams");
params.remove("LiveTorqueParameters");
params.remove("LiveParameters");
params.remove("LiveParametersV2");
params.remove("LiveDelay");
}
});
addItem(resetCalibBtn);

Loading…
Cancel
Save