Contenido principal

Install Support Packages and Verify Simulink Models

R2026b

Verify that MATLAB® and required toolboxes are installed, install the necessary support packages, and open the project to verify that the models simulate successfully before deploying to hardware.

Verify Required Products

  1. Open MATLAB.

  2. Run the following command in the Command Window:

    ver
  3. Confirm that the following products are installed:

    • Aerospace Blockset™

    • Aerospace Toolbox

    • Computer Vision Toolbox

    • Embedded Coder®

    • Image Processing Toolbox

    • MATLAB

    • Raspberry Pi® Blockset

    • Simulink®

    • Simulink Coder™

    • UAV Toolbox

    MATLAB Add-On Manager showing installed products including Aerospace Blockset, Computer Vision Toolbox, Embedded Coder, Image Processing Toolbox, MATLAB, Raspberry Pi Blockset, Simulink, Simulink Coder, UAV Toolbox, and UAV Toolbox Support Package for PX4 Autopilots.

Install UAV Toolbox Support Package for PX4 Autopilots and Raspberry Pi Blockset

This section has two parts: install the UAV Toolbox Support Package for PX4® Autopilots and install Raspberry Pi Blockset. After installation, you must run the hardware setup screen for each to complete the configuration.

PX4 Support Package

  1. On the MATLAB Home tab, in the Environment section, select Add-Ons > Get Hardware Support Packages.

    Use the Add-Ons pull down menu to Get Hardware Support Packages.

  2. In the Add-On Explorer window, search for the UAV Toolbox Support Package for PX4 Autopilots and then click Install.

  3. After installation, run the hardware setup screen. In the setup screen, select Pixhawk 6C Mini as the hardware board.

  4. Complete all steps in the hardware setup screen, including sensor testing. At the Select a PX4 Autopilot and Build Target step, select PX4 Pixhawk 6c for the PX4 Pixhawk Mini hardware and specify these options:

    • PX4 Autopilot board — PX4 Pixhawk 6c

    • Build Target — px4_fmu-v6c_multicopter

    Select PX4 Autopilot and build target.

  5. Verify that all tests pass before proceeding. For more information, see Install UAV Toolbox Support Package for PX4 Autopilots in Windows.

    Select PX4 Autopilot and build target.

Raspberry Pi Support Package

  1. In the Add-On Explorer window, search for Raspberry Pi Blockset and then click Install.

  2. After installation, run the Raspberry Pi Blockset setup screen.

  3. Complete all steps in the setup screen, including enabling the camera interface and configuring SSH access. For more information, see Hardware Setup for Raspberry Pi Blockset (Raspberry Pi Blockset).

  4. Verify that the setup screen reports successful connection to the Raspberry Pi.

  5. Complete the Set Up Operating System on Raspberry Pi Board (Raspberry Pi Blockset) steps.