mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-06-28 01:52:06 +08:00
locationd: Replace allAliveAndValid with allValid (#30064)
* replace allaliveandvalid check with allvalid, all necessary time checks are already used * update refs old-commit-hash: 6d5f4f149d819eed6a56112e9fba277b62613ff1
This commit is contained in:
@@ -720,7 +720,7 @@ int Localizer::locationd_thread() {
|
||||
// 100Hz publish for notcars, 20Hz for cars
|
||||
const char* trigger_msg = sm["carParams"].getCarParams().getNotCar() ? "accelerometer" : "cameraOdometry";
|
||||
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 sensorsOK = sm.allAliveAndValid({"accelerometer", "gyroscope"});
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
b421ff389ce720b70a36dd2b3510af54eb484b5f
|
||||
7553d9123f418fd81ef811df4e130ab153ac489a
|
||||
Reference in New Issue
Block a user