DriveWorks SDK Reference
5.16.65 Release
For Test and Development only

SensorStats.h File Reference

Go to the source code of this file.

Data Structures

struct  dwSensorStats
 

Enumerations

enum  dwSensorStatTimeDifference {
  DW_SENSOR_STATE_DELTA_HOST_AND_HOST_TIME = 0 ,
  DW_SENSOR_STATE_DELTA_SENSOR_AND_SENSOR_TIME = 1 ,
  DW_SENSOR_STATE_DELTA_HOST_AND_SENSOR_TIME = 2 ,
  DW_SENSOR_STATE_DELTA_CURRENT_AND_HOST_TIME = 3 ,
  DW_SENSOR_STATE_DELTA_READ_AND_RETURN_FRAME_TIME = 4 ,
  DW_SENSOR_STATE_SENSOR_STAT_COUNT = 5
}
 Enum used for time delta statistics. More...
 

Data Structure Documentation

◆ dwSensorStats

struct dwSensorStats
Data Fields
uint64_t crcErrors Number of CRC errors.
dwTime_t currentDelta[DW_SENSOR_STATE_SENSOR_STAT_COUNT] Array of Current time difference between two consecutive packets as per the dwSensorStatTimeDifference [us].
uint64_t drops Number of events dropped.
uint64_t errors Number of encountered errors.
uint64_t events Number of normal events (excluding errors and drops).
dwTime_t maxDelta[DW_SENSOR_STATE_SENSOR_STAT_COUNT] Array of Maximum observed time difference between two consecutive packets as per the dwSensorStatTimeDifference [us].
float64_t meanDelta[DW_SENSOR_STATE_SENSOR_STAT_COUNT] Array of Mean of all the deltas between consecutive timestamps as per the dwSensorStatTimeDifference.
dwTime_t minDelta[DW_SENSOR_STATE_SENSOR_STAT_COUNT] Array of Minimum observed time difference between two consecutive packets as per the dwSensorStatTimeDifference [us].
uint64_t sensorId Sensor ID.
float64_t standardDeviationDelta[DW_SENSOR_STATE_SENSOR_STAT_COUNT] Array of Variance of all the deltas between consecutive timestamps as per the dwSensorStatTimeDifference.
dwTime_t timeDeltaCur Current host timestamp difference between two consecutive packets.

This will be deprecated soon, use currentDelta array [us]

dwTime_t timeDeltaMax Maximum observed host timestamp difference between two consecutive packets.

This will be deprecated soon, use maxDelta array [us]

float64_t timeDeltaMean Mean of all the deltas between consecutive host timestamps.

This will be deprecated soon, use meanDelta array

dwTime_t timeDeltaMin Minimum observed host timestamp difference between two consecutive packets.

This will be deprecated soon, use minDelta array [us]

float64_t timeDeltaStandardDeviation Variance of all the deltas between consecutive host timestamps.

This will be deprecated soon, use standardDeviationDelta array

Enumeration Type Documentation

◆ dwSensorStatTimeDifference

Enum used for time delta statistics.

Enumerator
DW_SENSOR_STATE_DELTA_HOST_AND_HOST_TIME 

Difference between two consecutive host timestamp.

DW_SENSOR_STATE_DELTA_SENSOR_AND_SENSOR_TIME 

Difference between two consecutive sensor timestamp.

DW_SENSOR_STATE_DELTA_HOST_AND_SENSOR_TIME 

Difference between host timestamp and sensor timestamp.

DW_SENSOR_STATE_DELTA_CURRENT_AND_HOST_TIME 

Difference between current time and the last host timestamp when sensor data was received.

DW_SENSOR_STATE_DELTA_READ_AND_RETURN_FRAME_TIME 

Difference between readFrame and returnFrame time.

DW_SENSOR_STATE_SENSOR_STAT_COUNT 

Count which the type value is less than.

Definition at line 43 of file SensorStats.h.