followLine.c

00001 /*
00002   トセタノスセ、ホ・オ・ラ・  Satofumi KAMIMURA
00003   $Id$
00004 */
00005 
00006 #include "run_ctrl.h"
00007 #include <stdio.h>
00008 #include <stdlib.h>
00009 
00010 
00011 int main(int argc, char *argv[]) {
00012   int i;
00013 
00014   if (initRunCtrl(argc, argv) < 0) {
00015     printf("initRunCtrl: %s\n", run_getError());
00016     exit(1);
00017   }
00018 
00019   run_followLine(GL, 0, 0, deg(90));
00020   for (i = 0; i < 10; ++i) {
00021     int x = 0, y = 0, div16 = 0;
00022     int ret = run_getBodyPos(GL, &x, &y, &div16);
00023     printf("ret: %d, %d, %d, %d\n", ret, x, y, div16);
00024     //printf("%d\n", getDiffPos(GL, 0, 0));
00025 
00026     mWait(500);
00027   }
00028   printf("%d\n", run_getDiffPos(GL, 0, 0));
00029   run_stop();
00030 
00031   return 0;
00032 }
00033 

Generated on Mon Apr 13 22:52:04 2009 by  doxygen 1.5.7.1