/* program to test time duration capabilities of the
   rBeep command
*/
#include "MyroC.h"
#include <stdio.h>

int main ()
{
  rConnect ("/dev/rfcomm0");
  int i;
  //int time_int = 1;
  //double time_max = 32.0;
  double time = 3.0;
  double increment = 1.0/1024.0;
  
  for (i = 0; i < 10; i++)
    {
      printf ("time:  %lf\n", time);
      rBeep (0.5, 880);
      printf ("start now\n");
      rBeep (time, 880 + 20* i);
      printf ("end now\n");

      time += increment;
    }

  rDisconnect ();
  return 0;
}
