主要内容

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

      • The default PX4 multicopter 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.

      • You will need to complete two additional steps:

        • Download QGroundControl

        • Select an airframe in QGroundControl

    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 the custom startup script rc.txt as the startup script for the Autopilot.

See Also

Topics