com.garmin.fit
Class AccelerometerDataMesg

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

public class AccelerometerDataMesg
extends Mesg


Field Summary
protected static Mesg accelerometerDataMesg
           
static int AccelXFieldNum
           
static int AccelYFieldNum
           
static int AccelZFieldNum
           
static int CalibratedAccelXFieldNum
           
static int CalibratedAccelYFieldNum
           
static int CalibratedAccelZFieldNum
           
static int CompressedCalibratedAccelXFieldNum
           
static int CompressedCalibratedAccelYFieldNum
           
static int CompressedCalibratedAccelZFieldNum
           
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
AccelerometerDataMesg()
           
AccelerometerDataMesg(Mesg mesg)
           
 
Method Summary
 java.lang.Integer[] getAccelX()
           
 java.lang.Integer getAccelX(int index)
          Get accel_x field Units: counts Comment: These are the raw ADC reading.
 java.lang.Integer[] getAccelY()
           
 java.lang.Integer getAccelY(int index)
          Get accel_y field Units: counts Comment: These are the raw ADC reading.
 java.lang.Integer[] getAccelZ()
           
 java.lang.Integer getAccelZ(int index)
          Get accel_z field Units: counts Comment: These are the raw ADC reading.
 java.lang.Float[] getCalibratedAccelX()
           
 java.lang.Float getCalibratedAccelX(int index)
          Get calibrated_accel_x field Units: g Comment: Calibrated accel reading
 java.lang.Float[] getCalibratedAccelY()
           
 java.lang.Float getCalibratedAccelY(int index)
          Get calibrated_accel_y field Units: g Comment: Calibrated accel reading
 java.lang.Float[] getCalibratedAccelZ()
           
 java.lang.Float getCalibratedAccelZ(int index)
          Get calibrated_accel_z field Units: g Comment: Calibrated accel reading
 java.lang.Short[] getCompressedCalibratedAccelX()
           
 java.lang.Short getCompressedCalibratedAccelX(int index)
          Get compressed_calibrated_accel_x field Units: mG Comment: Calibrated accel reading
 java.lang.Short[] getCompressedCalibratedAccelY()
           
 java.lang.Short getCompressedCalibratedAccelY(int index)
          Get compressed_calibrated_accel_y field Units: mG Comment: Calibrated accel reading
 java.lang.Short[] getCompressedCalibratedAccelZ()
           
 java.lang.Short getCompressedCalibratedAccelZ(int index)
          Get compressed_calibrated_accel_z field Units: mG Comment: Calibrated accel reading
 int getNumAccelX()
           
 int getNumAccelY()
           
 int getNumAccelZ()
           
 int getNumCalibratedAccelX()
           
 int getNumCalibratedAccelY()
           
 int getNumCalibratedAccelZ()
           
 int getNumCompressedCalibratedAccelX()
           
 int getNumCompressedCalibratedAccelY()
           
 int getNumCompressedCalibratedAccelZ()
           
 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 accelerometer 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 setAccelX(int index, java.lang.Integer accelX)
          Set accel_x field Units: counts Comment: These are the raw ADC reading.
 void setAccelY(int index, java.lang.Integer accelY)
          Set accel_y field Units: counts Comment: These are the raw ADC reading.
 void setAccelZ(int index, java.lang.Integer accelZ)
          Set accel_z field Units: counts Comment: These are the raw ADC reading.
 void setCalibratedAccelX(int index, java.lang.Float calibratedAccelX)
          Set calibrated_accel_x field Units: g Comment: Calibrated accel reading
 void setCalibratedAccelY(int index, java.lang.Float calibratedAccelY)
          Set calibrated_accel_y field Units: g Comment: Calibrated accel reading
 void setCalibratedAccelZ(int index, java.lang.Float calibratedAccelZ)
          Set calibrated_accel_z field Units: g Comment: Calibrated accel reading
 void setCompressedCalibratedAccelX(int index, java.lang.Short compressedCalibratedAccelX)
          Set compressed_calibrated_accel_x field Units: mG Comment: Calibrated accel reading
 void setCompressedCalibratedAccelY(int index, java.lang.Short compressedCalibratedAccelY)
          Set compressed_calibrated_accel_y field Units: mG Comment: Calibrated accel reading
 void setCompressedCalibratedAccelZ(int index, java.lang.Short compressedCalibratedAccelZ)
          Set compressed_calibrated_accel_z field Units: mG Comment: Calibrated accel 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 accelerometer 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

