com.garmin.fit
Class GyroscopeDataMesg

java.lang.Object
  extended by com.garmin.fit.Mesg
      extended by com.garmin.fit.GyroscopeDataMesg

public class GyroscopeDataMesg
extends Mesg


Field Summary
static int CalibratedGyroXFieldNum
           
static int CalibratedGyroYFieldNum
           
static int CalibratedGyroZFieldNum
           
protected static Mesg gyroscopeDataMesg
           
static int GyroXFieldNum
           
static int GyroYFieldNum
           
static int GyroZFieldNum
           
static int SampleTimeOffsetFieldNum
           
static int TimestampFieldNum
           
static int TimestampMsFieldNum
           
 
Fields inherited from class com.garmin.fit.Mesg
developerFields, fields, localNum, name, num, systemTimeOffset
 
Constructor Summary
GyroscopeDataMesg()
           
GyroscopeDataMesg(Mesg mesg)
           
 
Method Summary
 java.lang.Float[] getCalibratedGyroX()
           
 java.lang.Float getCalibratedGyroX(int index)
          Get calibrated_gyro_x field Units: deg/s Comment: Calibrated gyro reading
 java.lang.Float[] getCalibratedGyroY()
           
 java.lang.Float getCalibratedGyroY(int index)
          Get calibrated_gyro_y field Units: deg/s Comment: Calibrated gyro reading
 java.lang.Float[] getCalibratedGyroZ()
           
 java.lang.Float getCalibratedGyroZ(int index)
          Get calibrated_gyro_z field Units: deg/s Comment: Calibrated gyro reading
 java.lang.Integer[] getGyroX()
           
 java.lang.Integer getGyroX(int index)
          Get gyro_x field Units: counts Comment: These are the raw ADC reading.
 java.lang.Integer[] getGyroY()
           
 java.lang.Integer getGyroY(int index)
          Get gyro_y field Units: counts Comment: These are the raw ADC reading.
 java.lang.Integer[] getGyroZ()
           
 java.lang.Integer getGyroZ(int index)
          Get gyro_z field Units: counts Comment: These are the raw ADC reading.
 int getNumCalibratedGyroX()
           
 int getNumCalibratedGyroY()
           
 int getNumCalibratedGyroZ()
           
 int getNumGyroX()
           
 int getNumGyroY()
           
 int getNumGyroZ()
           
 int getNumSampleTimeOffset()
           
 java.lang.Integer[] getSampleTimeOffset()
           
 java.lang.Integer getSampleTimeOffset(int index)
          Get sample_time_offset field Units: ms Comment: Each time in the array describes the time at which the gyro sample with the corrosponding index was taken.
 DateTime getTimestamp()
          Get timestamp field Units: s Comment: Whole second part of the timestamp
 java.lang.Integer getTimestampMs()
          Get timestamp_ms field Units: ms Comment: Millisecond part of the timestamp.
 void setCalibratedGyroX(int index, java.lang.Float calibratedGyroX)
          Set calibrated_gyro_x field Units: deg/s Comment: Calibrated gyro reading
 void setCalibratedGyroY(int index, java.lang.Float calibratedGyroY)
          Set calibrated_gyro_y field Units: deg/s Comment: Calibrated gyro reading
 void setCalibratedGyroZ(int index, java.lang.Float calibratedGyroZ)
          Set calibrated_gyro_z field Units: deg/s Comment: Calibrated gyro reading
 void setGyroX(int index, java.lang.Integer gyroX)
          Set gyro_x field Units: counts Comment: These are the raw ADC reading.
 void setGyroY(int index, java.lang.Integer gyroY)
          Set gyro_y field Units: counts Comment: These are the raw ADC reading.
 void setGyroZ(int index, java.lang.Integer gyroZ)
          Set gyro_z field Units: counts Comment: These are the raw ADC reading.
 void setSampleTimeOffset(int index, java.lang.Integer sampleTimeOffset)
          Set sample_time_offset field Units: ms Comment: Each time in the array describes the time at which the gyro sample with the corrosponding index was taken.
 void setTimestamp(DateTime timestamp)
          Set timestamp field Units: s Comment: Whole second part of the timestamp
 void setTimestampMs(java.lang.Integer timestampMs)
          Set timestamp_ms field Units: ms Comment: Millisecond part of the timestamp.
 
