mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-23 16:07:34 +08:00
Adding additional warnings to indicate that the secondary and tertiary gyros are unavailable.
This commit is contained in:
@@ -2247,6 +2247,7 @@ Sensors::task_main()
|
||||
mag_poll(raw);
|
||||
baro_poll(raw);
|
||||
|
||||
// FIXME TODO: this needs more thinking, otherwise we spam the console and keep switching.
|
||||
/* Work out if main gyro timed out and fail over to alternate gyro.
|
||||
* However, don't do this if the secondary is not available. */
|
||||
if (hrt_elapsed_time(&raw.gyro_timestamp[0]) > 20 * 1000 && _gyro_sub[1] >= 0) {
|
||||
|
||||
Reference in New Issue
Block a user