AccelXFieldNum

public static final int AccelXFieldNum
See Also:
Constant Field Values

AccelYFieldNum

public static final int AccelYFieldNum
See Also:
Constant Field Values

AccelZFieldNum

public static final int AccelZFieldNum
See Also:
Constant Field Values

CalibratedAccelXFieldNum

public static final int CalibratedAccelXFieldNum
See Also:
Constant Field Values

CalibratedAccelYFieldNum

public static final int CalibratedAccelYFieldNum
See Also:
Constant Field Values

CalibratedAccelZFieldNum

public static final int CalibratedAccelZFieldNum
See Also:
Constant Field Values

CompressedCalibratedAccelXFieldNum

public static final int CompressedCalibratedAccelXFieldNum
See Also:
Constant Field Values

CompressedCalibratedAccelYFieldNum

public static final int CompressedCalibratedAccelYFieldNum
See Also:
Constant Field Values

CompressedCalibratedAccelZFieldNum

public static final int CompressedCalibratedAccelZFieldNum
See Also:
Constant Field Values

accelerometerDataMesg

protected static final Mesg accelerometerDataMesg
Constructor Detail

AccelerometerDataMesg

public AccelerometerDataMesg()

AccelerometerDataMesg

public AccelerometerDataMesg(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 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

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

Parameters:
index - of sample_time_offset
sampleTimeOffset -

getAccelX

public java.lang.Integer[] getAccelX()

getNumAccelX

public int getNumAccelX()
Returns:
number of accel_x

getAccelX

public java.lang.Integer getAccelX(int index)
Get accel_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 accel_x
Returns:
accel_x

setAccelX

public void setAccelX(int index,
                      java.lang.Integer accelX)
Set accel_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 accel_x
accelX -

getAccelY

public java.lang.Integer[] getAccelY()

getNumAccelY

public int getNumAccelY()
Returns:
number of accel_y

getAccelY

public java.lang.Integer getAccelY(int index)
Get accel_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 accel_y
Returns:
accel_y

setAccelY

public void setAccelY(int index,
                      java.lang.Integer accelY)
Set accel_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 accel_y
accelY -

getAccelZ

public java.lang.Integer[] getAccelZ()

getNumAccelZ

public int getNumAccelZ()
Returns:
number of accel_z

getAccelZ

public java.lang.Integer getAccelZ(int index)
Get accel_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 accel_z
Returns:
accel_z

setAccelZ

public void setAccelZ(int index,
                      java.lang.Integer accelZ)
Set accel_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 accel_z
accelZ -

getCalibratedAccelX

public java.lang.Float[] getCalibratedAccelX()

getNumCalibratedAccelX

public int getNumCalibratedAccelX()
Returns:
number of calibrated_accel_x

getCalibratedAccelX

public java.lang.Float getCalibratedAccelX(int index)
Get calibrated_accel_x field Units: g Comment: Calibrated accel reading

Parameters:
index - of calibrated_accel_x
Returns:
calibrated_accel_x

setCalibratedAccelX

public void setCalibratedAccelX(int index,
                                java.lang.Float calibratedAccelX)
Set calibrated_accel_x field Units: g Comment: Calibrated accel reading

Parameters:
index - of calibrated_accel_x
calibratedAccelX -

getCalibratedAccelY

public java.lang.Float[] getCalibratedAccelY()

getNumCalibratedAccelY

public int getNumCalibratedAccelY()
Returns:
number of calibrated_accel_y

getCalibratedAccelY

public java.lang.Float getCalibratedAccelY(int index)
Get calibrated_accel_y field Units: g Comment: Calibrated accel reading

Parameters:
index - of calibrated_accel_y
Returns:
calibrated_accel_y

setCalibratedAccelY

public void setCalibratedAccelY(int index,
                                java.lang.Float calibratedAccelY)
Set calibrated_accel_y field Units: g Comment: Calibrated accel reading

Parameters:
index - of calibrated_accel_y
calibratedAccelY -

getCalibratedAccelZ

public java.lang.Float[] getCalibratedAccelZ()

getNumCalibratedAccelZ

public int getNumCalibratedAccelZ()
Returns:
number of calibrated_accel_z

getCalibratedAccelZ

public java.lang.Float getCalibratedAccelZ(int index)
Get calibrated_accel_z field Units: g Comment: Calibrated accel reading

Parameters:
index - of calibrated_accel_z
Returns:
calibrated_accel_z

setCalibratedAccelZ

public void setCalibratedAccelZ(int index,
                                java.lang.Float calibratedAccelZ)
Set calibrated_accel_z field Units: g Comment: Calibrated accel reading

Parameters:
index - of calibrated_accel_z
calibratedAccelZ -

getCompressedCalibratedAccelX

public java.lang.Short[] getCompressedCalibratedAccelX()

getNumCompressedCalibratedAccelX

public int getNumCompressedCalibratedAccelX()
Returns:
number of compressed_calibrated_accel_x

getCompressedCalibratedAccelX

public java.lang.Short getCompressedCalibratedAccelX(int index)
Get compressed_calibrated_accel_x field Units: mG Comment: Calibrated accel reading

Parameters:
index - of compressed_calibrated_accel_x
Returns:
compressed_calibrated_accel_x

setCompressedCalibratedAccelX

public void setCompressedCalibratedAccelX(int index,
                                          java.lang.Short compressedCalibratedAccelX)
Set compressed_calibrated_accel_x field Units: mG Comment: Calibrated accel reading

Parameters:
index - of compressed_calibrated_accel_x
compressedCalibratedAccelX -

getCompressedCalibratedAccelY

public java.lang.Short[] getCompressedCalibratedAccelY()

getNumCompressedCalibratedAccelY

public int getNumCompressedCalibratedAccelY()
Returns:
number of compressed_calibrated_accel_y

getCompressedCalibratedAccelY

public java.lang.Short getCompressedCalibratedAccelY(int index)
Get compressed_calibrated_accel_y field Units: mG Comment: Calibrated accel reading

Parameters:
index - of compressed_calibrated_accel_y
Returns:
compressed_calibrated_accel_y

setCompressedCalibratedAccelY

public void setCompressedCalibratedAccelY(int index,
                                          java.lang.Short compressedCalibratedAccelY)
Set compressed_calibrated_accel_y field Units: mG Comment: Calibrated accel reading

Parameters:
index - of compressed_calibrated_accel_y
compressedCalibratedAccelY -

getCompressedCalibratedAccelZ

public java.lang.Short[] getCompressedCalibratedAccelZ()

getNumCompressedCalibratedAccelZ

public int getNumCompressedCalibratedAccelZ()
Returns:
number of compressed_calibrated_accel_z

getCompressedCalibratedAccelZ

public java.lang.Short getCompressedCalibratedAccelZ(int index)
Get compressed_calibrated_accel_z field Units: mG Comment: Calibrated accel reading

Parameters:
index - of compressed_calibrated_accel_z
Returns:
compressed_calibrated_accel_z

setCompressedCalibratedAccelZ

public void setCompressedCalibratedAccelZ(int index,
                                          java.lang.Short compressedCalibratedAccelZ)
Set compressed_calibrated_accel_z field Units: mG Comment: Calibrated accel reading

Parameters:
index - of compressed_calibrated_accel_z
compressedCalibratedAccelZ -