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

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

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

Public Member Functions

 AviationAttitudeMessage ()
 Constructs a AviationAttitudeMessage object. More...
 
DateTime timestamp () const
 Returns the AviationAttitudeMessage data message's timestamp field's current value. More...
 
quint16 timestampMs () const
 Returns the AviationAttitudeMessage data message's timestampMs field's current value. More...
 
quint32 systemTime () const
 Returns the AviationAttitudeMessage data message's systemTime field's current value. More...
 
qint16 pitch () const
 Returns the AviationAttitudeMessage data message's pitch field's current value. More...
 
qint16 roll () const
 Returns the AviationAttitudeMessage data message's roll field's current value. More...
 
qint16 accelLateral () const
 Returns the AviationAttitudeMessage data message's accelLateral field's current value. More...
 
qint16 accelNormal () const
 Returns the AviationAttitudeMessage data message's accelNormal field's current value. More...
 
qint16 turnRate () const
 Returns the AviationAttitudeMessage data message's turnRate field's current value. More...
 
AttitudeStage stage () const
 Returns the AviationAttitudeMessage data message's stage field's current value. More...
 
quint8 attitudeStageComplete () const
 Returns the AviationAttitudeMessage data message's attitudeStageComplete field's current value. More...
 
quint16 track () const
 Returns the AviationAttitudeMessage data message's track field's current value. More...
 
AttitudeValidity validity () const
 Returns the AviationAttitudeMessage data message's validity 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 setSystemTime (const quint32 systemTime)
 Sets the systemTime field to systemTime. More...
 
void setPitch (const qint16 pitch)
 Sets the pitch field to pitch. More...
 
void setRoll (const qint16 roll)
 Sets the roll field to roll. More...
 
void setAccelLateral (const qint16 accelLateral)
 Sets the accelLateral field to accelLateral. More...
 
void setAccelNormal (const qint16 accelNormal)
 Sets the accelNormal field to accelNormal. More...
 
void setTurnRate (const qint16 turnRate)
 Sets the turnRate field to turnRate. More...
 
void setStage (const AttitudeStage stage)
 Sets the stage field to stage. More...
 
void setAttitudeStageComplete (const quint8 attitudeStageComplete)
 Sets the attitudeStageComplete field to attitudeStageComplete. More...
 
void setTrack (const quint16 track)
 Sets the track field to track. More...
 
void setValidity (const AttitudeValidity validity)
 Sets the validity field to validity. 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 AviationAttitudeMessage class represents a FIT AviationAttitudeMessage data message.

See also
DataMessage

Constructor & Destructor Documentation

◆ AviationAttitudeMessage()

AviationAttitudeMessage::AviationAttitudeMessage ( )

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

◆ accelLateral()

qint16 AviationAttitudeMessage::accelLateral ( ) const

Returns the AviationAttitudeMessage data message's accelLateral field's current value.

Range -78.4 to +78.4 (-8 Gs to 8 Gs)

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

◆ accelNormal()

qint16 AviationAttitudeMessage::accelNormal ( ) const

Returns the AviationAttitudeMessage data message's accelNormal field's current value.

Range -78.4 to +78.4 (-8 Gs to 8 Gs)

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

◆ attitudeStageComplete()

quint8 AviationAttitudeMessage::attitudeStageComplete ( ) const

Returns the AviationAttitudeMessage data message's attitudeStageComplete field's current value.

The percent complete of the current attitude stage. Set to 0 for attitude stages 0, 1 and 2 and to 100 for attitude stage 3 by AHRS modules that do not support it. Range - 100

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

◆ pitch()

qint16 AviationAttitudeMessage::pitch ( ) const

Returns the AviationAttitudeMessage data message's pitch field's current value.

Range -PI/2 to +PI/2

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

◆ roll()

qint16 AviationAttitudeMessage::roll ( ) const

Returns the AviationAttitudeMessage data message's roll field's current value.

Range -PI to +PI

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

◆ setAccelLateral()

void AviationAttitudeMessage::setAccelLateral ( const qint16  accelLateral)

Sets the accelLateral field to accelLateral.

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

◆ setAccelNormal()

void AviationAttitudeMessage::setAccelNormal ( const qint16  accelNormal)

Sets the accelNormal field to accelNormal.

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

◆ setAttitudeStageComplete()

void AviationAttitudeMessage::setAttitudeStageComplete ( const quint8  attitudeStageComplete)

Sets the attitudeStageComplete field to attitudeStageComplete.

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

◆ setPitch()

void AviationAttitudeMessage::setPitch ( const qint16  pitch)

Sets the pitch field to pitch.

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

◆ setRoll()

void AviationAttitudeMessage::setRoll ( const qint16  roll)

Sets the roll field to roll.

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

◆ setStage()

void AviationAttitudeMessage::setStage ( const AttitudeStage  stage)

Sets the stage field to stage.

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

◆ setSystemTime()

void AviationAttitudeMessage::setSystemTime ( const quint32  systemTime)

Sets the systemTime field to systemTime.

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

◆ setTimestamp()

void AviationAttitudeMessage::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 AviationAttitudeMessage::setTimestampMs ( const quint16  timestampMs)

Sets the timestampMs field to timestampMs.

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

◆ setTrack()

void AviationAttitudeMessage::setTrack ( const quint16  track)

Sets the track field to track.

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

◆ setTurnRate()

void AviationAttitudeMessage::setTurnRate ( const qint16  turnRate)

Sets the turnRate field to turnRate.

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

◆ setValidity()

void AviationAttitudeMessage::setValidity ( const AttitudeValidity  validity)

Sets the validity field to validity.

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

◆ stage()

AttitudeStage AviationAttitudeMessage::stage ( ) const

Returns the AviationAttitudeMessage data message's stage field's current value.

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

◆ systemTime()

quint32 AviationAttitudeMessage::systemTime ( ) const

Returns the AviationAttitudeMessage data message's systemTime field's current value.

System time associated with sample expressed in ms.

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

◆ timestamp()

DateTime AviationAttitudeMessage::timestamp ( ) const

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

Timestamp message was output

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

◆ timestampMs()

quint16 AviationAttitudeMessage::timestampMs ( ) const

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

Fractional part of timestamp, added to timestamp

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

◆ track()

quint16 AviationAttitudeMessage::track ( ) const

Returns the AviationAttitudeMessage data message's track field's current value.

Track Angle/Heading Range 0 - 2pi

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

◆ turnRate()

qint16 AviationAttitudeMessage::turnRate ( ) const

Returns the AviationAttitudeMessage data message's turnRate field's current value.

Range -8.727 to +8.727 (-500 degs/sec to +500 degs/sec)

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

◆ validity()

AttitudeValidity AviationAttitudeMessage::validity ( ) const

Returns the AviationAttitudeMessage data message's validity field's current value.

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

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