New Mavlink Message and mavproxy

Hi 

I am trying to add new mavlink message, pretty simple one:

<message id="159" name="LASER_LANDER">
<description>The data comming from laser landing aid</description>
<field type="uint64_t" name="time_usec">Timestamp (micros since boot or Unix epoch)</field>
<field type="uint16_t" name="distance">The distance from the run-way</field>
<field type="int16_t" name="azimuth">The azimuth to the run-way</field>
<field type="uint8_t" name="state">The laser sensor state</field>
<field type="uint16_t" name="base_rpm">The laser base RPM</field>
</message>

I edited the ArduPlane code to send it and edited Mission Planner to read it and it is all working when i am running SITL as 

ArduPlane.elf -S -I0 --home 32.8050684,35.0459039,10,340 --model jsbsim --speedup=1 --defaults ../Tools/autotest/ArduPlane.parm

and connecting MP via TCP (see the screen capture).

but when running with MAVPROXY i can't get it to read the message and forward it over UDP, when i check the status i see:

BAD_DATA {unknown MAVLink message ID 159, data: ....

so i am trying to update my pymavlink with the same XML i used for the plane and MP code so i ran "$ python setup.py install" from pymavlink and got what looks like a good result:

Installed /usr/lib/python2.7/site-packages/pymavlink-1.1.70-py2.7-cygwin-2.4.1-i686.egg
Processing dependencies for pymavlink==1.1.70
Finished processing dependencies for pymavlink==1.1.70

but still mavproxy wont read and forward my message... which is a bad way of doing a proxy it should push it forward even if it can't read ... just pass on the bytes level data.

any idea what else can i do?

thanks 

Capture.PNG

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

Join diydrones

Email me when people reply –

Activity