go()
#
DescriptionA simpler Junior level function that represents flight with direction with more natural language. It simply flies in the given direction for a given duration and power.
#
Syntaxgo(direction)
go(direction, duration)
go(direction, duration, power)
#
Parametersdirection: an enum in Python. It’s the direction of the flight, which can be one of the following: FORWARD, BACKWARD, LEFT, RIGHT, UP, and DOWN.
duration: the duration of the flight motion in seconds. If undefined, defaults to run indefinitely.
power: the power at which the drone flies forward. Takes a value from 0 to 100. Defaults to 50 if not defined.
#
ReturnsNone