sensor_physprop_t

Updated: April 19, 2023

Sensor physical properties

Synopsis:

#include <sensor/sensor_api.h>
typedef enum {
    SENSOR_PHYSPROP_END = -1,
    SENSOR_PHYSPROP_HORIZONTALFOV,
    SENSOR_PHYSPROP_VERTICALFOV,
    SENSOR_PHYSPROP_RANGEFOV,
    SENSOR_PHYSPROP_SECONDARY_HORIZONTALFOV,
    SENSOR_PHYSPROP_SECONDARY_VERTICALFOV,
    SENSOR_PHYSPROP_SECONDARY_RANGEFOV
} sensor_physprop_t;

Data:

SENSOR_PHYSPROP_END
The end-of-list identifier.
SENSOR_PHYSPROP_HORIZONTALFOV
The horizontal field of view of the sensor.

The value (in degrees) is a double value. The horizontal axis is defined as the axis running from left to right.

SENSOR_PHYSPROP_VERTICALFOV
The vertical field of view of the sensor.

The value (in degrees) is a double value. The vertical axis is defined as the axis running from top to bottom.

SENSOR_PHYSPROP_RANGEFOV
The sensor range, in millimeters, as a double value.

This value is optional and is not supported for all sensors.

SENSOR_PHYSPROP_SECONDARY_HORIZONTALFOV
The secondary horizontal field of view of the sensor.

The value (in degrees) is a double value. The horizontal axis is defined as the axis running from left to right. This value is optional and is not supported for all sensors.

SENSOR_PHYSPROP_SECONDARY_VERTICALFOV
The secondary vertical field of view of the sensor.

The value (in degrees) is a double value. The vertical axis is defined as the axis running from top to bottom. This value is optional and is not supported for all sensors.

SENSOR_PHYSPROP_SECONDARY_RANGEFOV
The sensor secondary range, in millimeters, as a double value.

This value is optional and is not supported for all sensors.

Library:

libsensor

Description:

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