QtFit  0.1
Internal library development documentation
All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ThreeDSensorCalibrationMessage Class Reference

The ThreeDSensorCalibrationMessage class represents a FIT ThreeDSensorCalibrationMessage data message. More...

Inheritance diagram for ThreeDSensorCalibrationMessage:
[legend]
Collaboration diagram for ThreeDSensorCalibrationMessage:
[legend]

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...
 
- Public Member Functions inherited from AbstractDataMessage
 ~AbstractDataMessage ()
 Destroys the AbstractDataMessage object.
 
MesgNum globalMessageNumber () const
 Returns the data message's global message number. More...
 

Protected Member Functions

 ThreeDSensorCalibrationMessage (ThreeDSensorCalibrationMessagePrivate *const d)
 
- Protected Member Functions inherited from AbstractDataMessage
 AbstractDataMessage (AbstractDataMessagePrivate *const d)
 

Additional Inherited Members

- Static Public Member Functions inherited from AbstractDataMessage
static AbstractDataMessagefromData (const DataDefinition *const defn, const QByteArray &record)
 Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More...
 
- Protected Attributes inherited from AbstractDataMessage
AbstractDataMessagePrivate *const d_ptr
 Internal d-pointer.
 

Detailed Description

The ThreeDSensorCalibrationMessage class represents a FIT ThreeDSensorCalibrationMessage data message.

See also
DataMessage

Definition at line 39 of file threedsensorcalibrationmessage.h.

Constructor & Destructor Documentation

◆ ThreeDSensorCalibrationMessage() [1/2]

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.

Definition at line 52 of file threedsensorcalibrationmessage.cpp.

53 {
54 
55 }
The AbstractDataMessage class is the polymorphic base class for all FIT Data Message classes.

◆ ThreeDSensorCalibrationMessage() [2/2]

ThreeDSensorCalibrationMessage::ThreeDSensorCalibrationMessage ( ThreeDSensorCalibrationMessagePrivate *const  d)
explicitprotected

Constructs a ThreeDSensorCalibrationMessage object with private implementation d.

Parameters
dPointer to private implementation.

Definition at line 64 of file threedsensorcalibrationmessage.cpp.

65 {
66 
67 }

Member Function Documentation

◆ calibrationDivisor()

quint32 ThreeDSensorCalibrationMessage::calibrationDivisor ( ) const

Returns the ThreeDSensorCalibrationMessage data message's calibrationDivisor field's current value.

Calibration factor divisor

Returns
the calibrationDivisor field value.

Definition at line 115 of file threedsensorcalibrationmessage.cpp.

116 {
118  return d->calibrationDivisor;
119 }
The ThreeDSensorCalibrationMessage class represents a FIT ThreeDSensorCalibrationMessage data message...

Referenced by setCalibrationDivisor().

Here is the caller graph for this function:

◆ calibrationFactor()

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.

Returns
the calibrationFactor field value.

Definition at line 102 of file threedsensorcalibrationmessage.cpp.

103 {
105  return d->calibrationFactor;
106 }

Referenced by setCalibrationFactor().

Here is the caller graph for this function:

◆ levelShift()

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

Returns
the levelShift field value.

Definition at line 128 of file threedsensorcalibrationmessage.cpp.

129 {
131  return d->levelShift;
132 }

Referenced by setLevelShift().

Here is the caller graph for this function:

◆ offsetCal()

qint32 ThreeDSensorCalibrationMessage::offsetCal ( ) const

Returns the ThreeDSensorCalibrationMessage data message's offsetCal field's current value.

Internal calibration factors, one for each: xy, yx, zx

Returns
the offsetCal field value.

Definition at line 141 of file threedsensorcalibrationmessage.cpp.

142 {
144  return d->offsetCal;
145 }

Referenced by setOffsetCal().

Here is the caller graph for this function:

◆ orientationMatrix()

qint32 ThreeDSensorCalibrationMessage::orientationMatrix ( ) const

Returns the ThreeDSensorCalibrationMessage data message's orientationMatrix field's current value.

3 x 3 rotation matrix (row major)

Returns
the orientationMatrix field value.

Definition at line 154 of file threedsensorcalibrationmessage.cpp.

155 {
157  return d->orientationMatrix;
158 }

Referenced by setOrientationMatrix().

Here is the caller graph for this function:

◆ sensorType()

SensorType ThreeDSensorCalibrationMessage::sensorType ( ) const

