public class MagnetometerDataMesg extends Mesg
Modifier and Type | Field and Description |
---|---|
static int |
CalibratedMagXFieldNum |
static int |
CalibratedMagYFieldNum |
static int |
CalibratedMagZFieldNum |
protected static Mesg |
magnetometerDataMesg |
static int |
MagXFieldNum |
static int |
MagYFieldNum |
static int |
MagZFieldNum |
static int |
SampleTimeOffsetFieldNum |
static int |
TimestampFieldNum |
static int |
TimestampMsFieldNum |
developerFields, fields, localNum, name, num, systemTimeOffset
Constructor and Description |
---|
MagnetometerDataMesg() |
MagnetometerDataMesg(Mesg mesg) |
Modifier and Type | Method and Description |
---|---|
java.lang.Float[] |
getCalibratedMagX() |
java.lang.Float |
getCalibratedMagX(int index)
Get calibrated_mag_x field
Units: G
Comment: Calibrated Magnetometer reading
|
java.lang.Float[] |
getCalibratedMagY() |
java.lang.Float |
getCalibratedMagY(int index)
Get calibrated_mag_y field
Units: G
Comment: Calibrated Magnetometer reading
|
java.lang.Float[] |
getCalibratedMagZ() |
java.lang.Float |
getCalibratedMagZ(int index)
Get calibrated_mag_z field
Units: G
Comment: Calibrated Magnetometer reading
|
java.lang.Integer[] |
getMagX() |
java.lang.Integer |
getMagX(int index)
Get mag_x field
Units: counts
Comment: These are the raw ADC reading.
|
java.lang.Integer[] |
getMagY() |
java.lang.Integer |
getMagY(int index)
Get mag_y field
Units: counts
Comment: These are the raw ADC reading.
|
java.lang.Integer[] |
getMagZ() |
java.lang.Integer |
getMagZ(int index)
Get mag_z field
Units: counts
Comment: These are the raw ADC reading.
|
int |
getNumCalibratedMagX() |
int |
getNumCalibratedMagY() |
int |
getNumCalibratedMagZ() |
int |
getNumMagX() |
int |
getNumMagY() |
int |
getNumMagZ() |
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 compass 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 |
setCalibratedMagX(int index,
java.lang.Float calibratedMagX)
Set calibrated_mag_x field
Units: G
Comment: Calibrated Magnetometer reading
|
void |
setCalibratedMagY(int index,
java.lang.Float calibratedMagY)
Set calibrated_mag_y field
Units: G
Comment: Calibrated Magnetometer reading
|
void |
setCalibratedMagZ(int index,
java.lang.Float calibratedMagZ)
Set calibrated_mag_z field
Units: G
Comment: Calibrated Magnetometer reading
|
void |
setMagX(int index,
java.lang.Integer magX)
Set mag_x field
Units: counts
Comment: These are the raw ADC reading.
|
void |
setMagY(int index,
java.lang.Integer magY)
Set mag_y field
Units: counts
Comment: These are the raw ADC reading.
|
void |
setMagZ(int index,
java.lang.Integer magZ)
Set mag_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 compass 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.
|
addDeveloperField, addField, getActiveSubFieldIndex, getActiveSubFieldName, getDecoderMesgIndex, 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, setDecoderMessageIndex, setField, setFields, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setFieldValue, setLocalNum, timestampToDateTime, write, write
public static final int TimestampFieldNum
public static final int TimestampMsFieldNum
public static final int SampleTimeOffsetFieldNum
public static final int MagXFieldNum
public static final int MagYFieldNum
public static final int MagZFieldNum
public static final int CalibratedMagXFieldNum
public static final int CalibratedMagYFieldNum
public static final int CalibratedMagZFieldNum
protected static final Mesg magnetometerDataMesg
public MagnetometerDataMesg()
public MagnetometerDataMesg(Mesg mesg)
public DateTime getTimestamp()
public void setTimestamp(DateTime timestamp)
timestamp
- The new timestamp value to be setpublic java.lang.Integer getTimestampMs()
public void setTimestampMs(java.lang.Integer timestampMs)
timestampMs
- The new timestampMs value to be setpublic java.lang.Integer[] getSampleTimeOffset()
public int getNumSampleTimeOffset()
public java.lang.Integer getSampleTimeOffset(int index)
index
- of sample_time_offsetpublic void setSampleTimeOffset(int index, java.lang.Integer sampleTimeOffset)
index
- of sample_time_offsetsampleTimeOffset
- The new sampleTimeOffset value to be setpublic java.lang.Integer[] getMagX()
public int getNumMagX()
public java.lang.Integer getMagX(int index)
index
- of mag_xpublic void setMagX(int index, java.lang.Integer magX)
index
- of mag_xmagX
- The new magX value to be setpublic java.lang.Integer[] getMagY()
public int getNumMagY()
public java.lang.Integer getMagY(int index)
index
- of mag_ypublic void setMagY(int index, java.lang.Integer magY)
index
- of mag_ymagY
- The new magY value to be setpublic java.lang.Integer[] getMagZ()
public int getNumMagZ()
public java.lang.Integer getMagZ(int index)
index
- of mag_zpublic void setMagZ(int index, java.lang.Integer magZ)
index
- of mag_zmagZ
- The new magZ value to be setpublic java.lang.Float[] getCalibratedMagX()
public int getNumCalibratedMagX()
public java.lang.Float getCalibratedMagX(int index)
index
- of calibrated_mag_xpublic void setCalibratedMagX(int index, java.lang.Float calibratedMagX)
index
- of calibrated_mag_xcalibratedMagX
- The new calibratedMagX value to be setpublic java.lang.Float[] getCalibratedMagY()
public int getNumCalibratedMagY()
public java.lang.Float getCalibratedMagY(int index)
index
- of calibrated_mag_ypublic void setCalibratedMagY(int index, java.lang.Float calibratedMagY)
index
- of calibrated_mag_ycalibratedMagY
- The new calibratedMagY value to be setpublic java.lang.Float[] getCalibratedMagZ()
public int getNumCalibratedMagZ()
public java.lang.Float getCalibratedMagZ(int index)
index
- of calibrated_mag_zpublic void setCalibratedMagZ(int index, java.lang.Float calibratedMagZ)
index
- of calibrated_mag_zcalibratedMagZ
- The new calibratedMagZ value to be set