Main Content


Control the Cannon module connected to a Parrot Mambo minidrone

Since R2019b

Add-On Required: This feature requires the Simulink Support Package for Parrot Minidrones add-on.

  • Cannon block

Simulink Support Package for Parrot Minidrones


The Cannon block controls the Cannon module that is connected to a Parrot® Mambo minidrone.



expand all

The Cannon module fires one ball whenever the input changes from 0 to 1.

If there are multiple input commands to the Cannon block (to fire the balls in succession), the commands are queued and they are executed one after the other.


You can also use multiple Cannon blocks in the same Simulink model (instead of queuing the commands in one Cannon block) to fire the balls in succession.

Data Types: Boolean


expand all

The number of firing commands that are pending in the queue while the Cannon module is busy.

An output value of -1 indicates that the Cannon module is not connected to the drone, or the Cannon module is not working.

Data Types: uint8

Version History

Introduced in R2019b