1
Diff: DATA_COMMAND/data_command.h
- Revision:
- 8:95a914f962bd
- Parent:
- 6:aad89fd109c2
- Child:
- 10:f94e325fc1e6
--- a/DATA_COMMAND/data_command.h Tue Dec 10 09:23:12 2019 +0000 +++ b/DATA_COMMAND/data_command.h Tue Jan 07 09:23:24 2020 +0000 @@ -6,31 +6,23 @@ #include "CAN.h" #include "used_leg_message.h" #include "mode.h" -#include "control.h" - - +#define REST_MODE 0 +#define MOTOR_MODE 1 +#define ZERO_MODE 2 +#define DUOJI_MODE 3 extern Serial command; extern DigitalOut sf_m_c; - - +extern int state; +extern int send_enable; extern int enabled; extern int counter; extern int c_control; -extern float SP_pf, SP_df; -extern int c_lock; -extern int return_zero; - - -extern unsigned int flag_A, flag_B; -extern unsigned int Snum; -extern uint16_t Sget[10]; -extern uint16_t Suse[10]; - - +extern int duoji_command; +extern float SP_ef, SP_wf; void serial_command_isr(); void command_control(); - - +extern char data[2]; +extern int data_num;