mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
MavlinkParametersManager: output deprecation warning if INAV is selected
This commit is contained in:
parent
d32d250a50
commit
643ccd66b6
@ -152,6 +152,16 @@ MavlinkParametersManager::handle_message(const mavlink_message_t *msg)
|
||||
/* set and send parameter */
|
||||
param_set(param, &(set.param_value));
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user