hey guys,
I am trying to add a Custom mavlink message to APM Planner and it does not seem to work.Here is what I have done so far...
I added correctly a mavlink message to ArduCopter (from Megapirate NG) MegaPirate/libraries/GCS_MAVLink/message_definitions/custom_message.xml :
<?xml version="1.0"?>
<mavlink>
<include>common.xml</include>
<include>ardupilotmega.xml</include>
<!-- NOTE: If the included file already contains a version tag, remove the version tag here, else uncomment to enable. -->
<!--<version>3</version>-->
<enums>
</enums>
<messages>
<!-- Custom Message -->
<message name="CUSTOM" id="190">
<description> Custom Message </description>
<field type="float" name="value">Variable Value</field>
</message>
</messages>
</mavlink>
and generated using : mavgen.py --lang=C --wire-protocol=1.0 --no-validate --output=$mavdir/include/mavlink/v1.0 $mavdir/message_definitions/custom_message.xml and then used the custom generated functions to send a message at User Code...
Added just the message
<message name="CUSTOM" id="190">
<description> Custom Message </description>
<field type="float" name="value">Variable Value</field>
</message>
to the source code of mavlink (at message_definitions to ardupilotmega.xml)
and reinstalled pymavlink from source to my ubuntu(by using sudo python setup.py install).
Now when I run mavproxy.py and use >status i see "133: CUSTOM {value : 34.0}" which is what I am sending so far so I consider that I am sending a MAVlink message correctly...
Then I downloaded apm planner from source and used meesage_definitions from the mavlink source code to generate the C includes which then I added (by copy and replace) to the apm_planner/libs/mavlink/include/mavlink/v1.0. When I compile apm planner from source and run it, I can see my new custom Message as you can see at the pixture I uploaded but i Cannot see any values on diagram and I can not find any handling functions for mavlink on APM Planner(if there are some... ).
Any hint???
Replies
See https://gitter.im/diydrones/apm_planner