mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-08-03 10:49:25 +08:00
Merge branch 'ui-icbm-universal' into hkg-angle-steering-2025
This commit is contained in:
+1
-3
@@ -7,8 +7,6 @@
|
|||||||
|
|
||||||
#include "selfdrive/ui/sunnypilot/qt/offroad/settings/longitudinal/speed_limit/speed_limit_settings.h"
|
#include "selfdrive/ui/sunnypilot/qt/offroad/settings/longitudinal/speed_limit/speed_limit_settings.h"
|
||||||
|
|
||||||
#include "selfdrive/ui/sunnypilot/qt/util.h"
|
|
||||||
|
|
||||||
SpeedLimitSettings::SpeedLimitSettings(QWidget *parent) : QStackedWidget(parent) {
|
SpeedLimitSettings::SpeedLimitSettings(QWidget *parent) : QStackedWidget(parent) {
|
||||||
subPanelFrame = new QFrame();
|
subPanelFrame = new QFrame();
|
||||||
QVBoxLayout *subPanelLayout = new QVBoxLayout(subPanelFrame);
|
QVBoxLayout *subPanelLayout = new QVBoxLayout(subPanelFrame);
|
||||||
@@ -123,7 +121,7 @@ void SpeedLimitSettings::refresh() {
|
|||||||
cereal::CarParamsSP::Reader CP_SP = cmsg_sp.getRoot<cereal::CarParamsSP>();
|
cereal::CarParamsSP::Reader CP_SP = cmsg_sp.getRoot<cereal::CarParamsSP>();
|
||||||
|
|
||||||
has_longitudinal_control = hasLongitudinalControl(CP);
|
has_longitudinal_control = hasLongitudinalControl(CP);
|
||||||
has_icbm = hasIntelligentCruiseButtonManagement(CP_SP);
|
has_icbm = CP_SP.getIntelligentCruiseButtonManagementAvailable();
|
||||||
|
|
||||||
if (!has_longitudinal_control && CP_SP.getPcmCruiseSpeed()) {
|
if (!has_longitudinal_control && CP_SP.getPcmCruiseSpeed()) {
|
||||||
if (speed_limit_mode_param == SpeedLimitMode::ASSIST) {
|
if (speed_limit_mode_param == SpeedLimitMode::ASSIST) {
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ void LongitudinalPanel::refresh(bool _offroad) {
|
|||||||
params.remove("IntelligentCruiseButtonManagement");
|
params.remove("IntelligentCruiseButtonManagement");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!has_longitudinal_control && !has_icbm) {
|
if (!has_longitudinal_control && !CP_SP.getIntelligentCruiseButtonManagementAvailable()) {
|
||||||
params.remove("CustomAccIncrementsEnabled");
|
params.remove("CustomAccIncrementsEnabled");
|
||||||
params.remove("DynamicExperimentalControl");
|
params.remove("DynamicExperimentalControl");
|
||||||
params.remove("SmartCruiseControlVision");
|
params.remove("SmartCruiseControlVision");
|
||||||
|
|||||||
Reference in New Issue
Block a user