com.garmin.fit
Class ThreeDSensorCalibrationMesg

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

public class ThreeDSensorCalibrationMesg
extends Mesg


Field Summary
static int CalibrationDivisorFieldNum
           
static int CalibrationFactorFieldNum
           
static int LevelShiftFieldNum
           
static int OffsetCalFieldNum
           
static int OrientationMatrixFieldNum
           
static int SensorTypeFieldNum
           
protected static Mesg threeDSensorCalibrationMesg
           
static int TimestampFieldNum
           
 
Fields inherited from class com.garmin.fit.Mesg
developerFields, fields, localNum, name, num, systemTimeOffset
 
Constructor Summary
ThreeDSensorCalibrationMesg()
           
ThreeDSensorCalibrationMesg(Mesg mesg)
           
 
Method Summary
 java.lang.Long getAccelCalFactor()
          Get accel_cal_factor field Units: g Comment: Accelerometer calibration factor
 java.lang.Long getCalibrationDivisor()
          Get calibration_divisor field Units: counts Comment: Calibration factor divisor
 java.lang.Long getCalibrationFactor()
          Get calibration_factor field Comment: Calibration factor used to convert from raw ADC value to degrees, g, etc.
 java.lang.Long getGyroCalFactor()
          Get gyro_cal_factor field Units: deg/s Comment: Gyro calibration factor
 java.lang.Long getLevelShift()
          Get level_shift field Comment: Level shift value used to shift the ADC value back into range
 int getNumOffsetCal()
           
 int getNumOrientationMatrix()
           
 java.lang.Integer[] getOffsetCal()
           
 java.lang.Integer getOffsetCal(int index)
          Get offset_cal field Comment: Internal calibration factors, one for each: xy, yx, zx
 java.lang.Float[] getOrientationMatrix()
           
 java.lang.Float getOrientationMatrix(int index)
          Get orientation_matrix field Comment: 3 x 3 rotation matrix (row major)
 SensorType getSensorType()
          Get sensor_type field Comment: Indicates which sensor the calibration is for
 DateTime getTimestamp()
          Get timestamp field Units: s Comment: Whole second part of the timestamp
 void setAccelCalFactor(java.lang.Long accelCalFactor)
          Set accel_cal_factor field Units: g Comment: Accelerometer calibration factor
 void setCalibrationDivisor(java.lang.Long calibrationDivisor)
          Set calibration_divisor field Units: counts Comment: Calibration factor divisor
 void setCalibrationFactor(java.lang.Long calibrationFactor)
          Set calibration_factor field Comment: Calibration factor used to convert from raw ADC value to degrees, g, etc.
 void setGyroCalFactor(java.lang.Long gyroCalFactor)
          Set gyro_cal_factor field Units: deg/s Comment: Gyro calibration factor
 void setLevelShift(java.lang.Long levelShift)
          Set level_shift field Comment: Level shift value used to shift the ADC value back into range
 void setOffsetCal(int index, java.lang.Integer offsetCal)
          Set offset_cal field Comment: Internal calibration factors, one for each: xy, yx, zx
 void setOrientationMatrix(int index, java.lang.Float orientationMatrix)
          Set orientation_matrix field Comment: 3 x 3 rotation matrix (row major)
 void setSensorType(SensorType sensorType)
          Set sensor_type field Comment: Indicates which sensor the calibration is for
 void setTimestamp(DateTime timestamp)
          Set timestamp field Units: s Comment: Whole second 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

SensorTypeFieldNum

public static final int SensorTypeFieldNum
See Also:
Constant Field Values

CalibrationFactorFieldNum

public static final int CalibrationFactorFieldNum
See Also:
Constant Field Values

CalibrationDivisorFieldNum

public static final int CalibrationDivisorFieldNum
See Also:
Constant Field Values

LevelShiftFieldNum

public static final int LevelShiftFieldNum
See Also:
Constant Field Values

OffsetCalFieldNum

public static final int OffsetCalFieldNum
See Also:
Constant Field Values