Returns the ThreeDSensorCalibrationMessage data message's sensorType field's current value.

Indicates which sensor the calibration is for

Returns
the sensorType field value.

Definition at line 89 of file threedsensorcalibrationmessage.cpp.

90 {
92  return d->sensorType;
93 }

Referenced by setSensorType().

Here is the caller graph for this function:

◆ setCalibrationDivisor()

void ThreeDSensorCalibrationMessage::setCalibrationDivisor ( const quint32  calibrationDivisor)

Sets the calibrationDivisor field to calibrationDivisor.

Parameters
calibrationDivisorThe field value to set.

Definition at line 195 of file threedsensorcalibrationmessage.cpp.

196 {
198  d->calibrationDivisor = calibrationDivisor;
199 }
quint32 calibrationDivisor() const
Returns the ThreeDSensorCalibrationMessage data message's calibrationDivisor field's current value.

References calibrationDivisor().

Here is the call graph for this function:

◆ setCalibrationFactor()

void ThreeDSensorCalibrationMessage::setCalibrationFactor ( const quint32  calibrationFactor)

Sets the calibrationFactor field to calibrationFactor.

Parameters
calibrationFactorThe field value to set.

Definition at line 185 of file threedsensorcalibrationmessage.cpp.

186 {
188  d->calibrationFactor = calibrationFactor;
189 }
quint32 calibrationFactor() const
Returns the ThreeDSensorCalibrationMessage data message's calibrationFactor field's current value.

References calibrationFactor().

Here is the call graph for this function:

◆ setLevelShift()

void ThreeDSensorCalibrationMessage::setLevelShift ( const quint32  levelShift)

Sets the levelShift field to levelShift.

Parameters
levelShiftThe field value to set.

Definition at line 205 of file threedsensorcalibrationmessage.cpp.

206 {
208  d->levelShift = levelShift;
209 }
quint32 levelShift() const
Returns the ThreeDSensorCalibrationMessage data message's levelShift field's current value.

References levelShift().

Here is the call graph for this function:

◆ setOffsetCal()

void ThreeDSensorCalibrationMessage::setOffsetCal ( const qint32  offsetCal)

Sets the offsetCal field to offsetCal.

Parameters
offsetCalThe field value to set.

Definition at line 215 of file threedsensorcalibrationmessage.cpp.

216 {
218  d->offsetCal = offsetCal;
219 }
qint32 offsetCal() const
Returns the ThreeDSensorCalibrationMessage data message's offsetCal field's current value.

References offsetCal().

Here is the call graph for this function:

◆ setOrientationMatrix()

void ThreeDSensorCalibrationMessage::setOrientationMatrix ( const qint32  orientationMatrix)

Sets the orientationMatrix field to orientationMatrix.

Parameters
orientationMatrixThe field value to set.

Definition at line 225 of file threedsensorcalibrationmessage.cpp.

226 {
228  d->orientationMatrix = orientationMatrix;
229 }
qint32 orientationMatrix() const
Returns the ThreeDSensorCalibrationMessage data message's orientationMatrix field's current value.

References orientationMatrix().

Here is the call graph for this function:

◆ setSensorType()

void ThreeDSensorCalibrationMessage::setSensorType ( const SensorType  sensorType)

Sets the sensorType field to sensorType.

Parameters
sensorTypeThe field value to set.

Definition at line 175 of file threedsensorcalibrationmessage.cpp.

176 {
178  d->sensorType = sensorType;
179 }
SensorType sensorType() const
Returns the ThreeDSensorCalibrationMessage data message's sensorType field's current value.

References sensorType().

Here is the call graph for this function:

◆ setTimestamp()

void ThreeDSensorCalibrationMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

Parameters
timestampThe field value to set.

Definition at line 165 of file threedsensorcalibrationmessage.cpp.

166 {
168  d->timestamp = timestamp;
169 }
DateTime timestamp() const
Returns the ThreeDSensorCalibrationMessage data message's timestamp field's current value.

References timestamp().

Here is the call graph for this function:

◆ timestamp()

DateTime ThreeDSensorCalibrationMessage::timestamp ( ) const

Returns the ThreeDSensorCalibrationMessage data message's timestamp field's current value.

Whole second part of the timestamp

Returns
the timestamp field value.

Definition at line 76 of file threedsensorcalibrationmessage.cpp.

77 {
79  return d->timestamp;
80 }

Referenced by setTimestamp().

Here is the caller graph for this function:

The documentation for this class was generated from the following files: