    liveLoc.setInputsOK(inputsOK);
    return msg_builder.toBytes();
  }
  
  bool Localizer::isGpsOK() {
    return this->gps_valid;
  }
  
  void Localizer::determine_gps_mode(double current_time) {
    // 1. If the pos_std is greater than what's not acceptable and localizer is in gps-mode, reset to no-gps-mode
 
</s> remove   if (this->isGpsOK()) {
    this->reset_tracker *= .99995;
 </s> add   if (this->is_gps_ok()) {
    this->reset_tracker *= DECAY;
bool Localizer::is_gps_ok() {
    liveLoc.setInputsOK(inputsOK);
    return msg_builder.toBytes();
  }
  
bool Localizer::is_gps_ok() {
    return this->gps_valid;
  }
  
  void Localizer::determine_gps_mode(double current_time) {
    // 1. If the pos_std is greater than what's not acceptable and localizer is in gps-mode, reset to no-gps-mode
keep keep keep keep replace keep keep keep keep keep
 [locationd] Add input checks (#26460)

* add input checks with same decay as reset_tracker

* add observation timings check

* typo

* bugfix

* improve offline locationd visibility

* sbugfix offline lld

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com> 
selfdrive/locationd/locationd.cc