Commander: don't publish RC_IN_MODE to vehicle_status

This just contains the content of the parameter which
is redundant and results in multiple sources of truth.
This commit is contained in:
Matthias Grob
2021-11-09 16:05:25 +01:00
parent fff2de43a5
commit 7a2ef4a917
4 changed files with 4 additions and 11 deletions
@@ -197,7 +197,10 @@ bool PreFlightCheck::preflightCheck(orb_advert_t *mavlink_log_pub, vehicle_statu
}
/* ---- RC CALIBRATION ---- */
if (status.rc_input_mode == vehicle_status_s::RC_IN_MODE_DEFAULT) {
int32_t com_rc_in_mode{0};
param_get(param_find("COM_RC_IN_MODE"), &com_rc_in_mode);
if (com_rc_in_mode == 0) {
if (rcCalibrationCheck(mavlink_log_pub, report_failures, status.is_vtol) != OK) {
if (report_failures) {
mavlink_log_critical(mavlink_log_pub, "RC calibration check failed");