   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();
 }
 

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

    inputString.toCharArray(floatbuf, sizeof(floatbuf));
    distance = atof(floatbuf);

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



int count = 0;

boolean stringComplete = false;  // whether the string is complete

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