QtFit
0.1
Native Qt library for Garmin FIT format
|
The AviationAttitudeMessage class represents a FIT AviationAttitudeMessage data message. More...
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... | |
![]() | |
~AbstractDataMessage () | |
Destroys the AbstractDataMessage object. | |
MesgNum | globalMessageNumber () const |
Returns the data message's global message number. More... | |
Additional Inherited Members | |
![]() | |
static AbstractDataMessage * | fromData (const DataDefinition *const defn, const QByteArray &record) |
Constructs the relevant AbstractDataMessage-derived class to parse record according to defn. More... | |
The AviationAttitudeMessage class represents a FIT AviationAttitudeMessage data message.
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.
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)
accelLateral
field value. 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)
accelNormal
field value. 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
attitudeStageComplete
field value. qint16 AviationAttitudeMessage::pitch | ( | ) | const |
Returns the AviationAttitudeMessage data message's pitch
field's current value.
Range -PI/2 to +PI/2
pitch
field value. qint16 AviationAttitudeMessage::roll | ( | ) | const |
Returns the AviationAttitudeMessage data message's roll
field's current value.
Range -PI to +PI
roll
field value. void AviationAttitudeMessage::setAccelLateral | ( | const qint16 | accelLateral | ) |
Sets the accelLateral
field to accelLateral.
accelLateral | The field value to set. |
void AviationAttitudeMessage::setAccelNormal | ( | const qint16 | accelNormal | ) |
Sets the accelNormal
field to accelNormal.
accelNormal | The field value to set. |
void AviationAttitudeMessage::setAttitudeStageComplete | ( | const quint8 | attitudeStageComplete | ) |
Sets the attitudeStageComplete
field to attitudeStageComplete.
attitudeStageComplete | The field value to set. |
void AviationAttitudeMessage::setPitch | ( | const qint16 | pitch | ) |
Sets the pitch
field to pitch.
pitch | The field value to set. |
void AviationAttitudeMessage::setRoll | ( | const qint16 | roll | ) |
Sets the roll
field to roll.
roll | The field value to set. |
void AviationAttitudeMessage::setStage | ( | const AttitudeStage | stage | ) |
Sets the stage
field to stage.
stage | The field value to set. |
void AviationAttitudeMessage::setSystemTime | ( | const quint32 | systemTime | ) |
Sets the systemTime
field to systemTime.
systemTime | The field value to set. |
void AviationAttitudeMessage::setTimestamp | ( | const DateTime | timestamp | ) |
Sets the timestamp
field to timestamp.
timestamp | The field value to set. |
void AviationAttitudeMessage::setTimestampMs | ( | const quint16 | timestampMs | ) |
Sets the timestampMs
field to timestampMs.
timestampMs | The field value to set. |
void AviationAttitudeMessage::setTrack | ( | const quint16 | track | ) |
Sets the track
field to track.
track | The field value to set. |
void AviationAttitudeMessage::setTurnRate | ( | const qint16 | turnRate | ) |
Sets the turnRate
field to turnRate.
turnRate | The field value to set. |
void AviationAttitudeMessage::setValidity | ( | const AttitudeValidity | validity | ) |
Sets the validity
field to validity.
validity | The field value to set. |
AttitudeStage AviationAttitudeMessage::stage | ( | ) | const |
Returns the AviationAttitudeMessage data message's stage
field's current value.
stage
field value. quint32 AviationAttitudeMessage::systemTime | ( | ) | const |
Returns the AviationAttitudeMessage data message's systemTime
field's current value.
System time associated with sample expressed in ms.
systemTime
field value. DateTime AviationAttitudeMessage::timestamp | ( | ) | const |
Returns the AviationAttitudeMessage data message's timestamp
field's current value.
Timestamp message was output
timestamp
field value. quint16 AviationAttitudeMessage::timestampMs | ( | ) | const |
Returns the AviationAttitudeMessage data message's timestampMs
field's current value.
Fractional part of timestamp, added to timestamp
timestampMs
field value. quint16 AviationAttitudeMessage::track | ( | ) | const |
Returns the AviationAttitudeMessage data message's track
field's current value.
Track Angle/Heading Range 0 - 2pi
track
field value. 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)
turnRate
field value. AttitudeValidity AviationAttitudeMessage::validity | ( | ) | const |
Returns the AviationAttitudeMessage data message's validity
field's current value.
validity
field value.