Revision 678
bfs for multiple seekers works as long as they all have line of sight. bfs without line of sight needs work in the transition from the followed robot to the target robot.
bfs_fsm.h | ||
---|---|---|
21 | 21 |
|
22 | 22 |
#define BFS_NO_VAL 255 |
23 | 23 |
|
24 |
#define BFS_CHECK_ID_TIME 100 |
|
24 | 25 |
|
25 | 26 |
|
27 |
|
|
26 | 28 |
int bfs_state; /*State machine variable.*/ |
27 | 29 |
|
28 | 30 |
int bfs_otherRobot; /* the robot we are seeking */ |
29 | 31 |
int bfs_my_id; /* my wireless id */ |
30 | 32 |
int bfs_follow_id; /* robot to follow */ |
33 |
int bfs_check_id; /* timer to check robot id to follow */ |
|
31 | 34 |
|
32 | 35 |
|
33 | 36 |
int bfs_pControl; /*Proportional control variable, determines turn direction.*/ |
Also available in: Unified diff