Hello I want to read the data from PX4 Autopilot via MAVLink and learn more about the MAVLink and communication CC ↔ PX4. I use “c_uart_interface_example”. Connection USB A(Ubuntu 22.04) to USB C( Pixhawk 6c with PX4 Autopilot). The library works when I use it with Simulation or when I use first QGC in the PC, then try with the script "
./mavlink_control -d /dev/ttyACM0". But when I use it direct and only with the script it stops on point “CHECK FOR MESSAGES” and never goes further. I think there is some activation command in QGC, which start the data transfer in PX4, but cant find what is it.
I will be very thankful for any advises! @JulianOes
Hi,
I think you should try to the issue might be related to MAVLink communication initialization. When using direct communication with the PX4 via mavlink control make sure to properly configure the MAVLink parameters and ensure that the PX4 is in a state ready to communicate (e.g., not in an armed or disarmed state that blocks MAVLink data). Verify that the correct MAVLink instance and baud rate are set and check if any activation or configuration command is needed in QGC to start the data stream. Consult the PX4 and MAVLink documentation for specific setup details. I would try to suggest you hope so it is satisfied.
Thanks
I think your answer is ChatGPT generated.
Are you expert in mavlink?