  
      if (s->volume_timeout > 0) {
        s->volume_timeout--;
      } else {
        int volume = fmin(MAX_VOLUME, MIN_VOLUME + s->scene.v_ego / 5);  // up one notch every 5 m/s
        set_volume(volume);
        s->volume_timeout = 5 * UI_FREQ;
      }
  
      // If car is started and controlsState times out, display an alert
 
</s> remove   } else {
    ;
 </s> add  </s> remove     if (std::abs(scene->face_x) <= 0.35 && std::abs(scene->face_y) <= 0.4) {
 </s> add     if (std::abs(face_x) <= 0.35 && std::abs(face_y) <= 0.4) { </s> remove                    nvgRGBAf(1.0, 1.0, 1.0, 0.8 - ((std::abs(scene->face_x) > std::abs(scene->face_y) ? std::abs(scene->face_x) : std::abs(scene->face_y))) * 0.6 / 0.375),
 </s> add                    nvgRGBAf(1.0, 1.0, 1.0, 0.8 - ((std::abs(face_x) > std::abs(face_y) ? std::abs(face_x) : std::abs(face_y))) * 0.6 / 0.375), </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           s->alert_blinking_alpha += (0.05*scene.alert_blinkingrate);
 </s> add           s->alert_blinking_alpha += (0.05*alert_blinkingrate);
      int volume = fmin(MAX_VOLUME, MIN_VOLUME + s->scene.controls_state.getVEgo() / 5);  // up one notch every 5 m/s
  
      if (s->volume_timeout > 0) {
        s->volume_timeout--;
      } else {
      int volume = fmin(MAX_VOLUME, MIN_VOLUME + s->scene.controls_state.getVEgo() / 5);  // up one notch every 5 m/s
        set_volume(volume);
        s->volume_timeout = 5 * UI_FREQ;
      }
  
      // If car is started and controlsState times out, display an alert
keep keep keep keep 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