sensor_event_get_altitude()

Retrieve the altitude from a SENSOR_ALTIMETER_READING event.

Synopsis:

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

Since:

BlackBerry 10.0.0

Arguments:

event

The SENSOR_ALTIMETER_READING event to get the altitude from.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

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

Returns:

The altitude (in meters). NaN in the event of an error.

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus