🐂 Bull Fighting Program (Blockly Demo)
This Blockly program is designed to instruct a drone to perform the following actions:
- Face Detection: The drone continuously checks its camera feed to detect whether a human face is present.
- Detection Countdown: Once a face is detected, the drone counts 30 camera frames so it can make sure that a face is actually presented, which is approximately 1 second.
- Forward Movement: After the countdown is completed, the drone flies forward for a distance of 250 cm (centimeters).
- 180° Turn: After moving forward, the drone performs a 180-degree yaw turn to face the opposite direction.
WARNING
⚠️ Use this program with caution. The drone may move toward you at high speed.
Blocks used in this program
The drone continuously checks its camera feed to detect whether a human face is present.
Detect Face Block
If Conditions
Flight
Move forward
Set Yaw CW
Program Code

Program Summary
| Parameter | Value/Action | Function |
|---|---|---|
| Initial Altitude | 150 cm | Achieve operating height. |
| Detection Method | Face Detection | Detect whether a human face is present in the camera frame. |
| Attack Delay | 30 frames (~1 second) | Wait for approximately 1 second after detecting a face. |
| Forward Movement | 250 cm | Fly forward for a distance of 250 cm. |
| Final Movement | 180° Yaw | Rotate 180 degrees to face the opposite direction. |