Have no control of pixhawk when starting up from the sd card
10 views (last 30 days)
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.
here is my rc,txt:
#Copyright 2018 The MathWorks, Inc.
# This is the custom rc.txt which loads px4_simulink_app on start-up
#nshterm /dev/ttyACM0 & #Disable the USB serial console
gps start # #gps start -f Starts GPS driver and Fake a GPS signal (useful for testing)
#Uncomment the below 2 lines to use LPE estimator
#Using EKF2 estimator by default as PX4 does build LPE on px4fmu-v2 due to a limited flash.
param load /fs/mtd_params
fmu mode_pwm # This is required for AUX PWM channels
#......... arming ....
mavlink start -d /dev/ttyACM0 -m config –x
nshterm /dev/ttyS6 & #this will make ttyS6 the serial console