QtFit
0.1
Native Qt library for Garmin FIT format
|
The OneDSensorCalibrationMessage class represents a FIT OneDSensorCalibrationMessage data message. More...
Public Member Functions | |
OneDSensorCalibrationMessage () | |
Constructs a OneDSensorCalibrationMessage object. More... | |
DateTime | timestamp () const |
Returns the OneDSensorCalibrationMessage data message's timestamp field's current value. More... | |
SensorType | sensorType () const |
Returns the OneDSensorCalibrationMessage data message's sensorType field's current value. More... | |
quint32 | calibrationFactor () const |
Returns the OneDSensorCalibrationMessage data message's calibrationFactor field's current value. More... | |
quint32 | calibrationDivisor () const |
Returns the OneDSensorCalibrationMessage data message's calibrationDivisor field's current value. More... | |
quint32 | levelShift () const |
Returns the OneDSensorCalibrationMessage data message's levelShift field's current value. More... | |
qint32 | offsetCal () const |
Returns the OneDSensorCalibrationMessage data message's offsetCal 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... | |
![]() | |
~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 OneDSensorCalibrationMessage class represents a FIT OneDSensorCalibrationMessage data message.
OneDSensorCalibrationMessage::OneDSensorCalibrationMessage | ( | ) |
Constructs a OneDSensorCalibrationMessage 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 OneDSensorCalibrationMessage::calibrationDivisor | ( | ) | const |
Returns the OneDSensorCalibrationMessage data message's calibrationDivisor
field's current value.
Calibration factor divisor
calibrationDivisor
field value. quint32 OneDSensorCalibrationMessage::calibrationFactor | ( | ) | const |
Returns the OneDSensorCalibrationMessage 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 OneDSensorCalibrationMessage::levelShift | ( | ) | const |
Returns the OneDSensorCalibrationMessage data message's levelShift
field's current value.
Level shift value used to shift the ADC value back into range
levelShift
field value. qint32 OneDSensorCalibrationMessage::offsetCal | ( | ) | const |
Returns the OneDSensorCalibrationMessage data message's offsetCal
field's current value.
Internal Calibration factor
offsetCal
field value. SensorType OneDSensorCalibrationMessage::sensorType | ( | ) | const |
Returns the OneDSensorCalibrationMessage data message's sensorType
field's current value.
Indicates which sensor the calibration is for
sensorType
field value. void OneDSensorCalibrationMessage::setCalibrationDivisor | ( | const quint32 | calibrationDivisor | ) |
Sets the calibrationDivisor
field to calibrationDivisor.
calibrationDivisor | The field value to set. |
void OneDSensorCalibrationMessage::setCalibrationFactor | ( | const quint32 | calibrationFactor | ) |
Sets the calibrationFactor
field to calibrationFactor.
calibrationFactor | The field value to set. |
void OneDSensorCalibrationMessage::setLevelShift | ( | const quint32 | levelShift | ) |
Sets the levelShift
field to levelShift.
levelShift | The field value to set. |
void OneDSensorCalibrationMessage::setOffsetCal | ( | const qint32 | offsetCal | ) |
Sets the offsetCal
field to offsetCal.
offsetCal | The field value to set. |
void OneDSensorCalibrationMessage::setSensorType | ( | const SensorType | sensorType | ) |
Sets the sensorType
field to sensorType.
sensorType | The field value to set. |
void OneDSensorCalibrationMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
DateTime OneDSensorCalibrationMessage::timestamp | ( | ) | const |
Returns the OneDSensorCalibrationMessage data message's timestamp
field's current value.
Whole second part of the timestamp
timestamp
field value.