mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-21 15:13:34 +08:00
MavlinkParametersManager: output deprecation warning if INAV is selected
This commit is contained in:
@@ -152,6 +152,16 @@ MavlinkParametersManager::handle_message(const mavlink_message_t *msg)
|
|||||||
/* set and send parameter */
|
/* set and send parameter */
|
||||||
param_set(param, &(set.param_value));
|
param_set(param, &(set.param_value));
|
||||||
send_param(param);
|
send_param(param);
|
||||||
|
|
||||||
|
/* check for deprecated value, coming from an older GCS */
|
||||||
|
if (strcmp(name, "SYS_MC_EST_GROUP") == 0) {
|
||||||
|
uint32_t val = *(uint32_t *)&set.param_value;
|
||||||
|
|
||||||
|
if (val == 0) { //INAV
|
||||||
|
mavlink_log_critical(_mavlink->get_mavlink_log_pub(),
|
||||||
|
"INAV is deprecated. Using LPE after reboot");
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user