Hi!
Im trying to add a do-set-parameter (and eventually add to the list of available commands in MP) to change parameters during mission and create missions like:
WAYPOINT 123, 456;
WAYPOINT 123, 789;
JUMP 1, 3;
DO_SET_PARAMETER SAIL_HEEL_MAX, 30;
WAYPOINT 123, 456;
WAYPOINT 123, 789;
and so on…
Any tips on how to do this?
I know that the current mission commands are implemented in AP_Mission library and they get the values for the command using the mavlink_mission_item_int_t message.
To set commands using mavlink SET_PARAMETER (23) i need a message that supports char[16] and the fields of mavlink_mission_item_int_t (first seven) are floats (param1-4, x, y, z), so all other mission commands can work with this message, except the do-set-command, thats probably why it wasnt implemented… This do-set-parameter function is old, it was removed from MP in version 1.2.73 with the comment “has never worked”
I cant use the MAV_CMD_DO_SET_PARAMETER (180) because it uses the parameter numerical id and according to this thats not possible, so im a little confused…