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
rCSas the startup script for the Autopilot.If you select
Design Flight Controller Algorithm in SimulinkThe default PX4 multicopter controller modules,
mc_pos_controlandmc_att_controlmodules are disabled in therCSstartup script.
If you select
Design Path Follower Algorithm in Simulink:no modules are disabled in the
rCS.You will need to complete two additional steps:
Download QGroundControl
Select an airframe in QGroundControl
Note
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 scriptrcS.Use custom startup script (rc.txt) — Select this option to use the custom startup script
rc.txtas 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