GCS Parameter Question

Hi, I'm developing a custom GCS and I would like to be able to change a planes ID while it's in flight. I know the ardupilot only has a subset of the mavlink commands, but It does support MAV_CMD_DO_SET_PARAMTER. I'm wondering if I can find out the config key for a specific config parameter (SYSID_THISMAV) without having to hard code it. Currently, I have some print statements on the ardupilot telling me the plane's id and the ids key value. The function I have been trying to use is mavlink_msg_mission_item_pack. Any help is appreciated!

EDIT: I figured out how to change the plane ID but the change is being saved to memory when the plane shutsdown.  Is there a way I can avoid that from happening?

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • Developer

    You  may need to modify the code but ... for each parameter you can either to a .set(new_value) or a set_and_save(new_value).  The set_and_save will write it to the eeprom while the .set() will only write it to memory.

    best of luck.

This reply was deleted.

Activity