Methods inherited from class com.garmin.fit.Mesg
addDeveloperField, addField, getActiveSubFieldIndex, getActiveSubFieldName, getDeveloperFields, getField, getField, getField, getFieldBigIntegerValue, getFieldBigIntegerValue, getFieldBigIntegerValue, getFieldBigIntegerValue, getFieldBigIntegerValue, getFieldBigIntegerValue, getFieldBigIntegerValues, getFieldBigIntegerValues, getFieldBigIntegerValues, getFieldBitsValue, getFieldBitsValue, getFieldByteValue, getFieldByteValue, getFieldByteValue, getFieldByteValue, getFieldByteValue, getFieldByteValue, getFieldByteValues, getFieldByteValues, getFieldByteValues, getFieldDoubleValue, getFieldDoubleValue, getFieldDoubleValue, getFieldDoubleValue, getFieldDoubleValue, getFieldDoubleValue, getFieldDoubleValues, getFieldDoubleValues, getFieldDoubleValues, getFieldFloatValue, getFieldFloatValue, getFieldFloatValue, getFieldFloatValue, getFieldFloatValue, getFieldFloatValue, getFieldFloatValues, getFieldFloatValues, getFieldFloatValues, getFieldIntegerValue, getFieldIntegerValue, getFieldIntegerValue, getFieldIntegerValue, getFieldIntegerValue, getFieldIntegerValue, getFieldIntegerValues, getFieldIntegerValues, getFieldIntegerValues, getFieldLongValue, getFieldLongValue, getFieldLongValue, getFieldLongValue, getFieldLongValue, getFieldLongValue, getFieldLongValues, getFieldLongValues, getFieldLongValues, getFields, getFieldShortValue, getFieldShortValue, getFieldShortValue, getFieldShortValue, getFieldShortValue, getFieldShortValue, getFieldShortValues, getFieldShortValues, getFieldShortValues, getFieldStringValue, getFieldStringValue, getFieldStringValue, getFieldStringValue, getFieldStringValue, getFieldStringValue, getFieldStringValues, getFieldStringValues, getFieldStringValues, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getFieldValue, getIsFieldAccumulated, getLocalNum, getName, getNum, getNumFields, getNumFieldValues, getNumFieldValues, getNumFieldValues, getNumFieldValues, getOverrideField, hasField, removeExpandedFields, removeField, setField, setFields, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setLocalNum, timestampToDateTime, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TimestampFieldNum

public static final int TimestampFieldNum
See Also:
Constant Field Values

TimestampMsFieldNum

public static final int TimestampMsFieldNum
See Also:
Constant Field Values

SampleTimeOffsetFieldNum

public static final int SampleTimeOffsetFieldNum
See Also:
Constant Field Values

GyroXFieldNum

public static final int GyroXFieldNum
See Also:
Constant Field Values

GyroYFieldNum

public static final int GyroYFieldNum
See Also:
Constant Field Values

GyroZFieldNum

public static final int GyroZFieldNum
See Also:
Constant Field Values

CalibratedGyroXFieldNum

public static final int CalibratedGyroXFieldNum
See Also:
Constant Field Values

CalibratedGyroYFieldNum

public static final int CalibratedGyroYFieldNum
See Also:
Constant Field Values

CalibratedGyroZFieldNum

public static final int CalibratedGyroZFieldNum
See Also:
Constant Field Values

gyroscopeDataMesg

protected static final Mesg gyroscopeDataMesg
Constructor Detail

GyroscopeDataMesg

public GyroscopeDataMesg()

GyroscopeDataMesg

public GyroscopeDataMesg(Mesg mesg)
Method Detail

getTimestamp

public DateTime getTimestamp()
Get timestamp field Units: s Comment: Whole second part of the timestamp

Returns:
timestamp

setTimestamp

public void setTimestamp(DateTime timestamp)
Set timestamp field Units: s Comment: Whole second part of the timestamp

Parameters:
timestamp -

getTimestampMs

public java.lang.Integer getTimestampMs()
Get timestamp_ms field Units: ms Comment: Millisecond part of the timestamp.

Returns:
timestamp_ms

setTimestampMs

public void setTimestampMs(java.lang.Integer timestampMs)
Set timestamp_ms field Units: ms Comment: Millisecond part of the timestamp.

Parameters:
timestampMs -

getSampleTimeOffset

public java.lang.Integer[] getSampleTimeOffset()

getNumSampleTimeOffset

