ALTIMETER More...
Files | |
file | altimeter.h |
Sensor API for altitude and barametric pressure readings. | |
Functions | |
KSensorStatus | k_initialize_altitude_sensor (void) |
Setup the altimeter interface and any related sensors. More... | |
KSensorStatus | k_get_pressure (float *press) |
Reads back pressure data from related sensor. More... | |
KSensorStatus | k_get_altitude (float *alt) |
Reads back altitude from related sensors. More... | |
Function Documentation
KSensorStatus k_get_altitude | ( | float * | alt | ) |
Reads back altitude from related sensors.
- Parameters
-
alt pointer to altitude in meters (m)
- Returns
- KSensorStatus, SENSOR_OK on success, SENSOR_ERROR or SENSOR_READ_ERROR on error
KSensorStatus k_get_pressure | ( | float * | press | ) |
Reads back pressure data from related sensor.
- Parameters
-
press pointer to pressure data in Pa (101325.0 - 0.0)
- Returns
- KSensorStatus, SENSOR_OK on success, SENSOR_ERROR or SENSOR_READ_ERROR on error
KSensorStatus k_initialize_altitude_sensor | ( | void | ) |
Setup the altimeter interface and any related sensors.
- Returns
- KSensorStatus, SENSOR_OK on success, SENSOR_WRITE_ERROR or SENSOR_NOT_FOUND on error