Revision 1691
circle.c | ||
---|---|---|
47 | 47 |
} |
48 | 48 |
} |
49 | 49 |
|
50 |
/* |
|
51 |
Current situation: |
|
52 |
go to the center. ends when each edge robto send "I am here" message |
|
50 | 53 |
|
54 |
I think compasses are in the club, but not on the robots? |
|
55 |
|
|
56 |
Assume we have the compasses, and write pseudocode, maybe? |
|
57 |
|
|
58 |
TODO: |
|
59 |
Center: |
|
60 |
1. Make a move forward method/state to make the circle begin moving as a group. |
|
61 |
|
|
62 |
Edge: |
|
63 |
2. Find a way to follow the middle robot and preserve circle structure, or follow a directional command given by the center robot. |
|
64 |
3. Fix the error case with wireless - if the center robot does not receive the first exist packet, the robot keeps sending it and will cause error later. |
|
65 |
|
|
66 |
In general: |
|
67 |
More testing. Especially with robots that are actually working. |
|
68 |
*/ |
|
69 |
|
|
70 |
|
|
51 | 71 |
/* |
52 | 72 |
This program is used to make robots target a center (leader) robot using the BOM, |
53 | 73 |
then drive toward it and stop at a certain distance away. |
Also available in: Unified diff