Cannon
Libraries:
Simulink Support Package for Parrot Minidrones
Description
The Cannon block controls the Cannon module that is connected to a Parrot® Mambo minidrone.
Ports
Input
Port_1 — Input signal to control the Cannon module
1
| 0
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
Port_1 — Number of firing commands pending in the queue
scalar integer | -1
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
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)