      scene.map_valid = sm["liveMapData"].getLiveMapData().getMapValid();
    }
  #endif
    if (sm.updated("thermal")) {
      auto data = sm["thermal"].getThermal();
      scene.networkType = data.getNetworkType();
      scene.networkStrength = data.getNetworkStrength();
      scene.batteryPercent = data.getBatteryPercent();
      scene.batteryCharging = data.getBatteryStatus() == "Charging";
      scene.freeSpace = data.getFreeSpace();
      scene.thermalStatus = data.getThermalStatus();
      scene.paTemp = data.getPa0();
  
      s->thermal_started = data.getStarted();
    }
    if (sm.updated("ubloxGnss")) {
      auto data = sm["ubloxGnss"].getUbloxGnss();
      if (data.which() == cereal::UbloxGnss::MEASUREMENT_REPORT) {
        scene.satelliteCount = data.getMeasurementReport().getNumMeas();
 
</s> remove     if (data.getMockEngaged() != scene.uilayout_mockengaged) {
      scene.uilayout_mockengaged = data.getMockEngaged();
    }
 </s> add  </s> remove     s->model_changed = true;
 </s> add  </s> remove     auto data = sm["driverState"].getDriverState();
    scene.face_prob = data.getFaceProb();
    auto fxy_list = data.getFacePosition();
    scene.face_x = fxy_list[0];
    scene.face_y = fxy_list[1];
 </s> add     scene.driver_state = sm["driverState"].getDriverState(); </s> remove     scene.awareness_status = data.getAwarenessStatus();
 </s> add  </s> remove     scene.alert_text1 = data.getAlertText1();
    scene.alert_text2 = data.getAlertText2();
    scene.alert_ts = event.getLogMonoTime();
    scene.alert_size = data.getAlertSize();
    auto alertStatus = data.getAlertStatus();
 </s> add     scene.alert_text1 = scene.controls_state.getAlertText1();
    scene.alert_text2 = scene.controls_state.getAlertText2();
    scene.alert_size = scene.controls_state.getAlertSize();
    auto alertStatus = scene.controls_state.getAlertStatus();
    scene.thermal = sm["thermal"].getThermal();
      scene.map_valid = sm["liveMapData"].getLiveMapData().getMapValid();
    }
  #endif
    if (sm.updated("thermal")) {
    scene.thermal = sm["thermal"].getThermal();
    scene.thermal = sm["thermal"].getThermal();
    scene.thermal = sm["thermal"].getThermal();
    scene.thermal = sm["thermal"].getThermal();
    scene.thermal = sm["thermal"].getThermal();
    scene.thermal = sm["thermal"].getThermal();
    scene.thermal = sm["thermal"].getThermal();
    scene.thermal = sm["thermal"].getThermal();
    scene.thermal = sm["thermal"].getThermal();
    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();
keep keep keep keep replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 ui.cc: remove variables from UIScene, use event::Reader to get data  (#1585)

* use struct to store lead status

* remove white space

* use RadarState::LeadData::Reader

* use reader to get thermal data

* use reader

* continue

* remove variables

reset submodules,fix some errors

reset submodules

revert

* remove s->scene.gps_planner_active

* modify

* cleanup

* done

* resolve conflict

* remove irrelevant comment

* remove white space 
selfdrive/ui/ui.cc