diff options
Diffstat (limited to 'serial/serial.h')
-rw-r--r-- | serial/serial.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/serial/serial.h b/serial/serial.h index 7f09bf8..3563557 100644 --- a/serial/serial.h +++ b/serial/serial.h | |||
@@ -17,8 +17,8 @@ | |||
17 | #define MAX_BUFFER_SIZE 1024 | 17 | #define MAX_BUFFER_SIZE 1024 |
18 | #define DEFAULT_SPEED 0x15 // 默认速度,百分比 | 18 | #define DEFAULT_SPEED 0x15 // 默认速度,百分比 |
19 | // TODO: 两个待测数据 | 19 | // TODO: 两个待测数据 |
20 | #define RADIUS 0.26 // 两轮之间的距离的一半,米 | 20 | #define RADIUS 0.13 // 两轮之间的距离的一半,米 |
21 | #define FULLSPEED 1.5 // 轮子全速,m/s | 21 | #define FULLSPEED 0.60 // 轮子全速,m/s |
22 | #define fabs(x) ((x) > 0 ? (x) : -(x)) | 22 | #define fabs(x) ((x) > 0 ? (x) : -(x)) |
23 | typedef unsigned char byte; | 23 | typedef unsigned char byte; |
24 | 24 | ||