Package guiPilotoArduino.arduino

Examples of guiPilotoArduino.arduino.Mensaje


      try {
        String inputLine=input.readLine();
        System.out.println(inputLine);
       
          //Se ha recibido información
            Mensaje msj = new Mensaje(inputLine);
          mensajes.add(msj);
          //Si tenemos el Vector lleno limpiamos el primer elemento.
          if ( mensajes.size() > MAX_SIZE_VECTOR){
            mensajes.remove(0);
          }
         
          if (msj.getTipo().equalsIgnoreCase("HMC5883L")){
            if ( compassData != null ){
              compassData.setValue(new Doublemsj.getValores().get("HMC5883L.degrees")  ));
            }
          }
       
       
      } catch (Exception e) {
View Full Code Here

TOP

Related Classes of guiPilotoArduino.arduino.Mensaje

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.