   glcd.drawline(topy, topx, lefty, leftx, BLACK);
   glcd.drawline(topy, topx, righty, rightx, BLACK);
   //glcd.drawline(altitude,32,29,35, BLACK);
+  
+  char outstr[15];
+  dtostrf(distance,7, 3, outstr);
+  glcd.drawstring(altitude, 5, outstr);
+  
   glcd.display();
 }
 



int count = 0;
String inputString = "";         // a string to hold incoming data
boolean stringComplete = false;  // whether the string is complete

// XBee's DOUT (TX) is connected to pin 2 (Arduino's Software RX)

{
   if (XBee.available())
    { // If data comes in from XBee, send it out to serial monitor
    // get the new byte:
    String inputString1 = "";         // a string to hold incoming data
    char inChar = (char)XBee.read(); 
    // add it to the inputString:
    inputString1 += inChar;
    while (inChar != ',')
    {
      inChar = (char)XBee.read(); 
      // add it to the inputString:
      inputString1 += inChar;
    }
    char floatbuf1[32]; 
    inputString1.toCharArray(floatbuf1, 32*sizeof(char));
    angle = atof(floatbuf1);
    
    
    
    String inputString2 = "";         // a string to hold incoming data
    // get the new byte:
    inChar = (char)XBee.read(); 
    // add it to the inputString:
    inputString2 += inChar;
    while (inChar != '\n')
    {
      inChar = (char)XBee.read(); 
      // add it to the inputString:
      inputString2 += inChar;
    }

    char floatbuf2[32]; 
    inputString2.toCharArray(floatbuf2, 32*sizeof(char));
    distance = atof(floatbuf2);

      Serial.print("angle:");
      Serial.println(angle);
