Selecting Startup Script for PX4 Autopilot
Note
This section explains the step—Select System Startup Script in
PX4
—of the Hardware Setup process (using the Hardware Setup
screens).
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
rCS
as the startup script for the Autopilot.If you select
Design Flight Controller Algorithm in Simulink
as the algorithm choice in the Select Application in Simulink Hardware setup screen, the default PX4 multicopter controller modules,mc_pos_control
andmc_att_control
modules are disabled in therCS
startup script.If you select
Design Path Follower Algorithm in Simulink
, no modules are disabled in therCS
. This selection results in two additional steps, Download QGroundControl and Airframe in QGroundControl as you proceed further with the Hardware Setup screens.Note
If you use the PX4 default startup script
rcS
as 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 scriptrcS
.Use custom startup script (rc.txt) — Select this option to use the custom startup script
rc.txt
as the startup script for the Autopilot.This selection redirects you to the Hardware setup screen. To place the custom startup script in the SD card for the autopilot, you must also complete the steps in Performing PX4 System Startup from SD Card.
To learn more about the modules which are enabled and disabled by the custom startup script, visit Custom Startup Script in UAV Toolbox Support Package for PX4 Autopilots