get_temperature()
#
DescriptionThis is a getter function gets the drone's temperature from the barometer.
The sensor reads the drone’s temperature, not the air around it. Default unit is Celcius.
#
Syntaxget_temperature()
get_temperature(unit)
#
Parametersunit: A string for the unit of temperature of the drone. Available units are "C" (Celcius), "F" (Fahrenheit), and "K" (Kelvin).
#
ReturnsThe temperature of the drone in the given unit as a float. Default unit is Celcius.