Junior Block Documentation
version 2.0.5 (Changelog)
Flight Commands
take off
Block
Description
This functions makes the drone take off. CoDrone Mini takes off at around 3-4 ft off the ground.
Parameters
None
Returns
None
Example
land
Block
Description
This function makes the drone land by throttling down safely.
Parameters
None
Returns
None
Example
emergency stop
Block
Description
Stops all commands to motors. The drone will stop flying immediately.
Parameters
None
Returns
None
Example
go [direction] for [duration] seconds
Block
Description
Moves the drone in a direction for a given duration.
Parameters
direction: forward, backward, up, down, left, right
integer duration: the duration of movement in seconds
Returns
None
Example
go [direction] for [duration] seconds at [power] % power
Block
Description
Moves the drone in a direction for a given duration and power percentage.
Parameters
direction: forward, backward, up, down, left, right
integer power: the power/speed of the drone between 0 and 100
integer duration: the duration of the move in seconds
Returns
None
Example
turn [direction] for [duration] seconds at [power] power
Block
Description
Turns the CoDrone Mini in a given direction for the given duration at the given power percentage.
Parameters
direction: the direction of the movement (left, right)
integer power: the power/speed of the drone between 0 and 100
integer duration: the duration of the turn in seconds
Returns
None
Example
hover for [duration] seconds
Block
Description
This function makes the drone hover for a given amount of time.
Parameters
integer duration: the duration of the hover in seconds
Returns
None
Example
Flight Sequences
flip left
Block
Description
Makes the drone flip to the left.
Parameters
None
Returns
None
Example
flip right
Block
Description
Makes the drone flip to the right.
Parameters
None
Returns
None
Example
flip backward
Block
Description
Makes the drone flip backward.
Parameters
None
Returns
None
Example
flip forward
Block
Description
Makes the drone flip forward.
Parameters
None