1

Dependencies:   mcp2515 mbed-dev-f303

Committer:
yezhong
Date:
Tue Jan 11 02:19:55 2022 +0000
Revision:
4:2503c88a564f
Parent:
0:d80c66cb1b3a
Child:
5:902ba9999d6c
1

Who changed what in which revision?

UserRevisionLine numberNew contents of line
panzhan 0:d80c66cb1b3a 1 #ifndef _DATA_BOARD_H
panzhan 0:d80c66cb1b3a 2 #define _DATA_BOARD_H
panzhan 0:d80c66cb1b3a 3
panzhan 0:d80c66cb1b3a 4
panzhan 0:d80c66cb1b3a 5 #include "mbed.h"
panzhan 0:d80c66cb1b3a 6 #include "math_ops.h"
panzhan 0:d80c66cb1b3a 7
panzhan 0:d80c66cb1b3a 8
panzhan 0:d80c66cb1b3a 9 extern Serial foot;
panzhan 0:d80c66cb1b3a 10
panzhan 0:d80c66cb1b3a 11
panzhan 0:d80c66cb1b3a 12
panzhan 0:d80c66cb1b3a 13 //extern unsigned int flag_485_A, flag_485_B;
panzhan 0:d80c66cb1b3a 14 //extern unsigned int S485num;
panzhan 0:d80c66cb1b3a 15 //extern uint16_t S485get[10];
panzhan 0:d80c66cb1b3a 16 extern uint16_t S485use[10];
panzhan 0:d80c66cb1b3a 17
panzhan 0:d80c66cb1b3a 18 ////////////////////////////////////////////////////////////////////////////////
panzhan 0:d80c66cb1b3a 19
panzhan 0:d80c66cb1b3a 20 extern unsigned int Gait_num_valid, Gait_now, Gait_per_now, Gait_cycle_now;
panzhan 0:d80c66cb1b3a 21 extern float COP_Y, COP_X;
panzhan 0:d80c66cb1b3a 22 extern uint16_t Gait_per_now_int, COP_Y_int, COP_X_int, Gait_cycle_now_int;
panzhan 0:d80c66cb1b3a 23
panzhan 0:d80c66cb1b3a 24 extern unsigned int Gait_num_valid_0before, Gait_now_0before;
panzhan 0:d80c66cb1b3a 25 extern float Gait_per_now_0before, COP_Y_0before, COP_X_0before, Gait_cycle_now_0before;
panzhan 0:d80c66cb1b3a 26
panzhan 0:d80c66cb1b3a 27 extern unsigned int Gait_num_valid_real, Gait_now_real, Gait_per_now_real, Gait_cycle_now_real, time_portion_now_real;
panzhan 0:d80c66cb1b3a 28 extern float COP_Y_real, COP_X_real;
panzhan 0:d80c66cb1b3a 29
panzhan 0:d80c66cb1b3a 30
panzhan 0:d80c66cb1b3a 31 //void gait_decode();
panzhan 0:d80c66cb1b3a 32 //void gait_clear();
panzhan 0:d80c66cb1b3a 33
panzhan 0:d80c66cb1b3a 34 ////////////////////////////////////////////////////////////////////////////////
panzhan 0:d80c66cb1b3a 35
panzhan 0:d80c66cb1b3a 36 void serial_board_isr();
panzhan 0:d80c66cb1b3a 37
panzhan 0:d80c66cb1b3a 38 ////////////////////////////////////////////////////////////////////////////////
panzhan 0:d80c66cb1b3a 39
yezhong 4:2503c88a564f 40
yezhong 4:2503c88a564f 41
yezhong 4:2503c88a564f 42 extern AnalogIn LaLi_pf;
yezhong 4:2503c88a564f 43 extern AnalogIn LaLi_df;
yezhong 4:2503c88a564f 44 extern AnalogIn LaLi_df1;
yezhong 4:2503c88a564f 45
yezhong 4:2503c88a564f 46 extern float La_pf_real, La_df_real,La_df1_real;
yezhong 4:2503c88a564f 47 extern float Ffilter_pf[10 + 2];
yezhong 4:2503c88a564f 48 extern float pf_filter ;
yezhong 4:2503c88a564f 49 extern float F_pf;
yezhong 4:2503c88a564f 50
panzhan 0:d80c66cb1b3a 51 #endif
panzhan 0:d80c66cb1b3a 52
panzhan 0:d80c66cb1b3a 53
panzhan 0:d80c66cb1b3a 54
panzhan 0:d80c66cb1b3a 55
panzhan 0:d80c66cb1b3a 56
panzhan 0:d80c66cb1b3a 57
panzhan 0:d80c66cb1b3a 58
panzhan 0:d80c66cb1b3a 59
panzhan 0:d80c66cb1b3a 60
panzhan 0:d80c66cb1b3a 61
panzhan 0:d80c66cb1b3a 62
panzhan 0:d80c66cb1b3a 63
panzhan 0:d80c66cb1b3a 64
panzhan 0:d80c66cb1b3a 65