keep_distance()
#
DescriptionA looped method that makes the drone fly forward until it reaches a desired distance. Once the desired distance in reached the drone will maintain that distance. The sensor range is up to 150 cm.
#
Syntaxkeep_distance()
keep_distance(timeout)
keep_distance(distance)
keep_distance(timeout, distance)
#
Parameterstimeout: the duration in seconds that the function will execute. The default value is 2 seconds.
distance: the distance in centimeters the drone will stop and maintain distance in front of an object. The default value is 50 centimeters.
#
ReturnsNone