mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-02-25 07:43:52 +08:00
ui: remove satelliteCount (#19878)
This commit is contained in:
@@ -41,11 +41,10 @@ static void ui_init_vision(UIState *s) {
|
||||
|
||||
void ui_init(UIState *s) {
|
||||
s->sm = new SubMaster({"modelV2", "controlsState", "uiLayoutState", "liveCalibration", "radarState", "thermal", "frame",
|
||||
"health", "carParams", "ubloxGnss", "driverState", "dMonitoringState", "sensorEvents"});
|
||||
"health", "carParams", "driverState", "dMonitoringState", "sensorEvents"});
|
||||
|
||||
s->started = false;
|
||||
s->status = STATUS_OFFROAD;
|
||||
s->scene.satelliteCount = -1;
|
||||
|
||||
s->fb = framebuffer_init("ui", 0, true, &s->fb_w, &s->fb_h);
|
||||
assert(s->fb);
|
||||
@@ -161,12 +160,6 @@ static void update_sockets(UIState *s) {
|
||||
if (sm.updated("thermal")) {
|
||||
scene.thermal = sm["thermal"].getThermal();
|
||||
}
|
||||
if (sm.updated("ubloxGnss")) {
|
||||
auto data = sm["ubloxGnss"].getUbloxGnss();
|
||||
if (data.which() == cereal::UbloxGnss::MEASUREMENT_REPORT) {
|
||||
scene.satelliteCount = data.getMeasurementReport().getNumMeas();
|
||||
}
|
||||
}
|
||||
if (sm.updated("health")) {
|
||||
auto health = sm["health"].getHealth();
|
||||
scene.hwType = health.getHwType();
|
||||
|
||||
@@ -121,7 +121,6 @@ typedef struct UIScene {
|
||||
cereal::ControlsState::AlertSize alert_size;
|
||||
|
||||
cereal::HealthData::HwType hwType;
|
||||
int satelliteCount;
|
||||
NetStatus athenaStatus;
|
||||
|
||||
cereal::ThermalData::Reader thermal;
|
||||
|
||||
Reference in New Issue
Block a user