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 maintin that distance. The range of front sensor is from 0mm-1000mm (0cm-100cm)
#
Syntaxkeep_distance()
keep_distance(timeout)
keep_distance(distance)
keep_distance(timeout, distance)
#
Parameterstimeout: timeout is an optional paramaeter that is the duration in seconds that the function will run. The default value is 2
distance: distance is an optional parameter that is the distance in millimeters the drone will stop and maintin distance in front of an object. The default value is 500
#
ReturnsNone