X-Git-Url: http://git.droids-corp.org/?p=aversive.git;a=blobdiff_plain;f=projects%2Fmicrob2010%2Ftests%2Foa%2Fmain.c;h=f2f4c867762f7d4f385e6ca22d074dfea423f560;hp=5d05ae9460aceaff2d0a86b06ba185ee25bac094;hb=a15451f8535228e9193b5dc042929ca0a7f79d9c;hpb=d1cc3debac68c0012f2c5ca33da9bcf0882f4988 diff --git a/projects/microb2010/tests/oa/main.c b/projects/microb2010/tests/oa/main.c index 5d05ae9..f2f4c86 100644 --- a/projects/microb2010/tests/oa/main.c +++ b/projects/microb2010/tests/oa/main.c @@ -48,7 +48,7 @@ struct djpoint { struct point pos; uint16_t weight; struct djpoint *parent; - + uint8_t type:3; uint8_t parent_pos:3; uint8_t updated:1; @@ -60,7 +60,7 @@ static struct djpoint djpoints[WAYPOINTS_NBX][WAYPOINTS_NBY]; /* table to find the symetric idx */ uint8_t corn_sym[] = { - 15, 16, 17, 12, 13, 14, 10, 11, 8, 9, 6, 7, 3, 4, 5, 0, 1, 2 + 15, 16, 17, 12, 13, 14, 10, 11, 8, 9, 6, 7, 3, 4, 5, 0, 1, 2 }; uint8_t corn_side_confs[9][2] = { @@ -95,7 +95,7 @@ void dump(void) printf(" %2d ", i); } printf("\n"); - + for (j=WAYPOINTS_NBY*2-1; j>=0; j--) { printf("%3d ", j/2); @@ -104,7 +104,7 @@ void dump(void) for (i=0; itype == TYPE_WAYPOINT) printf(" %5d ", pt->weight); else - printf(" ? "); + printf(" ? "); } printf("\n"); } @@ -285,7 +285,7 @@ int dijkstra(struct djpoint *start) todolist = 1; cur->todo = 1; cur->updated = 0; - } + } } return 0; /* XXX */ } @@ -365,7 +365,7 @@ void init_waypoints(void) if (i & 1) y = OFFSET_CORN_Y - STEP_CORN_Y/2; else - y = OFFSET_CORN_Y; + y = OFFSET_CORN_Y; for (j=0; j