|
|
@ -169,6 +169,9 @@ static void update_state(UIState *s) { |
|
|
|
scene.satelliteCount = data.getMeasurementReport().getNumMeas(); |
|
|
|
scene.satelliteCount = data.getMeasurementReport().getNumMeas(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (sm.updated("gpsLocationExternal")) { |
|
|
|
|
|
|
|
scene.gpsAccuracy = sm["gpsLocationExternal"].getGpsLocationExternal().getAccuracy(); |
|
|
|
|
|
|
|
} |
|
|
|
if (sm.updated("carParams")) { |
|
|
|
if (sm.updated("carParams")) { |
|
|
|
scene.longitudinal_control = sm["carParams"].getCarParams().getOpenpilotLongitudinalControl(); |
|
|
|
scene.longitudinal_control = sm["carParams"].getCarParams().getOpenpilotLongitudinalControl(); |
|
|
|
} |
|
|
|
} |
|
|
@ -270,6 +273,7 @@ QUIState::QUIState(QObject *parent) : QObject(parent) { |
|
|
|
ui_state.sm = std::make_unique<SubMaster, const std::initializer_list<const char *>>({ |
|
|
|
ui_state.sm = std::make_unique<SubMaster, const std::initializer_list<const char *>>({ |
|
|
|
"modelV2", "controlsState", "liveCalibration", "radarState", "deviceState", "liveLocationKalman", |
|
|
|
"modelV2", "controlsState", "liveCalibration", "radarState", "deviceState", "liveLocationKalman", |
|
|
|
"pandaState", "carParams", "driverState", "driverMonitoringState", "sensorEvents", "carState", "ubloxGnss", |
|
|
|
"pandaState", "carParams", "driverState", "driverMonitoringState", "sensorEvents", "carState", "ubloxGnss", |
|
|
|
|
|
|
|
"gpsLocationExternal", |
|
|
|
#ifdef QCOM2 |
|
|
|
#ifdef QCOM2 |
|
|
|
"roadCameraState", |
|
|
|
"roadCameraState", |
|
|
|
#endif |
|
|
|
#endif |
|
|
|