From fe5fee69316c5a0ade01e906e93f659a33509e45 Mon Sep 17 00:00:00 2001 From: Jason Wen <47793918+sunnyhaibin@users.noreply.github.com> Date: Wed, 29 Mar 2023 17:30:27 -0400 Subject: [PATCH] torqued: reset LiveTorqueParameters on calibration reset (#27737) * torqued: reset LiveTorqueParameters on calibration reset * gotta have this old-commit-hash: 8e3ed8f10b5e9eae52b1374a81d46dcd022e3598 --- selfdrive/ui/qt/offroad/settings.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 63b87149d4..c22484167c 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -193,6 +193,7 @@ DevicePanel::DevicePanel(SettingsWindow *parent) : ListWidget(parent) { connect(resetCalibBtn, &ButtonControl::clicked, [&]() { if (ConfirmationDialog::confirm(tr("Are you sure you want to reset calibration?"), tr("Reset"), this)) { params.remove("CalibrationParams"); + params.remove("LiveTorqueParameters"); } }); addItem(resetCalibBtn);