My pixhawk hardware(pixhawk1) does not connect when rc.txt is in SD card.

조회 수: 7(최근 30일)
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.
  댓글 수: 1
R
R 2020년 5월 19일
When you put the rc.txt file , pixhawk tries to load your simulink software and not the deafult px4 software
that means 2 things
  1. the leds will blink only if you activated them in youre simulink app and build the code on pixhawk
  2. for pixhawk to communicate with QGC when youre simulink app is active you need to have several additional lines in the rc,.xt:
mavlink start -d /dev/ttyACM0 -m config –x
mavlink boot_complete

댓글을 달려면 로그인하십시오.

답변(1개)

Arun Mathamkode
Arun Mathamkode 2021년 11월 11일
Enabling MAVLink over Pixhawk USB will ensure the connectivity with QGC. Refer to this documentation.
  댓글 수: 3
Arun Mathamkode
Arun Mathamkode 2022년 4월 6일
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.

댓글을 달려면 로그인하십시오.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by