Exemplo n.º 1
0
  public void writeTimsMsgBody(OutputStream out) throws IOException {
    DataOutputStream dataOut = new DataOutputStream(out);

    dataOut.writeInt(recordingTime);
    dataOut.writeBytes(logPathName);

    for (int i = 0; i < (40 - logPathName.length()); i++) {
      dataOut.writeByte(0);
    }

    dataOut.writeInt(logNum);

    for (int i = 0; i < logNum; i++) {
      logInfo[i].writeData(dataOut);
    }
  }
Exemplo n.º 2
0
  public void writeTimsMsgBody(OutputStream out) throws IOException {
    DataOutputStream dataOut = new DataOutputStream(out);

    dataOut.writeInt(recordingTime);
    dataOut.writeInt(duration);
    dataOut.writeInt(maxRange);
    dataOut.writeFloat(startAngle);
    dataOut.writeFloat(endAngle);
    dataOut.writeInt(pointNum);

    for (int i = 0; i < pointNum; i++) {
      point[i].writeDataOut(dataOut);
    }
  }
Exemplo n.º 3
0
 public void writeTimsMsgBody(OutputStream out) throws IOException {
   DataOutputStream dataOut = new DataOutputStream(out);
   dataOut.writeInt(dataMbx);
 }