Copter: change sensor health check to prevent false positive

This commit is contained in:
floaledm 2016-09-22 13:56:49 -05:00
parent 93f2de6780
commit 5910c94b65
1 changed files with 1 additions and 1 deletions

View File

@ -278,7 +278,7 @@ NOINLINE void Copter::send_extended_status1(mavlink_channel_t chan)
#if FRSKY_TELEM_ENABLED == ENABLED #if FRSKY_TELEM_ENABLED == ENABLED
// give mask of error flags to Frsky_Telemetry // give mask of error flags to Frsky_Telemetry
uint32_t sensors_error_flags = (control_sensors_health ^ control_sensors_enabled) & control_sensors_present; uint32_t sensors_error_flags = !control_sensors_health & control_sensors_enabled & control_sensors_present;
frsky_telemetry.update_sensor_status_flags(sensors_error_flags); frsky_telemetry.update_sensor_status_flags(sensors_error_flags);
#endif #endif