Adding additional warnings to indicate that the secondary and tertiary gyros are unavailable.

This commit is contained in:
jwilson
2016-02-09 19:14:01 -08:00
committed by Julian Oes
parent 9955c08d16
commit 80a2eb9dff
+1
View File
@@ -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) {