WebbotLib AVR library
WebbotLib It just does it
  C++ documentation  C documentation

relativeAltitude

Returns the current altitude in meters above, or below, the location where the power was turned on.
Syntax
Pressure. relativeAltitude()
Where Pressure is the name you have given to the device in Project Designer.
Parameters
None
Returns
double
Note
Note that this value is only equivalent to 'height above ground' if your device was placed on the ground when power was applied and if the surrounding terrain is totally flat.

 

 

Valid XHTML 1.0 Transitional