I am trying to lock parameters like altitude, speed, and frame type for our drone so they won’t be changed from GCS. Where should I make these changes?
You want to do it on the vehicle side, so that it’s not easy to get around.
For instance, you could try to ignore certain parameters here:
void
param_control_autosave(bool enable)
{
if (autosave_instance) {
autosave_instance->enable(enable);
}
}
static int
param_set_internal(param_t param, const void *val, bool mark_saved, bool notify_changes, bool update_remote = true)
{
if (!handle_in_range(param)) {
PX4_ERR("set invalid param %d", param);
return PX4_ERROR;
}
if (val == nullptr) {
PX4_ERR("set invalid value");
return PX4_ERROR;
}