sensor_location_prop_t

Sensor location properties

Synopsis:

#include <sensor/sensor_api.h>
typedef enum {
    SENSOR_LOCATION_END = 0,
    SENSOR_LOCATION_POSITION_X,
    SENSOR_LOCATION_POSITION_Y,
    SENSOR_LOCATION_POSITION_Z,
    SENSOR_LOCATION_YAW,
    SENSOR_LOCATION_PITCH,
    SENSOR_LOCATION_ROLL
} sensor_location_prop_t;

Data:

SENSOR_LOCATION_END
An end-of-list identifier.
SENSOR_LOCATION_POSITION_X
The X-coordinate of the position of the sensor is a double value, in millimeters.
SENSOR_LOCATION_POSITION_Y
The Y-coordinate of the position of the sensor is a double value, in millimeters.
SENSOR_LOCATION_POSITION_Z
The Z-coordinate of the position of the sensor is a double value, in millimeters.
SENSOR_LOCATION_YAW
The orientation of the sensor relative to the Z-axis is a double value, in degrees.

The value represents a counter-clockwise rotation.

SENSOR_LOCATION_PITCH
The orientation of the sensor relative to the Y-axis is a double value, in degrees.

The value represents a counter-clockwise rotation.

SENSOR_LOCATION_ROLL
The orientation of the sensor relative to the X-axis is a double value, in degrees.

The value represents a counter-clockwise rotation.

Library:

libsensor

Description:

These properties are used as keys by the sensor_get_location_property() function. Each key is associated with a value of the indicated type.