/*
 *Flag indicating manual control should be done
*/
int1 manControl_enabled = 0;

/**
 * This function relays data recieved to the RoboTeq without processing
 * Fla
 * Written by Todd Berk, toddberk@gmail.com 2007
**/
void manual_control()
{
//b characters to be recieved and relayed
char bstr[10] = "";
char astr[10] = "";
   while(manControl_enabled)
   {
      if(kbhit(BASESTREAM))
      {
         //get string
         fgets(bstr,BASESTREAM);
         fgets(astr,BASESTREAM);
         //if c = ? then disable manControl
         if(bstr == "?")
         {
            manControl_enabled = 0;
            return;
         }
         //relay string
         fputs(bstr,ROBOSTREAM);
         fputs(astr,ROBOSTREAM);
         //update compass
         update_compass();
         //synchronize with base
         report_base();
      }
   }

}
