Revision 1344
Final version of feedback controls project
internals.h | ||
---|---|---|
1 | 1 |
#ifndef INTERNALS_H |
2 | 2 |
#define INTERNALS_H |
3 | 3 |
|
4 |
#define LS 0 |
|
5 |
#define LD 1 |
|
6 |
#define RS 2 |
|
7 |
#define RD 3 |
|
8 |
|
|
9 | 4 |
#define LEFT 1 |
10 | 5 |
#define RIGHT 0 |
11 | 6 |
|
12 |
#define FORWARD 1 |
|
13 |
#define BACKWARD 0 |
|
14 | 7 |
#define SENDER 1 |
15 | 8 |
#define RECEIVER 0 |
16 | 9 |
|
... | ... | |
21 | 14 |
#define DT .088 |
22 | 15 |
|
23 | 16 |
#define DIST(x1, y1, x2, y2) (sqrt(((x1)-(x2))*((x1)-(x2)) + ((y1)-(y2))*((y1)-(y2)))) |
24 |
#define LOOK_AHEAD 40
|
|
17 |
#define LOOK_AHEAD 30
|
|
25 | 18 |
#define LOOK_AHEAD_ERR_THRES 5 |
26 |
#define VELOCITY 10
|
|
19 |
#define VELOCITY 15
|
|
27 | 20 |
|
28 | 21 |
typedef struct state |
29 | 22 |
{ |
Also available in: Unified diff