Commit 61dd5731 authored by Lorenz Meier's avatar Lorenz Meier

Merge pull request #872 from swissfang/fix_param_set

Use regular component ID (0) for PARAM_SET command
parents 07bf7549 67aa8b8c
......@@ -2417,7 +2417,7 @@ void UAS::setParameter(const int compId, const QString& paramId, const QVariant&
p.param_id[i] = 0;
}
}
mavlink_msg_param_set_encode(mavlink->getSystemId(), compId, &msg, &p);
mavlink_msg_param_set_encode(mavlink->getSystemId(), mavlink->getComponentId(), &msg, &p);
sendMessage(msg);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment