11

Dependencies:   mbed-dev-f303

Committer:
panzhan
Date:
Wed Jun 09 01:41:45 2021 +0000
Revision:
0:dd5d4837292c
continuous motion

Who changed what in which revision?

UserRevisionLine numberNew contents of line
panzhan 0:dd5d4837292c 1 #ifndef _CALCULATE_H
panzhan 0:dd5d4837292c 2 #define _CALCULATE_H
panzhan 0:dd5d4837292c 3
panzhan 0:dd5d4837292c 4 #include "mbed.h"
panzhan 0:dd5d4837292c 5 #include "data_pc.h"
panzhan 0:dd5d4837292c 6 #include "data_board.h"
panzhan 0:dd5d4837292c 7 #include "fuzzy.h"
panzhan 0:dd5d4837292c 8 #include "timer.h"
panzhan 0:dd5d4837292c 9 #include "used_leg_message.h"
panzhan 0:dd5d4837292c 10
panzhan 0:dd5d4837292c 11
panzhan 0:dd5d4837292c 12
panzhan 0:dd5d4837292c 13 #define CT (10)
panzhan 0:dd5d4837292c 14
panzhan 0:dd5d4837292c 15 extern unsigned int send_enable;
panzhan 0:dd5d4837292c 16 extern float pos_ankle;
panzhan 0:dd5d4837292c 17 extern float pos_knee;
panzhan 0:dd5d4837292c 18
panzhan 0:dd5d4837292c 19
panzhan 0:dd5d4837292c 20
panzhan 0:dd5d4837292c 21 float position_knee(float res);
panzhan 0:dd5d4837292c 22 float position_ankle(float res);
panzhan 0:dd5d4837292c 23 void calculate_ankle_fuzzy(float ankp, float knp);
panzhan 0:dd5d4837292c 24 void calculate_fuzzy(float ankp, float knp);
panzhan 0:dd5d4837292c 25 void init_joint_angles();
panzhan 0:dd5d4837292c 26
panzhan 0:dd5d4837292c 27
panzhan 0:dd5d4837292c 28
panzhan 0:dd5d4837292c 29 #endif