1

Committer:
ccxx1200
Date:
Thu Mar 12 15:17:18 2020 +0000
Revision:
10:f94e325fc1e6
Parent:
8:95a914f962bd
1

Who changed what in which revision?

UserRevisionLine numberNew 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"
ccxx1200 10:f94e325fc1e6 9 #define e_REST_MODE 0
ccxx1200 10:f94e325fc1e6 10 #define w_REST_MODE 4
ccxx1200 10:f94e325fc1e6 11 #define DUOJI_REST__MODE 5
shaorui 8:95a914f962bd 12 #define MOTOR_MODE 1
shaorui 8:95a914f962bd 13 #define ZERO_MODE 2
shaorui 8:95a914f962bd 14 #define DUOJI_MODE 3
ccxx1200 10:f94e325fc1e6 15
WXD 5:6a95726e45b0 16 extern Serial command;
WXD 5:6a95726e45b0 17 extern DigitalOut sf_m_c;
ccxx1200 10:f94e325fc1e6 18 extern int e_state;
ccxx1200 10:f94e325fc1e6 19 extern int w_state;
ccxx1200 10:f94e325fc1e6 20 extern int duoji_state;
shaorui 8:95a914f962bd 21 extern int send_enable;
WXD 5:6a95726e45b0 22 extern int enabled;
WXD 5:6a95726e45b0 23 extern int counter;
WXD 5:6a95726e45b0 24 extern int c_control;
shaorui 8:95a914f962bd 25 extern int duoji_command;
shaorui 8:95a914f962bd 26 extern float SP_ef, SP_wf;
WXD 5:6a95726e45b0 27 void serial_command_isr();
WXD 5:6a95726e45b0 28 void command_control();
ccxx1200 10:f94e325fc1e6 29 extern char data[3];
shaorui 8:95a914f962bd 30 extern int data_num;
WXD 5:6a95726e45b0 31
WXD 5:6a95726e45b0 32
WXD 5:6a95726e45b0 33
WXD 5:6a95726e45b0 34
WXD 5:6a95726e45b0 35
WXD 5:6a95726e45b0 36 #endif
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
WXD 5:6a95726e45b0 60
WXD 5:6a95726e45b0 61
WXD 5:6a95726e45b0 62
WXD 5:6a95726e45b0 63
WXD 5:6a95726e45b0 64