1
DATA_COMMAND/data_command.h@8:95a914f962bd, 2020-01-07 (annotated)
- Committer:
- shaorui
- Date:
- Tue Jan 07 09:23:24 2020 +0000
- Revision:
- 8:95a914f962bd
- Parent:
- 6:aad89fd109c2
- Child:
- 10:f94e325fc1e6
1234
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
WXD | 5:6a95726e45b0 | 1 | #ifndef _DATA_COMMAND_H |
WXD | 5:6a95726e45b0 | 2 | #define _DATA_COMMAND_H |
WXD | 5:6a95726e45b0 | 3 | |
WXD | 5:6a95726e45b0 | 4 | |
WXD | 5:6a95726e45b0 | 5 | #include "mbed.h" |
WXD | 5:6a95726e45b0 | 6 | #include "CAN.h" |
WXD | 5:6a95726e45b0 | 7 | #include "used_leg_message.h" |
WXD | 5:6a95726e45b0 | 8 | #include "mode.h" |
shaorui | 8:95a914f962bd | 9 | #define REST_MODE 0 |
shaorui | 8:95a914f962bd | 10 | #define MOTOR_MODE 1 |
shaorui | 8:95a914f962bd | 11 | #define ZERO_MODE 2 |
shaorui | 8:95a914f962bd | 12 | #define DUOJI_MODE 3 |
WXD | 5:6a95726e45b0 | 13 | extern Serial command; |
WXD | 5:6a95726e45b0 | 14 | extern DigitalOut sf_m_c; |
shaorui | 8:95a914f962bd | 15 | extern int state; |
shaorui | 8:95a914f962bd | 16 | extern int send_enable; |
WXD | 5:6a95726e45b0 | 17 | extern int enabled; |
WXD | 5:6a95726e45b0 | 18 | extern int counter; |
WXD | 5:6a95726e45b0 | 19 | extern int c_control; |
shaorui | 8:95a914f962bd | 20 | extern int duoji_command; |
shaorui | 8:95a914f962bd | 21 | extern float SP_ef, SP_wf; |
WXD | 5:6a95726e45b0 | 22 | void serial_command_isr(); |
WXD | 5:6a95726e45b0 | 23 | void command_control(); |
shaorui | 8:95a914f962bd | 24 | extern char data[2]; |
shaorui | 8:95a914f962bd | 25 | extern int data_num; |
WXD | 5:6a95726e45b0 | 26 | |
WXD | 5:6a95726e45b0 | 27 | |
WXD | 5:6a95726e45b0 | 28 | |
WXD | 5:6a95726e45b0 | 29 | |
WXD | 5:6a95726e45b0 | 30 | |
WXD | 5:6a95726e45b0 | 31 | #endif |
WXD | 5:6a95726e45b0 | 32 | |
WXD | 5:6a95726e45b0 | 33 | |
WXD | 5:6a95726e45b0 | 34 | |
WXD | 5:6a95726e45b0 | 35 | |
WXD | 5:6a95726e45b0 | 36 | |
WXD | 5:6a95726e45b0 | 37 | |
WXD | 5:6a95726e45b0 | 38 | |
WXD | 5:6a95726e45b0 | 39 | |
WXD | 5:6a95726e45b0 | 40 | |
WXD | 5:6a95726e45b0 | 41 | |
WXD | 5:6a95726e45b0 | 42 | |
WXD | 5:6a95726e45b0 | 43 | |
WXD | 5:6a95726e45b0 | 44 | |
WXD | 5:6a95726e45b0 | 45 | |
WXD | 5:6a95726e45b0 | 46 | |
WXD | 5:6a95726e45b0 | 47 | |
WXD | 5:6a95726e45b0 | 48 | |
WXD | 5:6a95726e45b0 | 49 | |
WXD | 5:6a95726e45b0 | 50 | |
WXD | 5:6a95726e45b0 | 51 | |
WXD | 5:6a95726e45b0 | 52 | |
WXD | 5:6a95726e45b0 | 53 | |
WXD | 5:6a95726e45b0 | 54 | |
WXD | 5:6a95726e45b0 | 55 | |
WXD | 5:6a95726e45b0 | 56 | |
WXD | 5:6a95726e45b0 | 57 | |
WXD | 5:6a95726e45b0 | 58 | |
WXD | 5:6a95726e45b0 | 59 |