- the leds will blink only if you activated them in youre simulink app and build the code on pixhawk
- for pixhawk to communicate with QGC when youre simulink app is active you need to have several additional lines in the rc,.xt:
My pixhawk hardware(pixhawk1) does not connect when rc.txt is in SD card.
12 views (last 30 days)
Show older comments
lim daehee on 18 May 2020
Commented: Arun Mathamkode on 6 Apr 2022
I'm using the embedded coder support package for px4 autopilot.
When I do the calibration for pixhawk, pixhawk is connected with qgroundcontrol well and the led also worked well.
However, when I put rc.txt file into the SD card, pixhawk cannot connect with qgroundcontrol with error message : 'The vehicle is not responding' and the led light does not flash(off).
I think no flash led means that the pixhawk doesn't booted and I don't know why my pixhawk is not booted.
R on 19 May 2020
When you put the rc.txt file , pixhawk tries to load your simulink software and not the deafult px4 software
that means 2 things
mavlink start -d /dev/ttyACM0 -m config –x
Arun Mathamkode on 11 Nov 2021
Enabling MAVLink over Pixhawk USB will ensure the connectivity with QGC. Refer to this documentation.
Arun Mathamkode on 6 Apr 2022
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), if you use rCS as the startup script. From R2021b we recommend using the rCS as the startup script instead of custom rc.txt. You have an option to choose this in the Hardware setup screens from R2021b.
Find more on PX4 Autopilots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!