height_from_pressure()
#
DescriptionThis function gets the drone's current height in centimeters based on the initial pressure sensor reading. You must call set_initial_pressure() to establish a reference point.
#
Syntaxheight_from_pressure()
height_from_pressure(b, m)
#
Parametersb: slope intercept in pascals (default is set to 0)
m: slope in centimeters/pascals (default is set to 9.34)
#
ReturnsEstimated height in centimeters relative to starting position.