QtFit  0.1
Native Qt library for Garmin FIT format
All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
GyroscopeDataMessage Class Reference

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

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

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...
 

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...
 

Detailed Description

The GyroscopeDataMessage class represents a FIT GyroscopeDataMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ GyroscopeDataMessage()

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.

Member Function Documentation

◆ calibratedGyroX()

float GyroscopeDataMessage::calibratedGyroX ( ) const

Returns the GyroscopeDataMessage data message's calibratedGyroX field's current value.

Calibrated gyro reading

Returns
the calibratedGyroX field value.
Here is the caller graph for this function:

◆ calibratedGyroY()

float GyroscopeDataMessage::calibratedGyroY ( ) const

Returns the GyroscopeDataMessage data message's calibratedGyroY field's current value.

Calibrated gyro reading

Returns
the calibratedGyroY field value.
Here is the caller graph for this function:

◆ calibratedGyroZ()

float GyroscopeDataMessage::calibratedGyroZ ( ) const

Returns the GyroscopeDataMessage data message's calibratedGyroZ field's current value.

Calibrated gyro reading

Returns
the calibratedGyroZ field value.
Here is the caller graph for this function:

◆ gyroX()

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.

Returns
the gyroX field value.
Here is the caller graph for this function:

◆ gyroY()

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.

Returns
the gyroY field value.
Here is the caller graph for this function:

◆ gyroZ()

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.

Returns
the gyroZ field value.
Here is the caller graph for this function:

◆ sampleTimeOffset()

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

Returns
the sampleTimeOffset field value.
Here is the caller graph for this function:

◆ setCalibratedGyroX()

void GyroscopeDataMessage::setCalibratedGyroX ( const float  calibratedGyroX)

Sets the calibratedGyroX field to calibratedGyroX.

Parameters
calibratedGyroXThe field value to set.
Here is the call graph for this function:

◆ setCalibratedGyroY()

void GyroscopeDataMessage::setCalibratedGyroY ( const float  calibratedGyroY)

Sets the calibratedGyroY field to calibratedGyroY.

Parameters
calibratedGyroYThe field value to set.
Here is the call graph for this function:

◆ setCalibratedGyroZ()

void GyroscopeDataMessage::setCalibratedGyroZ ( const float  calibratedGyroZ)

Sets the calibratedGyroZ field to calibratedGyroZ.

Parameters
calibratedGyroZThe field value to set.
Here is the call graph for this function:

◆ setGyroX()

void GyroscopeDataMessage::setGyroX ( const quint16  gyroX)

Sets the gyroX field to gyroX.

Parameters
gyroXThe field value to set.
Here is the call graph for this function:

◆ setGyroY()

void GyroscopeDataMessage::setGyroY ( const quint16  gyroY)

Sets the gyroY field to gyroY.

Parameters
gyroYThe field value to set.
Here is the call graph for this function:

◆ setGyroZ()

void GyroscopeDataMessage::setGyroZ ( const quint16  gyroZ)

Sets the gyroZ field to gyroZ.

Parameters
gyroZThe field value to set.
Here is the call graph for this function:

◆ setSampleTimeOffset()

void GyroscopeDataMessage::setSampleTimeOffset ( const quint16  sampleTimeOffset)

Sets the sampleTimeOffset field to sampleTimeOffset.

Parameters
sampleTimeOffsetThe field value to set.
Here is the call graph for this function:

◆ setTimestamp()

void GyroscopeDataMessage::setTimestamp ( const DateTime  timestamp)

Sets the timestamp field to timestamp.

Parameters
timestampThe field value to set.
Here is the call graph for this function:

◆ setTimestampMs()

void GyroscopeDataMessage::setTimestampMs ( const quint16  timestampMs)

Sets the timestampMs field to timestampMs.

Parameters
timestampMsThe field value to set.
Here is the call graph for this function:

◆ timestamp()

DateTime GyroscopeDataMessage::timestamp ( ) const

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

Whole second part of the timestamp

Returns
the timestamp field value.
Here is the caller graph for this function:

◆ timestampMs()

quint16 GyroscopeDataMessage::timestampMs ( ) const

Returns the GyroscopeDataMessage data message's timestampMs field's current value.

Millisecond part of the timestamp.

Returns
the timestampMs field value.
Here is the caller graph for this function:

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