- did you try the example : https://www.mathworks.com/help/supportpkg/px4/ref/pwm-getting-started-px4.html '?
- did you try the aux ports?
- did you provide the pixhawk rail pins and the esc the correct voltage?
- try with simple servo
Have no control of pixhawk when starting up from the sd card
4 ビュー (過去 30 日間)
古いコメントを表示
Dear all
After loading the Simulink model to the pixhawk using the awsome 'Embedded Coder Support Package for PX4 Autopilots', I couldn't arm the motors and start the flight, I'm sure that there is something missing in the 'rc.txt' file in the SD card, but I do not know how to fix that, looking for your help. I can't start anything. I have no control of the pixhawk. Also some parameters are not loaded.
thanks
here is my rc,txt:
#Copyright 2018 The MathWorks, Inc.
# This is the custom rc.txt which loads px4_simulink_app on start-up
usleep 1000
uorb start
usleep 1000
#nshterm /dev/ttyACM0 & #Disable the USB serial console
usleep 1000
tone_alarm start
usleep 3000
px4io start
gps start # #gps start -f Starts GPS driver and Fake a GPS signal (useful for testing)
usleep 1000
sh /etc/init.d/rc.sensors
usleep 1000
#Uncomment the below 2 lines to use LPE estimator
#attitude_estimator_q start
#local_position_estimator start
#Using EKF2 estimator by default as PX4 does build LPE on px4fmu-v2 due to a limited flash.
ekf2 start
usleep 1000
mtd start
usleep 1000
param load /fs/mtd_params
usleep 1000
rgbled start
usleep 1000
fmu mode_pwm # This is required for AUX PWM channels
usleep 1000
#......... arming ....
mavlink start -d /dev/ttyACM0 -m config –x
px4_simulink_app start
nshterm /dev/ttyS6 & #this will make ttyS6 the serial console
mavlink boot_complete
#exit #4-Jan-2019
1 件のコメント
R
2020 年 5 月 14 日
you understand that you cant arm it with QGC?
your simulink code replaces the logic(arm sequence and alot more) of the px4 base software
if you want pixhawk to do anything , you do it by writing and then building your logic into the pixhawk
from experience , it works
回答 (3 件)
Sebastian
2019 年 12 月 17 日
Hi,
try 'px4io safety_off' in the nsh or rc.txt. Maybe its just in save mode...
Best, Sebastian
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!