Main Content

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 multi-copter controller modules, mc_pos_control and mc_att_control modules are disabled in the rCS startup 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.

    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 script rcS.

  • 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 rCS is 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.