|
QtFit
0.1
Internal library development documentation
|
The GyroscopeDataMessage class represents a FIT GyroscopeDataMessage data message. More...
Public Member Functions | |
| GyroscopeDataMessage () | |
| Constructs a GyroscopeDataMessage object. More... | |
| DateTime | timestamp () const |
Returns the GyroscopeDataMessage data message's timestamp field's current value. More... | |
| quint16 | timestampMs () const |
Returns the GyroscopeDataMessage data message's timestampMs field's current value. More... | |
| quint16 | sampleTimeOffset () const |
Returns the GyroscopeDataMessage data message's sampleTimeOffset field's current value. More... | |
| quint16 | gyroX () const |
Returns the GyroscopeDataMessage data message's gyroX field's current value. More... | |
| quint16 | gyroY () const |
Returns the GyroscopeDataMessage data message's gyroY field's current value. More... | |
| quint16 | gyroZ () const |
Returns the GyroscopeDataMessage data message's gyroZ field's current value. More... | |
| float | calibratedGyroX () const |
Returns the GyroscopeDataMessage data message's calibratedGyroX field's current value. More... | |
| float | calibratedGyroY () const |
Returns the GyroscopeDataMessage data message's calibratedGyroY field's current value. More... | |
| float | calibratedGyroZ () const |
Returns the GyroscopeDataMessage data message's calibratedGyroZ field's current value. More... | |
| void | setTimestamp (const DateTime timestamp) |
Sets the timestamp field to timestamp. More... | |
| void | setTimestampMs (const quint16 timestampMs) |
Sets the timestampMs field to timestampMs. More... | |
| void | setSampleTimeOffset (const quint16 sampleTimeOffset) |
Sets the sampleTimeOffset field to sampleTimeOffset. More... | |
| void | setGyroX (const quint16 gyroX) |
Sets the gyroX field to gyroX. More... | |
| void | setGyroY (const quint16 gyroY) |
Sets the gyroY field to gyroY. More... | |
| void | setGyroZ (const quint16 gyroZ) |
Sets the gyroZ field to gyroZ. More... | |
| void | setCalibratedGyroX (const float calibratedGyroX) |
Sets the calibratedGyroX field to calibratedGyroX. More... | |
| void | setCalibratedGyroY (const float calibratedGyroY) |
Sets the calibratedGyroY field to calibratedGyroY. More... | |
| void | setCalibratedGyroZ (const float calibratedGyroZ) |
Sets the calibratedGyroZ field to calibratedGyroZ. 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 | |
| GyroscopeDataMessage (GyroscopeDataMessagePrivate *const d) | |
Protected Member Functions inherited from AbstractDataMessage | |
| AbstractDataMessage (AbstractDataMessagePrivate *const d) | |
Additional Inherited Members | |
Static Public Member Functions inherited from AbstractDataMessage | |
| static AbstractDataMessage * | fromData (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. | |
The GyroscopeDataMessage class represents a FIT GyroscopeDataMessage data message.
Definition at line 39 of file gyroscopedatamessage.h.
| GyroscopeDataMessage::GyroscopeDataMessage | ( | ) |
Constructs a GyroscopeDataMessage 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 gyroscopedatamessage.cpp.
|
explicitprotected |
Constructs a GyroscopeDataMessage object with private implementation d.
| d | Pointer to private implementation. |
Definition at line 64 of file gyroscopedatamessage.cpp.
| float GyroscopeDataMessage::calibratedGyroX | ( | ) | const |
Returns the GyroscopeDataMessage data message's calibratedGyroX field's current value.
Calibrated gyro reading
calibratedGyroX field value. Definition at line 159 of file gyroscopedatamessage.cpp.
Referenced by setCalibratedGyroX().
| float GyroscopeDataMessage::calibratedGyroY | ( | ) | const |
Returns the GyroscopeDataMessage data message's calibratedGyroY field's current value.
Calibrated gyro reading
calibratedGyroY field value. Definition at line 172 of file gyroscopedatamessage.cpp.
Referenced by setCalibratedGyroY().
| float GyroscopeDataMessage::calibratedGyroZ | ( | ) | const |
Returns the GyroscopeDataMessage data message's calibratedGyroZ field's current value.
Calibrated gyro reading
calibratedGyroZ field value. Definition at line 185 of file gyroscopedatamessage.cpp.
Referenced by setCalibratedGyroZ().
| quint16 GyroscopeDataMessage::gyroX | ( | ) | const |
Returns the GyroscopeDataMessage data message's gyroX field's current value.
These are the raw ADC reading. Maximum number of samples is 30 in each message. The samples may span across seconds. A conversion will need to be done on this data once read.
gyroX field value. Definition at line 118 of file gyroscopedatamessage.cpp.
Referenced by setGyroX().
| quint16 GyroscopeDataMessage::gyroY | ( | ) | const |
Returns the GyroscopeDataMessage data message's gyroY field's current value.
These are the raw ADC reading. Maximum number of samples is 30 in each message. The samples may span across seconds. A conversion will need to be done on this data once read.
gyroY field value. Definition at line 132 of file gyroscopedatamessage.cpp.
Referenced by setGyroY().
| quint16 GyroscopeDataMessage::gyroZ | ( | ) | const |
Returns the GyroscopeDataMessage data message's gyroZ field's current value.
These are the raw ADC reading. Maximum number of samples is 30 in each message. The samples may span across seconds. A conversion will need to be done on this data once read.
gyroZ field value. Definition at line 146 of file gyroscopedatamessage.cpp.
Referenced by setGyroZ().
| quint16 GyroscopeDataMessage::sampleTimeOffset | ( | ) | const |
Returns the GyroscopeDataMessage data message's sampleTimeOffset field's current value.
Each time in the array describes the time at which the gyro sample with the corrosponding index was taken. Limited to 30 samples in each message. The samples may span across seconds. Array size must match the number of samples in gyro_x and gyro_y and gyro_z
sampleTimeOffset field value. Definition at line 104 of file gyroscopedatamessage.cpp.
Referenced by setSampleTimeOffset().
| void GyroscopeDataMessage::setCalibratedGyroX | ( | const float | calibratedGyroX | ) |
Sets the calibratedGyroX field to calibratedGyroX.
| calibratedGyroX | The field value to set. |
Definition at line 256 of file gyroscopedatamessage.cpp.
References calibratedGyroX().
| void GyroscopeDataMessage::setCalibratedGyroY | ( | const float | calibratedGyroY | ) |
Sets the calibratedGyroY field to calibratedGyroY.
| calibratedGyroY | The field value to set. |
Definition at line 266 of file gyroscopedatamessage.cpp.
References calibratedGyroY().
| void GyroscopeDataMessage::setCalibratedGyroZ | ( | const float | calibratedGyroZ | ) |
Sets the calibratedGyroZ field to calibratedGyroZ.
| calibratedGyroZ | The field value to set. |
Definition at line 276 of file gyroscopedatamessage.cpp.
References calibratedGyroZ().
| void GyroscopeDataMessage::setGyroX | ( | const quint16 | gyroX | ) |
Sets the gyroX field to gyroX.
| gyroX | The field value to set. |
Definition at line 226 of file gyroscopedatamessage.cpp.
References gyroX().
| void GyroscopeDataMessage::setGyroY | ( | const quint16 | gyroY | ) |
Sets the gyroY field to gyroY.
| gyroY | The field value to set. |
Definition at line 236 of file gyroscopedatamessage.cpp.
References gyroY().
| void GyroscopeDataMessage::setGyroZ | ( | const quint16 | gyroZ | ) |
Sets the gyroZ field to gyroZ.
| gyroZ | The field value to set. |
Definition at line 246 of file gyroscopedatamessage.cpp.
References gyroZ().
| void GyroscopeDataMessage::setSampleTimeOffset | ( | const quint16 | sampleTimeOffset | ) |
Sets the sampleTimeOffset field to sampleTimeOffset.
| sampleTimeOffset | The field value to set. |
Definition at line 216 of file gyroscopedatamessage.cpp.
References sampleTimeOffset().
| void GyroscopeDataMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp field to timestamp.
| timestamp | The field value to set. |
Definition at line 196 of file gyroscopedatamessage.cpp.
References timestamp().
| void GyroscopeDataMessage::setTimestampMs | ( | const quint16 | timestampMs | ) |
Sets the timestampMs field to timestampMs.
| timestampMs | The field value to set. |
Definition at line 206 of file gyroscopedatamessage.cpp.
References timestampMs().
| DateTime GyroscopeDataMessage::timestamp | ( | ) | const |
Returns the GyroscopeDataMessage data message's timestamp field's current value.
Whole second part of the timestamp
timestamp field value. Definition at line 76 of file gyroscopedatamessage.cpp.
Referenced by setTimestamp().
| quint16 GyroscopeDataMessage::timestampMs | ( | ) | const |
Returns the GyroscopeDataMessage data message's timestampMs field's current value.
Millisecond part of the timestamp.
timestampMs field value. Definition at line 89 of file gyroscopedatamessage.cpp.
Referenced by setTimestampMs().