mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 15:13:34 +08:00
ekf2: multi-ekf force initial selection (and sensor_selection publication)
- depending on the particular sensor configuration and startup timing we were getting an initial sensor_selection publication without valid accel & gyro device ids (only applies to Multi-EKF) - fix faulty accel and gyro device ids - initialize unused test ratio fields to NAN for logging clarity
This commit is contained in:
@@ -73,7 +73,7 @@ private:
|
||||
void PublishVehicleAttitude(bool reset = false);
|
||||
void PublishVehicleLocalPosition(bool reset = false);
|
||||
void PublishVehicleGlobalPosition(bool reset = false);
|
||||
void SelectInstance(uint8_t instance);
|
||||
bool SelectInstance(uint8_t instance);
|
||||
|
||||
// Update the error scores for all available instances
|
||||
bool UpdateErrorScores();
|
||||
@@ -100,8 +100,8 @@ private:
|
||||
|
||||
hrt_abstime time_last_selected{0};
|
||||
|
||||
float combined_test_ratio{0.f};
|
||||
float relative_test_ratio{0.f};
|
||||
float combined_test_ratio{NAN};
|
||||
float relative_test_ratio{NAN};
|
||||
|
||||
bool healthy{false};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user