Termination error when using Mavlink blocks for PX4
조회 수: 7(최근 30일)
I have a model to send/receive telemetry/commands to and from Pixhawk 4. I'm using mavlink blocks (blank message and serializer). But, I can't deploy or monitor tune the model. I get "termination compilation include< algorithm> " error. Can someone tell me what is wrong with my model?
Arun Mathamkode 2022년 4월 5일
Based on my understanding, using MAVlink blocks in Pixhawk is not a logical usecase. PX4 already have 'mavlink' module which can encode and decode data and stream it through different serial interfaces of Pixhawk. The main usecase of MAVLink blocks is to use it on Host PC or on companion computer to read/write MAVLink messages. uORb messages are the way to communicate between different modules in PX4. Please refer to PX4 Architecture and uORB graph more more details. I would recomment you to enable the MAVLink stream on any specific serial interface you want to use, and PX4 will take care of encoding the MAVlink data and send it over that specifc interface. You can consider to use MAV_X_CONFIG parameter to enable MAVLink Telemetry. As per PX4 documentation, MAVlink is defaulty enabled over TELEM1 (MAV_0_CONFIG).