Skip to content
Snippets Groups Projects
Commit 643ccd66 authored by Beat Küng's avatar Beat Küng
Browse files

MavlinkParametersManager: output deprecation warning if INAV is selected

parent d32d250a
No related branches found
No related tags found
No related merge requests found
......@@ -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");
}
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment