/*
 * Basic program to test compiling and Bluetooth connections
 * using the MyroC package
 *
 * This program and all MyroC software is licensed under the Creative Commons
 * Attribution-Noncommercial-Share Alike 3.0 United States License.
 * Details may be found at http://creativecommons.org/licenses/by-nc-sa/3.0/us/
*/

#include "MyroC.h"

// include standard I/O package
#include <stdio.h>  

int main ()
{
  printf ("program to test compiling and Bluetooth connections with MyroC\n");

  printf ("establishing Bluetooth serial connection\n");
  rConnect ("/dev/tty.IPRE6-365877-DevB");

  printf ("working with Scribbler 2 robot\n");
  printf ("   move forward, then right, then back (slower), then left (slower)\n");
  rForward (1.0, 1.0);
  rTurnRight (1.0, 1.0);
  rBackward (0.5, 2.0);
  rTurnLeft (0.5, 2.0);


  printf ("closing bluetooth serial connection\n");
  rDisconnect ();

  printf ("test complete\n");

  return 0;

}

