Main Page   Modules   File List   Globals   Examples  

Motors.c

#include <hemisson.h>

// Add your variables here
// ...

void main()
{
    hemisson_init();                              // Start Hemisson Initialisation
    while(1)
    {
      // Add your Code here
      // ...
      hemisson_set_speed(5,5);
      hemisson_delay_ms(200);             // Wait 200 ms
      hemisson_set_speed(5,-5);
      hemisson_delay_ms(200);             // Wait 200 ms
      hemisson_set_speed(0,0);
      hemisson_delay_ms(200);             // Wait 200 ms
      hemisson_set_speed(-5,-5);
      hemisson_delay_ms(200);             // Wait 200 ms
      hemisson_set_speed(-5,5);
      hemisson_delay_ms(200);             // Wait 200 ms
    }
}

Generated on Sat Jun 14 21:54:50 2003 for HemiOs by doxygen 1.3.1