Cannon

Control the Cannon module connected to a Parrot Mambo minidrone

  • Library:
  • Simulink Support Package for Parrot Minidrones

Description

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

Ports

Input

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.

Tip

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

Output

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

Introduced in R2019b