You can use the Flight Simulation Simulink® template to create a model to simulate a drone's behavior. After you are satisfied with the simulation, you can deploy the model on the Parrot® minidrone hardware. This template is designed to spin the two clockwise propellers and the two counterclockwise propellers for 2 seconds each. You can update this template to add different logic.
At the MATLAB® command prompt, type
On the Simulink Start Page, navigate to Simulink Support Package for Parrot Minidrones, and select Flight Simulation Template.
Specify a name for the project. A new Simulink model named
This model is configured for flight simulation.
slQuadcopter model contains the
FCS (Flight Control System) subsystem, which takes
input values from the different sensors on the drone and provides output
signals to the motors based on the logic in the
You can modify the logic inside
Controller subsystems to create your own model to fly the
The procedure to deploy the Flight Simulation template and start the motors are the same as for the Code Generation template (see Setting Up the Hardware and Deploying the Model and Using the Flight Control Interface to Start the Drone).