sensor_event_get_altitude()

Get the altitude from a SENSOR_ALTIMETER_READING event.

Synopsis:

#include <bps/sensor.h>
 
BPS_API float sensor_event_get_altitude(bps_event_t *event)

Arguments:

event
The SENSOR_ALTIMETER_READING event to get the altitude from.

Library:

libbps

Description:

The sensor_event_get_altitude() function gets the altitude from the specified SENSOR_ALTIMETER_READING event.

Returns:

The altitude (in meters).