public int getNumSampleTimeOffset()
Returns:
number of sample_time_offset

getSampleTimeOffset

public java.lang.Integer getSampleTimeOffset(int index)
Get sample_time_offset field Units: ms Comment: 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

Parameters:
index - of sample_time_offset
Returns:
sample_time_offset

setSampleTimeOffset

public void setSampleTimeOffset(int index,
                                java.lang.Integer sampleTimeOffset)
Set sample_time_offset field Units: ms Comment: 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

Parameters:
index - of sample_time_offset
sampleTimeOffset -

getGyroX

public java.lang.Integer[] getGyroX()

getNumGyroX

public int getNumGyroX()
Returns:
number of gyro_x

getGyroX

public java.lang.Integer getGyroX(int index)
Get gyro_x field Units: counts Comment: 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.

Parameters:
index - of gyro_x
Returns:
gyro_x

setGyroX

public void setGyroX(int index,
                     java.lang.Integer gyroX)
Set gyro_x field Units: counts Comment: 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.

Parameters:
index - of gyro_x
gyroX -

getGyroY

public java.lang.Integer[] getGyroY()

getNumGyroY

public int getNumGyroY()
Returns:
number of gyro_y

getGyroY

public java.lang.Integer getGyroY(int index)
Get gyro_y field Units: counts Comment: 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.

Parameters:
index - of gyro_y
Returns:
gyro_y

setGyroY

public void setGyroY(int index,
                     java.lang.Integer gyroY)
Set gyro_y field Units: counts Comment: 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.

Parameters:
index - of gyro_y
gyroY -

getGyroZ

public java.lang.Integer[] getGyroZ()

getNumGyroZ

public int getNumGyroZ()
Returns:
number of gyro_z

getGyroZ

public java.lang.Integer getGyroZ(int index)
Get gyro_z field Units: counts Comment: 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.

Parameters:
index - of gyro_z
Returns:
gyro_z

setGyroZ

public void setGyroZ(int index,
                     java.lang.Integer gyroZ)
Set gyro_z field Units: counts Comment: 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.

Parameters:
index - of gyro_z
gyroZ -

getCalibratedGyroX

public java.lang.Float[] getCalibratedGyroX()

getNumCalibratedGyroX

public int getNumCalibratedGyroX()
Returns:
number of calibrated_gyro_x

getCalibratedGyroX

public java.lang.Float getCalibratedGyroX(int index)
Get calibrated_gyro_x field Units: deg/s Comment: Calibrated gyro reading

Parameters:
index - of calibrated_gyro_x
Returns:
calibrated_gyro_x

setCalibratedGyroX

public void setCalibratedGyroX(int index,
                               java.lang.Float calibratedGyroX)
Set calibrated_gyro_x field Units: deg/s Comment: Calibrated gyro reading

Parameters:
index - of calibrated_gyro_x
calibratedGyroX -

getCalibratedGyroY

public java.lang.Float[] getCalibratedGyroY()

getNumCalibratedGyroY

public int getNumCalibratedGyroY()
Returns:
number of calibrated_gyro_y

getCalibratedGyroY

public java.lang.Float getCalibratedGyroY(int index)
Get calibrated_gyro_y field Units: deg/s Comment: Calibrated gyro reading

Parameters:
index - of calibrated_gyro_y
Returns:
calibrated_gyro_y

setCalibratedGyroY

public void setCalibratedGyroY(int index,
                               java.lang.Float calibratedGyroY)
Set calibrated_gyro_y field Units: deg/s Comment: Calibrated gyro reading

Parameters:
index - of calibrated_gyro_y
calibratedGyroY -

getCalibratedGyroZ

public java.lang.Float[] getCalibratedGyroZ()

getNumCalibratedGyroZ

public int getNumCalibratedGyroZ()
Returns:
number of calibrated_gyro_z

getCalibratedGyroZ

public java.lang.Float getCalibratedGyroZ(int index)
Get calibrated_gyro_z field Units: deg/s Comment: Calibrated gyro reading

Parameters:
index - of calibrated_gyro_z
Returns:
calibrated_gyro_z

setCalibratedGyroZ

public void setCalibratedGyroZ(int index,
                               java.lang.Float calibratedGyroZ)
Set calibrated_gyro_z field Units: deg/s Comment: Calibrated gyro reading

Parameters:
index - of calibrated_gyro_z
calibratedGyroZ -