// EyeBot Demo Program: Drive, T. Bräunl, Nov. 2015 #include "eyebot.h" #define DIST 500 #define SPEED 200 int main() { LCDPrintf("Drive straight %dmm\n", DIST); VWStraight(DIST, SPEED); VWWait(); // wait until completed LCDPrintf("Rotate 180 deg.\n"); VWTurn(180, 60); // half turn in ca. 3s VWWait(); // wait until completed LCDPrintf("Drive straight %dmm\n", DIST); VWStraight(DIST, SPEED); VWWait(); // wait until completed LCDPrintf("Rotate 180 deg.\n"); VWTurn(180, 60); // half turn in ca. 3s VWWait(); // wait until completed }