Ejemplo n.º 1
0
  public synchronized ChassisParamMsg getParam() {
    currentSequenceNo++;
    try {
      TimsMsgRouter.send0(
          MSG_CHASSIS_GET_PARAMETER, commandMbx, replyMbx, (byte) 0, currentSequenceNo);

      TimsDataMsg reply;
      do {
        reply = TimsMsgRouter.receive(replyMbx, 1000);
      } while ((reply.seq_nr != currentSequenceNo) & (reply.type == MSG_CHASSIS_PARAMETER));

      ChassisParamMsg data = new ChassisParamMsg(reply);
      return (data);
    } catch (MsgException e) {
      System.out.println(e);
      return (null);
    }
  }