Skip to content

Sensors ​

Access to onboard sensor readings such as IMU, altitude, or distance sensors.

Get Position ​

Block ​

Get PosX ▾
Get PosY ▾
Get PosZ ▾

Description ​

Gets the current position of the drone on the X, Y, or Z axis.

Params ​

  • MODE: Dropdown - Choose which position to get: X (right-left), Y (forward-backward), or Z (up-down).
    • X
    • Y
    • Z

Get Attitude ​

Block ​

Get AttitudeYaw ▾
Get AttitudeRoll ▾
Get AttitudePitch ▾

Description ​

Gets the drone’s rotation angle — yaw, roll, or pitch — in degrees.

Params ​

  • MODE: Dropdown - Choose the rotation type: Yaw (turn), Roll (tilt side), or Pitch (tilt forward/backward).
    • Yaw
    • Roll
    • Pitch

Get Distance To Ground ​

Block ​

Get Distance To Ground (cm)

Description ​

Measures how far the drone is from the ground in centimeters.