Represents a single "channel" or data descriptors that can make up an Inertial Device's message format
InertialChannel( |
| ) |
Creates an InertialChannel object.
channelField | The InertialTypes::ChannelField for the channel. |
sampleRate const SampleRate& | The SampleRate for the channel. |
The InertialTypes::ChannelField for this channel.
Gets the InertialTypes::ChannelField for this channel.
An InertialTypes::ChannelField that is set for this channel.
uint16 rateDecimation( |
| ) const |
Gets the rate decimation that is used to determine the sample rate (sample rate = sampleratebase / rate decimation).
The rate decimation that is used to determine the sample rate
const SampleRate& validateSampleRate( |
| ) |
Validates the sample rate of the InertialChannel object, updating it to a supported rate if necessary. This function will be called before an InertialChannel is set on the InertialNode. You can call it yourself if you want to update the channel yourself to determine the true SampleRate that will be applied.
sampleRateBase uint16 | The sample rate base to use for validating the sample rate (see InertialNode::getDataRateBase). |
A SampleRate used for reference to determine what the InertialChannel's SampleRate got updated to, if at all.
const SampleRate& validateSampleRate( |
| ) |
Validates the sample rate of the InertialChannel object, updating it to a supported rate if necessary. This function will be called before an InertialChannel is set on the InertialNode. You can call it yourself if you want to update the channel yourself to determine the true SampleRate that will be applied.
node | The InertialNode to validate the InertialChannel's sample rate for. |
A SampleRate used for reference to determine what the InertialChannel's SampleRate got updated to, if at all.
Gets the field descriptor byte of the Inertial Channel.
The field descriptor byte of the Inertial Channel.
Gets the descriptor set byte of the Inertial Channel.
The descriptor set byte of the Inertial Channel.
typedef for a vector of InertialChannel objects