111

Dependencies:   yezhong_main_controller_copy mbed1-dev

Committer:
yezhong
Date:
Tue Feb 22 14:26:28 2022 +0000
Revision:
7:d1b09098579b
Parent:
6:902ba9999d6c
11

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
yezhong 7:d1b09098579b 11 extern Serial zitai_foot;
yezhong 7:d1b09098579b 12 extern unsigned int zitaifoot_A, zitaifoot_B;
yezhong 7:d1b09098579b 13 extern unsigned int zitaifoot_num;
yezhong 7:d1b09098579b 14 extern uint16_t zitaifoot_get[9];
yezhong 7:d1b09098579b 15 extern uint16_t zitaifoot_use[9];
yezhong 7:d1b09098579b 16 extern float zitaifoot_shou[3];
yezhong 7:d1b09098579b 17 extern float foot_angle_x,foot_angle_y,foot_angle_z;
panzhan 0:d80c66cb1b3a 18
panzhan 0:d80c66cb1b3a 19
yezhong 7:d1b09098579b 20
yezhong 7:d1b09098579b 21
panzhan 0:d80c66cb1b3a 22
panzhan 0:d80c66cb1b3a 23 ////////////////////////////////////////////////////////////////////////////////
panzhan 0:d80c66cb1b3a 24
panzhan 0:d80c66cb1b3a 25 void serial_board_isr();
panzhan 0:d80c66cb1b3a 26
yezhong 7:d1b09098579b 27 void serial_zitai_foot_isr();
yezhong 7:d1b09098579b 28 void zitaifoot_decode();
yezhong 7:d1b09098579b 29 void zitaifoot_clear();
yezhong 7:d1b09098579b 30
panzhan 0:d80c66cb1b3a 31 ////////////////////////////////////////////////////////////////////////////////
panzhan 0:d80c66cb1b3a 32
yezhong 5:2503c88a564f 33
yezhong 5:2503c88a564f 34
yezhong 5:2503c88a564f 35 extern AnalogIn LaLi_pf;
yezhong 5:2503c88a564f 36 extern AnalogIn LaLi_df;
yezhong 5:2503c88a564f 37 extern AnalogIn LaLi_df1;
yezhong 5:2503c88a564f 38
yezhong 5:2503c88a564f 39 extern float La_pf_real, La_df_real,La_df1_real;
yezhong 5:2503c88a564f 40 extern float Ffilter_pf[10 + 2];
yezhong 5:2503c88a564f 41 extern float pf_filter ;
yezhong 5:2503c88a564f 42 extern float F_pf;
yezhong 5:2503c88a564f 43
panzhan 0:d80c66cb1b3a 44 #endif
panzhan 0:d80c66cb1b3a 45
panzhan 0:d80c66cb1b3a 46
panzhan 0:d80c66cb1b3a 47
panzhan 0:d80c66cb1b3a 48
panzhan 0:d80c66cb1b3a 49
panzhan 0:d80c66cb1b3a 50
panzhan 0:d80c66cb1b3a 51
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