From 88a59f003adb448c934e519ba52c04ca6268d0bd Mon Sep 17 00:00:00 2001 From: Shane Smiskol Date: Tue, 10 Jun 2025 01:20:38 -0700 Subject: [PATCH] add back --- selfdrive/ui/qt/offroad/settings.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/selfdrive/ui/qt/offroad/settings.cc b/selfdrive/ui/qt/offroad/settings.cc index 2bb1f05ed8..6a08fd1ee5 100644 --- a/selfdrive/ui/qt/offroad/settings.cc +++ b/selfdrive/ui/qt/offroad/settings.cc @@ -334,7 +334,9 @@ void DevicePanel::updateCalibDescription() { } if (lag_perc < 100) { - desc += tr("\n\n- Learning the vehicle's steering lag: %1% complete.").arg(lag_perc); + desc += tr("\n\nSteering lag calibration is %1% complete.").arg(lag_perc); + } else { + desc += tr("\n\nSteering lag calibration is complete."); } std::string torque_bytes = params.get("LiveTorqueParameters"); @@ -343,15 +345,15 @@ void DevicePanel::updateCalibDescription() { AlignedBuffer aligned_buf; capnp::FlatArrayMessageReader cmsg(aligned_buf.align(torque_bytes.data(), torque_bytes.size())); auto torque = cmsg.getRoot().getLiveTorqueParameters(); - // don't add for non-torque cars if (torque.getUseParams()) { int torque_perc = torque.getCalPerc(); if (torque_perc < 100) { - desc += tr("\n- Learning the vehicle's steering response: %1% complete.").arg(torque_perc); + desc += tr(" Steering torque response calibration is %1% complete.").arg(torque_perc); + } else { + desc += tr(" Steering torque response calibration is complete."); } } - } catch (kj::Exception) { qInfo() << "invalid LiveTorqueParameters"; }