-
Notifications
You must be signed in to change notification settings - Fork 13.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PIXHAWK SD card startup ,parameter are missing your firmware has a bug on it !! #13742
Comments
Is it possible that you updated PX4 without adapting your startup script to the changes? |
Do you know with what PX4 version MATLAB has tested this? I really have not seen MATLAB connected to PX4 like this in years. |
Hello @julianoes Note BEST |
Interesting, it doesn't have any date references or PX4 version information. It's hard to know with what state this was last tested. Could you ask the people behind this MATLAB package? You can also try to flash 1.8 or 1.9 to see if it works with that. |
Thank you @julianoes |
@julianoes , all that I know is that the Embedded coder support package uses the 1.8.0 firmware otherwise it doesn't work. |
Hello @julianoes Does it mean anything to you? |
Could you connect a debug probe and log the whole startup output? |
This issue has been automatically marked as stale because it has not had recent activity. Thank you for your contributions. |
Dear all, I'm kindly looking for your help to get this cute pixhawk working.
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 coudn't start the flight (I have no ability to control the pixhawk through the RC transmitter), 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.
Also I have the following errors;
I also tried manually to load the parameters but the problem persists:
param set COM_FLTMODE1 3
param set COM_FLTMODE2 1
....
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
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
Thank you
The text was updated successfully, but these errors were encountered: