9 #include "simpletools.h" 23 while(ping_cm(8) >= 20) pause(5);
36 while(ping_cm(8) < 20);
This library takes care of encoder monitoring and servo signalling, and provides a simple set of func...
void drive_ramp(int left, int right)
Ramp up to the specified wheel speeds. It works almost the same as drive_speed, except that it steps ...
void drive_setRampStep(int stepsize)
Overrides the default 4 ticks/second per 50th of a second for ramping.
void drive_speed(int left, int right)
Set wheel speeds in encoder ticks per second. An encoder tick is 1/64th of a revolution, and makes causes the wheel to roll 3.25 mm.