  const double VALID_POS_STD = 50.0; // m
  const double MAX_RESET_TRACKER = 5.0;
  const double SANE_GPS_UNCERTAINTY = 1500.0; // m
  
  // TODO: GPS sensor time offsets are empirically calculated
  // They should be replaced with synced time from a real clock
  const double GPS_LOCATION_SENSOR_TIME_OFFSET = 0.630; // s
  const double GPS_LOCATION_EXTERNAL_SENSOR_TIME_OFFSET = 0.095; // s
  
 
</s> remove       bool inputsOK = sm.allAliveAndValid();
      bool gpsOK = this->isGpsOK();
 </s> add       bool inputsOK = sm.allAliveAndValid() && this->are_inputs_ok();
      bool gpsOK = this->is_gps_ok();
const double INPUT_INVALID_THRESHOLD = 5.0; // same as reset tracker
const double DECAY = 0.99995; // same as reset tracker
const double MAX_FILTER_REWIND_TIME = 0.8; // s
  const double VALID_POS_STD = 50.0; // m
  const double MAX_RESET_TRACKER = 5.0;
  const double SANE_GPS_UNCERTAINTY = 1500.0; // m
const double INPUT_INVALID_THRESHOLD = 5.0; // same as reset tracker
const double DECAY = 0.99995; // same as reset tracker
const double MAX_FILTER_REWIND_TIME = 0.8; // s
  
  // TODO: GPS sensor time offsets are empirically calculated
  // They should be replaced with synced time from a real clock
  const double GPS_LOCATION_SENSOR_TIME_OFFSET = 0.630; // s
  const double GPS_LOCATION_EXTERNAL_SENSOR_TIME_OFFSET = 0.095; // s
  
keep keep add keep 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