locationd: Replace allAliveAndValid with allValid (#30064)

* replace allaliveandvalid check with allvalid, all necessary time checks are already used

* update refs
pull/30067/head
Vivek Aithal 2 years ago committed by GitHub
parent 0251742079
commit 6d5f4f149d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      selfdrive/locationd/locationd.cc
  2. 2
      selfdrive/test/process_replay/ref_commit

@ -720,7 +720,7 @@ int Localizer::locationd_thread() {
// 100Hz publish for notcars, 20Hz for cars // 100Hz publish for notcars, 20Hz for cars
const char* trigger_msg = sm["carParams"].getCarParams().getNotCar() ? "accelerometer" : "cameraOdometry"; const char* trigger_msg = sm["carParams"].getCarParams().getNotCar() ? "accelerometer" : "cameraOdometry";
if (sm.updated(trigger_msg)) { if (sm.updated(trigger_msg)) {
bool inputsOK = sm.allAliveAndValid() && this->are_inputs_ok(); bool inputsOK = sm.allValid() && this->are_inputs_ok();
bool gpsOK = this->is_gps_ok(); bool gpsOK = this->is_gps_ok();
bool sensorsOK = sm.allAliveAndValid({"accelerometer", "gyroscope"}); bool sensorsOK = sm.allAliveAndValid({"accelerometer", "gyroscope"});

@ -1 +1 @@
b421ff389ce720b70a36dd2b3510af54eb484b5f 7553d9123f418fd81ef811df4e130ab153ac489a
Loading…
Cancel
Save