libRBR
v1.2.3
RBR instrument communication API
|
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... | |
An instrument sample.
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.