This is a getter function which returns the current height of the drone. The default unit of measurement is centimeters.
This function uses the bottom range sensor to measure distance from the drone to the surface below the drone.
get_height(unit="<cm, in, mm, m>)"
unit: The unit of measurement that is chosen for the height distance. Available units are "m" (meter), "cm" (centimeter), "mm" (millimeter), or "in" (inch). If a parameter is not specified cm is chosen by default.
The current range calculated by the bottom range sensor (cm default).
-10 or 0 when the sensor returns an error.
999 when the detected object is out of range (1.5 meters) or the sensor timed out.