From 80a2eb9dffb718c7833b5314950470e3f227323e Mon Sep 17 00:00:00 2001 From: jwilson Date: Tue, 9 Feb 2016 19:14:01 -0800 Subject: [PATCH] Adding additional warnings to indicate that the secondary and tertiary gyros are unavailable. --- src/modules/sensors/sensors.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/sensors/sensors.cpp b/src/modules/sensors/sensors.cpp index 79023bae90..a13b0df9d4 100644 --- a/src/modules/sensors/sensors.cpp +++ b/src/modules/sensors/sensors.cpp @@ -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) {