Hi,
I wrote a java program to the Pixhawk via Mavlink.
As part of the connection i send heartbit every sec and ask for MAV_DATA_STREAM_ALL.
The problem is that I receive only heartbit messages.
When i try to connect to APM i do get all Mavlink messages.
If i connect the Pixhawk trough mission planner and then run my code i do get all messages.
Any thoughts?
Thanks,
Oren
Replies
>Any thoughts?
MAV_DATA_STREAM_ALL doesn't get anything. ;-)
My suggestion is donwload the the ardupilot code and then look at GCS_MAVLink.cpp for the vehicel you are intersted in. You can then see how each request you make is processed.
Alos you can look at how a GCS does it. See APM Planner 2.0 as an example
https://github.com/diydrones/apm_planner/blob/master/src/uas/ArduPi...
https://github.com/diydrones/apm_planner/blob/788e20ccd941f1b2aea4c...
Hope that helps :)
Hi Bill,
Thanks for your prompt reply.
I managed to solve the issue by using mavlink.Messages.pixhawk package instead of org.mavlink.messages.
Everything is working now.
Cheers,
Oren