QtFit
0.1
Native Qt library for Garmin FIT format
|
The ThreeDSensorCalibrationMessage class represents a FIT ThreeDSensorCalibrationMessage data message. More...
Public Member Functions | |
ThreeDSensorCalibrationMessage () | |
Constructs a ThreeDSensorCalibrationMessage object. More... | |
DateTime | timestamp () const |
Returns the ThreeDSensorCalibrationMessage data message's timestamp field's current value. More... | |
SensorType | sensorType () const |
Returns the ThreeDSensorCalibrationMessage data message's sensorType field's current value. More... | |
quint32 | calibrationFactor () const |
Returns the ThreeDSensorCalibrationMessage data message's calibrationFactor field's current value. More... | |
quint32 | calibrationDivisor () const |
Returns the ThreeDSensorCalibrationMessage data message's calibrationDivisor field's current value. More... | |
quint32 | levelShift () const |
Returns the ThreeDSensorCalibrationMessage data message's levelShift field's current value. More... | |
qint32 | offsetCal () const |
Returns the ThreeDSensorCalibrationMessage data message's offsetCal field's current value. More... | |
qint32 | orientationMatrix () const |
Returns the ThreeDSensorCalibrationMessage data message's orientationMatrix field's current value. More... | |
void | setTimestamp (const DateTime timestamp) |
Sets the timestamp field to timestamp. More... | |
void | setSensorType (const SensorType sensorType) |
Sets the sensorType field to sensorType. More... | |
void | setCalibrationFactor (const quint32 calibrationFactor) |
Sets the calibrationFactor field to calibrationFactor. More... | |
void | setCalibrationDivisor (const quint32 calibrationDivisor) |
Sets the calibrationDivisor field to calibrationDivisor. More... | |
void | setLevelShift (const quint32 levelShift) |
Sets the levelShift field to levelShift. More... | |
void | setOffsetCal (const qint32 offsetCal) |
Sets the offsetCal field to offsetCal. More... | |
void | setOrientationMatrix (const qint32 orientationMatrix) |
Sets the orientationMatrix field to orientationMatrix. More... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Additional Inherited Members | |
![]() | |
static AbstractDataMessage * | fromData (const DataDefinition *const defn, const QByteArray &record) |
Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More... | |
The ThreeDSensorCalibrationMessage class represents a FIT ThreeDSensorCalibrationMessage data message.
ThreeDSensorCalibrationMessage::ThreeDSensorCalibrationMessage | ( | ) |
Constructs a ThreeDSensorCalibrationMessage object.
Typically, instances of this class will be returned by FitStreamReader::readNext, but this constructor may be used, along with the relevant setter methods, to create a valid message.
quint32 ThreeDSensorCalibrationMessage::calibrationDivisor | ( | ) | const |
Returns the ThreeDSensorCalibrationMessage data message's calibrationDivisor
field's current value.
Calibration factor divisor
calibrationDivisor
field value. quint32 ThreeDSensorCalibrationMessage::calibrationFactor | ( | ) | const |
Returns the ThreeDSensorCalibrationMessage data message's calibrationFactor
field's current value.
Calibration factor used to convert from raw ADC value to degrees, g, etc.
calibrationFactor
field value. quint32 ThreeDSensorCalibrationMessage::levelShift | ( | ) | const |
Returns the ThreeDSensorCalibrationMessage data message's levelShift
field's current value.
Level shift value used to shift the ADC value back into range
levelShift
field value. qint32 ThreeDSensorCalibrationMessage::offsetCal | ( | ) | const |
Returns the ThreeDSensorCalibrationMessage data message's offsetCal
field's current value.
Internal calibration factors, one for each: xy, yx, zx
offsetCal
field value. qint32 ThreeDSensorCalibrationMessage::orientationMatrix | ( | ) | const |
Returns the ThreeDSensorCalibrationMessage data message's orientationMatrix
field's current value.
3 x 3 rotation matrix (row major)
orientationMatrix
field value. SensorType ThreeDSensorCalibrationMessage::sensorType | ( | ) | const |
Returns the ThreeDSensorCalibrationMessage data message's sensorType
field's current value.
Indicates which sensor the calibration is for
sensorType
field value. void ThreeDSensorCalibrationMessage::setCalibrationDivisor | ( | const quint32 | calibrationDivisor | ) |
Sets the calibrationDivisor
field to calibrationDivisor.
calibrationDivisor | The field value to set. |
void ThreeDSensorCalibrationMessage::setCalibrationFactor | ( | const quint32 | calibrationFactor | ) |
Sets the calibrationFactor
field to calibrationFactor.
calibrationFactor | The field value to set. |
void ThreeDSensorCalibrationMessage::setLevelShift | ( | const quint32 | levelShift | ) |
Sets the levelShift
field to levelShift.
levelShift | The field value to set. |
void ThreeDSensorCalibrationMessage::setOffsetCal | ( | const qint32 | offsetCal | ) |
Sets the offsetCal
field to offsetCal.
offsetCal | The field value to set. |
void ThreeDSensorCalibrationMessage::setOrientationMatrix | ( | const qint32 | orientationMatrix | ) |
Sets the orientationMatrix
field to orientationMatrix.
orientationMatrix | The field value to set. |
void ThreeDSensorCalibrationMessage::setSensorType | ( | const SensorType | sensorType | ) |
Sets the sensorType
field to sensorType.
sensorType | The field value to set. |
void ThreeDSensorCalibrationMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
DateTime ThreeDSensorCalibrationMessage::timestamp | ( | ) | const |
Returns the ThreeDSensorCalibrationMessage data message's timestamp
field's current value.
Whole second part of the timestamp
timestamp
field value.