/** Decode message with raw data */
 public void decode(LittleEndianDataInputStream dis) throws IOException {
   time_usec = (long) dis.readLong();
   press_abs = (int) dis.readShort();
   press_diff1 = (int) dis.readShort();
   press_diff2 = (int) dis.readShort();
   temperature = (int) dis.readShort();
 }
Exemple #2
0
 /** Decode message with raw data */
 public void decode(LittleEndianDataInputStream dis) throws IOException {
   time_usec = (long) dis.readLong();
   xacc = (int) dis.readShort();
   yacc = (int) dis.readShort();
   zacc = (int) dis.readShort();
   xgyro = (int) dis.readShort();
   ygyro = (int) dis.readShort();
   zgyro = (int) dis.readShort();
   xmag = (int) dis.readShort();
   ymag = (int) dis.readShort();
   zmag = (int) dis.readShort();
 }