Selecting Startup Script for PX4 Autopilot
This section explains the step—
Select System Startup Script in
PX4—of the Hardware Setup process (using the Hardware Setup
The UAV Toolbox Support Package for PX4® Autopilots provides the option to select the startup script for PX4 Autopilot. You can select either the default PX4 Startup Script
rCS or a custom startup script provided
by the support package.
In the Select System Startup Script in PX4 screen of the Hardware Setup process, select the desired option for the PX4 Autopilot startup script.
Use default startup script (rcS) — Select this option to use the PX4 default startup script
rCSas the startup script for the Autopilot. If you select
Design Flight Controller Algorithm in Simulinkas the algorithm choice in the Select Application in Simulink Hardware setup screen, the default PX4 multi-copter controller modules,
mc_att_controlmodules are disabled in the
rCSstartup script. If you select
Design Path Follower Algorithm in Simulink, no modules are disabled in the
rCS. This selection results in two additional steps, Download QGroundControl and Airframe in QGroundControl as you proceed further with the Hardware Setup screens.
If you use the PX4 default startup script
rcSas the startup script for the Autopilot and if you also have an SD card connected to the Autopilot, then ensure that the SD card does not contain any custom startup script. If custom startup script exists in the SD card, it will override the PX4 default startup script
Use custom startup script (rc.txt) — Select this option to use a custom startup script called rc.txt which will be placed in the SD card on the Autopilot as the startup script. The requirement for using a custom start-up script in place of
rCSis explained in Custom Startup Script in UAV Toolbox Support Package for PX4 Autopilots. This selection redirects you to the Hardware setup screen, Performing PX4 System Startup from SD Card and enables you to place the custom startup script.