Browse Source

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

sbg
jwilson 9 years ago committed by Julian Oes
parent
commit
80a2eb9dff
  1. 1
      src/modules/sensors/sensors.cpp

1
src/modules/sensors/sensors.cpp

@ -2247,6 +2247,7 @@ Sensors::task_main() @@ -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) {

Loading…
Cancel
Save