mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-22 12:43:33 +08:00
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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user