createBarometerDataMesg static method

Mesg createBarometerDataMesg()

Implementation

static Mesg createBarometerDataMesg() {
  int fieldIndex, subfieldIndex;
  Mesg newMesg = Mesg("BarometerData", MesgNum.barometerData);
  fieldIndex = 0;
  newMesg.setField(
    Field("Timestamp", 253, 134, 1.0, 0.0, "s", false, ProfileType.dateTime),
  );
  fieldIndex++;
  newMesg.setField(
    Field("TimestampMs", 0, 132, 1.0, 0.0, "ms", false, ProfileType.uint16),
  );
  fieldIndex++;
  newMesg.setField(
    Field(
      "SampleTimeOffset",
      1,
      132,
      1.0,
      0.0,
      "ms",
      false,
      ProfileType.uint16,
    ),
  );
  fieldIndex++;
  newMesg.setField(
    Field("BaroPres", 2, 134, 1.0, 0.0, "Pa", false, ProfileType.uint32),
  );
  fieldIndex++;

  return newMesg;
}