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

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

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

Public Member Functions

 AccelerometerDataMessage ()
 Constructs a AccelerometerDataMessage object. More...
 
DateTime timestamp () const
 Returns the AccelerometerDataMessage data message's timestamp field's current value. More...
 
quint16 timestampMs () const
 Returns the AccelerometerDataMessage data message's timestampMs field's current value. More...
 
quint16 sampleTimeOffset () const
 Returns the AccelerometerDataMessage data message's sampleTimeOffset field's current value. More...
 
quint16 accelX () const
 Returns the AccelerometerDataMessage data message's accelX field's current value. More...
 
quint16 accelY () const
 Returns the AccelerometerDataMessage data message's accelY field's current value. More...
 
quint16 accelZ () const
 Returns the AccelerometerDataMessage data message's accelZ field's current value. More...
 
float calibratedAccelX () const
 Returns the AccelerometerDataMessage data message's calibratedAccelX field's current value. More...
 
float calibratedAccelY () const
 Returns the AccelerometerDataMessage data message's calibratedAccelY field's current value. More...
 
float calibratedAccelZ () const
 Returns the AccelerometerDataMessage data message's calibratedAccelZ field's current value. More...
 
qint16 compressedCalibratedAccelX () const
 Returns the AccelerometerDataMessage data message's compressedCalibratedAccelX field's current value. More...
 
qint16 compressedCalibratedAccelY () const
 Returns the AccelerometerDataMessage data message's compressedCalibratedAccelY field's current value. More...
 
qint16 compressedCalibratedAccelZ () const
 Returns the AccelerometerDataMessage data message's compressedCalibratedAccelZ 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 setAccelX (const quint16 accelX)
 Sets the accelX field to accelX. More...
 
void setAccelY (const quint16 accelY)
 Sets the accelY field to accelY. More...
 
void setAccelZ (const quint16 accelZ)
 Sets the accelZ field to accelZ. More...
 
void setCalibratedAccelX (const float calibratedAccelX)
 Sets the calibratedAccelX field to calibratedAccelX. More...
 
void setCalibratedAccelY (const float calibratedAccelY)
 Sets the calibratedAccelY field to calibratedAccelY. More...
 
void setCalibratedAccelZ (const float calibratedAccelZ)
 Sets the calibratedAccelZ field to calibratedAccelZ. More...
 
void setCompressedCalibratedAccelX (const qint16 compressedCalibratedAccelX)
 Sets the compressedCalibratedAccelX field to compressedCalibratedAccelX. More...
 
void setCompressedCalibratedAccelY (const qint16 compressedCalibratedAccelY)
 Sets the compressedCalibratedAccelY field to compressedCalibratedAccelY. More...
 
void setCompressedCalibratedAccelZ (const qint16 compressedCalibratedAccelZ)
 Sets the compressedCalibratedAccelZ field to compressedCalibratedAccelZ. 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 AccelerometerDataMessage class represents a FIT AccelerometerDataMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ AccelerometerDataMessage()

AccelerometerDataMessage::AccelerometerDataMessage ( )

Constructs a AccelerometerDataMessage 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

◆ accelX()

quint16 AccelerometerDataMessage::accelX ( ) const

Returns the AccelerometerDataMessage data message's accelX 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 accelX field value.
Here is the caller graph for this function:

◆ accelY()

quint16 AccelerometerDataMessage::accelY ( ) const

Returns the AccelerometerDataMessage data message's accelY 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 accelY field value.
Here is the caller graph for this function:

◆ accelZ()

quint16 AccelerometerDataMessage::accelZ ( ) const

Returns the AccelerometerDataMessage data message's accelZ 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 accelZ field value.
Here is the caller graph for this function:

◆ calibratedAccelX()

float AccelerometerDataMessage::calibratedAccelX ( ) const

Returns the AccelerometerDataMessage data message's calibratedAccelX field's current value.

Calibrated accel reading

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

◆ calibratedAccelY()

float AccelerometerDataMessage::calibratedAccelY ( ) const

Returns the AccelerometerDataMessage data message's calibratedAccelY field's current value.

Calibrated accel reading

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

◆ calibratedAccelZ()

float AccelerometerDataMessage::calibratedAccelZ ( ) const

Returns the AccelerometerDataMessage data message's calibratedAccelZ field's current value.

Calibrated accel reading

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

◆ compressedCalibratedAccelX()

qint16 AccelerometerDataMessage::compressedCalibratedAccelX ( ) const

Returns the AccelerometerDataMessage data message's compressedCalibratedAccelX field's current value.

Calibrated accel reading

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

◆ compressedCalibratedAccelY()

qint16 AccelerometerDataMessage::compressedCalibratedAccelY ( ) const

Returns the AccelerometerDataMessage data message's compressedCalibratedAccelY field's current value.

Calibrated accel reading

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

◆ compressedCalibratedAccelZ()

qint16 AccelerometerDataMessage::compressedCalibratedAccelZ ( ) const

Returns the AccelerometerDataMessage data message's compressedCalibratedAccelZ field's current value.

Calibrated accel reading

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

◆ sampleTimeOffset()

quint16 AccelerometerDataMessage::sampleTimeOffset ( ) const

Returns the AccelerometerDataMessage data message's sampleTimeOffset field's current value.

Each time in the array describes the time at which the accelerometer 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 accel_x and accel_y and accel_z

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

◆ setAccelX()

void AccelerometerDataMessage::setAccelX ( const quint16  accelX)

Sets the accelX field to accelX.

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

◆ setAccelY()

void AccelerometerDataMessage::setAccelY ( const quint16  accelY)

Sets the accelY field to accelY.

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

◆ setAccelZ()

void AccelerometerDataMessage::setAccelZ ( const quint16  accelZ)

Sets the accelZ field to accelZ.

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

◆ setCalibratedAccelX()

void AccelerometerDataMessage::setCalibratedAccelX ( const float  calibratedAccelX)

Sets the calibratedAccelX field to calibratedAccelX.

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

◆ setCalibratedAccelY()

void AccelerometerDataMessage::setCalibratedAccelY ( const float  calibratedAccelY)

Sets the calibratedAccelY field to calibratedAccelY.

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

◆ setCalibratedAccelZ()

void AccelerometerDataMessage::setCalibratedAccelZ ( const float  calibratedAccelZ)

Sets the calibratedAccelZ field to calibratedAccelZ.

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

◆ setCompressedCalibratedAccelX()

void AccelerometerDataMessage::setCompressedCalibratedAccelX ( const qint16  compressedCalibratedAccelX)

Sets the compressedCalibratedAccelX field to compressedCalibratedAccelX.

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

◆ setCompressedCalibratedAccelY()

void AccelerometerDataMessage::setCompressedCalibratedAccelY ( const qint16  compressedCalibratedAccelY)

Sets the compressedCalibratedAccelY field to compressedCalibratedAccelY.

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

◆ setCompressedCalibratedAccelZ()

void AccelerometerDataMessage::setCompressedCalibratedAccelZ ( const qint16  compressedCalibratedAccelZ)

Sets the compressedCalibratedAccelZ field to compressedCalibratedAccelZ.

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

◆ setSampleTimeOffset()

void AccelerometerDataMessage::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 AccelerometerDataMessage::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 AccelerometerDataMessage::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 AccelerometerDataMessage::timestamp ( ) const

Returns the AccelerometerDataMessage 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 AccelerometerDataMessage::timestampMs ( ) const

Returns the AccelerometerDataMessage 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: