libRBR  v1.2.3
RBR instrument communication API
Data Fields
RBRInstrumentSample Struct Reference

An instrument sample. More...

#include <RBRInstrumentStreaming.h>

Data Fields

RBRInstrumentDateTime timestamp
 The timestamp of the sample.
 
int32_t channels
 The number of populated sample readings.
 
double readings [RBRINSTRUMENT_CHANNEL_MAX]
 The sample readings. More...
 

Detailed Description

An instrument sample.

Field Documentation

◆ readings

double RBRInstrumentSample::readings[RBRINSTRUMENT_CHANNEL_MAX]

The sample readings.

Only the first RBRInstrumentSample.channels readings will be populated. Other readings will be set to 0.

Readings are represented as double-precision floating point. If they need to encode an error, it's stored in the trailing bits of a NaN, and a flag is set to indicate which sort of error.

See also
RBRInstrumentReading_getFlag() to get the error flag, if present
RBRInstrumentReading_getError() to get the error value, if present
RBRInstrumentReading_setError() to synthesize a error reading

The documentation for this struct was generated from the following file: