AP_Frsky_Telem: updated sensor_status messages according to what is found in Mission Planner

added "NO RC Receiver" and "Bad Logging"
This commit is contained in:
floaledm 2016-09-21 17:10:42 -05:00 committed by Tom Pittenger
parent b8d53e1c58
commit 9e0cfc81ea
1 changed files with 6 additions and 0 deletions

View File

@ -549,6 +549,12 @@ void AP_Frsky_Telem::check_sensor_status_flags(void)
} else if ((_ap.sensor_status_flags & MAV_SYS_STATUS_AHRS) > 0) {
queue_message(MAV_SEVERITY_CRITICAL, "Bad AHRS");
check_sensor_status_timer = now;
} else if ((_ap.sensor_status_flags & MAV_SYS_STATUS_SENSOR_RC_RECEIVER) > 0) {
queue_message(MAV_SEVERITY_CRITICAL, "NO RC Receiver");
check_sensor_status_timer = now;
} else if ((_ap.sensor_status_flags & MAV_SYS_STATUS_LOGGING) > 0) {
queue_message(MAV_SEVERITY_CRITICAL, "Bad Logging");
check_sensor_status_timer = now;
}
}
}