Code example for DataOutputStream

Methods: flush, writeBoolean, writeFloat

0
 */ 
   protected  void report() 
    { 
      try 
      { 
         dataOut.writeBoolean(pilot.isMoving());
         dataOut.writeFloat(pilot.getMovementIncrement());
         dataOut.writeFloat(pilot.getAngleIncrement());
         dataOut.flush();
      } catch (IOException e)
      { 
      } 
    } 
/** 
 * Estabish bluetooth connection to mission control 
 */ 
   protected void connect() 
    { 
     BTConnection connection;
     boolean fail = false;
      LCD.clear();