Skip to content

Flying

Controls related to takeoff, movement, positioning, and landing of the drone.

Flight

Block

80⇈ Flight to (cm)⇊ Land

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

60✛ Set Altitude (cm) to

Description

Sets the drone’s altitude (height) in centimeters.

Params

  • HEIGHT: Number - The height the drone should fly to, in centimeters.

Move Forward

Block

50↑ Forward for(cm)

Description

Moves the drone forward by a certain distance in centimeters.

Params

  • DISTANCE: Number - The distance to move forward, in centimeters.

Move Backward

Block

50↓ Backward for(cm)

Description

Moves the drone backward by a certain distance in centimeters.

Params

  • DISTANCE: Number - The distance to move backward, in centimeters.

Move Right

Block

50→ Right for(cm)

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

50← Left for(cm)

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

2525✛ Go to Right (cm):, Forward (cm):at the same time

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

✛ Go to 🏠 Home

Description

Makes the drone go back to its home position (0, 0).

Set Position

Block

5050✛ Go Right (cm):, Forward (cm):relative to 🏠 Home

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

45↻ Set Yaw Clockwise todeg

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

5↻ Turn Clockwise fordeg

Description

Turns the drone clockwise by a number of degrees.

Params

  • DEG: Number - The number of degrees to turn clockwise.

Turn CCW

Block

5↺ Turn Counter Clockwise fordeg

Description

Turns the drone counterclockwise by a number of degrees.

Params

  • DEG: Number - The number of degrees to turn counterclockwise.