Flying
Controls related to takeoff, movement, positioning, and landing of the drone.
Flight
Block
Description
Make the drone fly up to a height, run some actions, then land safely.
Params
- HEIGHT: Number - The height in centimeters to fly before doing the next actions.
- CODE: Blocks - The actions or blocks to run while the drone is flying at that height.
Set Altitude
Block
Description
Sets the drone’s altitude (height) in centimeters.
Params
- HEIGHT: Number - The height the drone should fly to, in centimeters.
Move Forward
Block
Description
Moves the drone forward by a certain distance in centimeters.
Params
- DISTANCE: Number - The distance to move forward, in centimeters.
Move Backward
Block
Description
Moves the drone backward by a certain distance in centimeters.
Params
- DISTANCE: Number - The distance to move backward, in centimeters.
Move Right
Block
Description
Moves the drone to the right by a certain distance in centimeters.
Params
- DISTANCE: Number - The distance to move right, in centimeters.
Move Left
Block
Description
Moves the drone to the left by a certain distance in centimeters.
Params
- DISTANCE: Number - The distance to move left, in centimeters.
Change Position
Block
Description
Moves the drone right and forward at the same time by given distances.
Params
- X: Number - Distance to move right, in centimeters.
- Y: Number - Distance to move forward, in centimeters.
Go To Home
Block
Description
Makes the drone go back to its home position (0, 0).
Set Position
Block
Description
Moves the drone to a specific position relative to home.
Params
- X: Number - Distance to move right, in centimeters.
- Y: Number - Distance to move forward, in centimeters.
Set Yaw CW
Block
Description
Rotates the drone to face a specific direction (clockwise) in degrees.
Params
- DEG: Number - The angle to turn clockwise, in degrees.
Turn CW
Block
Description
Turns the drone clockwise by a number of degrees.
Params
- DEG: Number - The number of degrees to turn clockwise.
Turn CCW
Block
Description
Turns the drone counterclockwise by a number of degrees.
Params
- DEG: Number - The number of degrees to turn counterclockwise.