OrientationMatrixFieldNum

public static final int OrientationMatrixFieldNum
See Also:
Constant Field Values

threeDSensorCalibrationMesg

protected static final Mesg threeDSensorCalibrationMesg
Constructor Detail

ThreeDSensorCalibrationMesg

public ThreeDSensorCalibrationMesg()

ThreeDSensorCalibrationMesg

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

getSensorType

public SensorType getSensorType()
Get sensor_type field Comment: Indicates which sensor the calibration is for

Returns:
sensor_type

setSensorType

public void setSensorType(SensorType sensorType)
Set sensor_type field Comment: Indicates which sensor the calibration is for

Parameters:
sensorType -

getCalibrationFactor

public java.lang.Long getCalibrationFactor()
Get calibration_factor field Comment: Calibration factor used to convert from raw ADC value to degrees, g, etc.

Returns:
calibration_factor

setCalibrationFactor

public void setCalibrationFactor(java.lang.Long calibrationFactor)
Set calibration_factor field Comment: Calibration factor used to convert from raw ADC value to degrees, g, etc.

Parameters:
calibrationFactor -

getAccelCalFactor

public java.lang.Long getAccelCalFactor()
Get accel_cal_factor field Units: g Comment: Accelerometer calibration factor

Returns:
accel_cal_factor

setAccelCalFactor

public void setAccelCalFactor(java.lang.Long accelCalFactor)
Set accel_cal_factor field Units: g Comment: Accelerometer calibration factor

Parameters:
accelCalFactor -

getGyroCalFactor

public java.lang.Long getGyroCalFactor()
Get gyro_cal_factor field Units: deg/s Comment: Gyro calibration factor

Returns:
gyro_cal_factor

setGyroCalFactor

public void setGyroCalFactor(java.lang.Long gyroCalFactor)
Set gyro_cal_factor field Units: deg/s Comment: Gyro calibration factor

Parameters:
gyroCalFactor -

getCalibrationDivisor

public java.lang.Long getCalibrationDivisor()
Get calibration_divisor field Units: counts Comment: Calibration factor divisor

Returns:
calibration_divisor

setCalibrationDivisor

public void setCalibrationDivisor(java.lang.Long calibrationDivisor)
Set calibration_divisor field Units: counts Comment: Calibration factor divisor

Parameters:
calibrationDivisor -

getLevelShift

public java.lang.Long getLevelShift()
Get level_shift field Comment: Level shift value used to shift the ADC value back into range

Returns:
level_shift

setLevelShift

public void setLevelShift(java.lang.Long levelShift)
Set level_shift field Comment: Level shift value used to shift the ADC value back into range

Parameters:
levelShift -

getOffsetCal

public java.lang.Integer[] getOffsetCal()

getNumOffsetCal

public int getNumOffsetCal()
Returns:
number of offset_cal

getOffsetCal

public java.lang.Integer getOffsetCal(int index)
Get offset_cal field Comment: Internal calibration factors, one for each: xy, yx, zx

Parameters:
index - of offset_cal
Returns:
offset_cal

setOffsetCal

public void setOffsetCal(int index,
                         java.lang.Integer offsetCal)
Set offset_cal field Comment: Internal calibration factors, one for each: xy, yx, zx

Parameters:
index - of offset_cal
offsetCal -

getOrientationMatrix

public java.lang.Float[] getOrientationMatrix()

getNumOrientationMatrix

public int getNumOrientationMatrix()
Returns:
number of orientation_matrix

getOrientationMatrix

public java.lang.Float getOrientationMatrix(int index)
Get orientation_matrix field Comment: 3 x 3 rotation matrix (row major)

Parameters:
index - of orientation_matrix
Returns:
orientation_matrix

setOrientationMatrix

public void setOrientationMatrix(int index,
                                 java.lang.Float orientationMatrix)
Set orientation_matrix field Comment: 3 x 3 rotation matrix (row major)

Parameters:
index - of orientation_matrix
orientationMatrix -