            s->alert_blinked = false;
          }
        } else {
          if (s->alert_blinking_alpha > 0.25) {
            s->alert_blinking_alpha -= (0.05*scene.alert_blinkingrate);
          } else {
            s->alert_blinking_alpha += 0.25;
            s->alert_blinked = true;
          }
        }
 
</s> remove           s->alert_blinking_alpha += (0.05*scene.alert_blinkingrate);
 </s> add           s->alert_blinking_alpha += (0.05*alert_blinkingrate); </s> remove     scene.alert_blinkingrate = data.getAlertBlinkingRate();
    if (scene.alert_blinkingrate > 0.) {
 </s> add     float alert_blinkingrate = scene.controls_state.getAlertBlinkingRate();
    if (alert_blinkingrate > 0.) { </s> remove     s->model_changed = true;
 </s> add  </s> remove       update_status(s, scene.engaged ? STATUS_ENGAGED : STATUS_DISENGAGED);
 </s> add       update_status(s, scene.controls_state.getEnabled() ? STATUS_ENGAGED : STATUS_DISENGAGED); </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();
          s->alert_blinking_alpha -= (0.05*alert_blinkingrate);
            s->alert_blinked = false;
          }
        } else {
          if (s->alert_blinking_alpha > 0.25) {
          s->alert_blinking_alpha -= (0.05*alert_blinkingrate);
          } else {
            s->alert_blinking_alpha += 0.25;
            s->alert_blinked = true;
          }
        }
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