![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
SE1
define.h@1:9c35cd14067d, 2016-09-30 (annotated)
- Committer:
- sgrsn
- Date:
- Fri Sep 30 12:33:59 2016 +0000
- Revision:
- 1:9c35cd14067d
- Parent:
- 0:51438a7d7c37
SE1_9/30
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
sgrsn | 0:51438a7d7c37 | 1 | /*Registar group*************************************/ |
sgrsn | 0:51438a7d7c37 | 2 | |
sgrsn | 0:51438a7d7c37 | 3 | #define motor1_state 0x01 |
sgrsn | 0:51438a7d7c37 | 4 | #define motor2_state 0x02 |
sgrsn | 0:51438a7d7c37 | 5 | #define motor1_pwm 0x03 |
sgrsn | 0:51438a7d7c37 | 6 | #define motor2_pwm 0x04 |
sgrsn | 0:51438a7d7c37 | 7 | #define check_reg 0x05 |
sgrsn | 0:51438a7d7c37 | 8 | #define PM_target_reg 0x10 |
sgrsn | 0:51438a7d7c37 | 9 | #define RE_target_reg 0x20 |
sgrsn | 0:51438a7d7c37 | 10 | #define Kp 0x30 |
sgrsn | 0:51438a7d7c37 | 11 | #define pid_start 0x40 |
sgrsn | 0:51438a7d7c37 | 12 | #define machine_state 0x45 |
sgrsn | 0:51438a7d7c37 | 13 | #define PM_ofset_reg 0x50 |
sgrsn | 0:51438a7d7c37 | 14 | |
sgrsn | 0:51438a7d7c37 | 15 | /*Address group*************************************/ |
sgrsn | 0:51438a7d7c37 | 16 | //MD : MotorDriver |
sgrsn | 0:51438a7d7c37 | 17 | #define MD1_addr 0x12 |
sgrsn | 0:51438a7d7c37 | 18 | #define MD2_addr 0x14 |
sgrsn | 0:51438a7d7c37 | 19 | #define MD3_addr 0x16 |
sgrsn | 0:51438a7d7c37 | 20 | #define MD4_addr 0x18 |
sgrsn | 0:51438a7d7c37 | 21 | #define MD5_addr 0x20 |
sgrsn | 0:51438a7d7c37 | 22 | #define MD6_addr 0x22 |
sgrsn | 0:51438a7d7c37 | 23 | #define MD7_addr 0x24 |
sgrsn | 0:51438a7d7c37 | 24 | #define MD8_addr 0x26 |
sgrsn | 0:51438a7d7c37 | 25 | #define MD9_addr 0x28 |
sgrsn | 0:51438a7d7c37 | 26 | #define MD10_addr 0x30 |
sgrsn | 0:51438a7d7c37 | 27 | #define MD11_addr 0x32 |
sgrsn | 0:51438a7d7c37 | 28 | #define MD12_addr 0x34 |
sgrsn | 0:51438a7d7c37 | 29 | #define MD13_addr 0x36 |
sgrsn | 0:51438a7d7c37 | 30 | #define MD14_addr 0x38 |
sgrsn | 1:9c35cd14067d | 31 | #define MD15_addr 0x40 |
sgrsn | 0:51438a7d7c37 | 32 | |
sgrsn | 0:51438a7d7c37 | 33 | //SE : Sensor |
sgrsn | 0:51438a7d7c37 | 34 | #define SE1_addr 0x90 |
sgrsn | 0:51438a7d7c37 | 35 | #define SE2_addr 0xA0 |
sgrsn | 0:51438a7d7c37 | 36 | |
sgrsn | 0:51438a7d7c37 | 37 | /*Motor movement***********************************/ |
sgrsn | 0:51438a7d7c37 | 38 | |
sgrsn | 0:51438a7d7c37 | 39 | #define Nomal 5 |
sgrsn | 0:51438a7d7c37 | 40 | #define Reverse 10 |
sgrsn | 0:51438a7d7c37 | 41 | #define Stop 3 |