forked from naubiomech/ExoCode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathControl_Adjustment.h
42 lines (40 loc) · 1.13 KB
/
Control_Adjustment.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Stuctur in order to have all the needed values to adjust the torque or the shaping as a function of the force applied or of the speed respectively
typedef struct {
int n_steps;
int n_kf;
int n_cycles;
int prev_state;
double dorsi_time;
double plant_time;
double dorsi_time_average;
double four_step_dorsi_time[n_step_baseline] = {0};
double four_step_plant_time[n_step_baseline] = {0};
bool flag_take_average = false;
bool flag_N3_adjustment_time = false;
double dorsi_mean;
double plant_mean;
double dorsi_mean_old;
double plant_mean_old;
int count_plant;
int count_plant_base;
double torque_val;
double torque_val_average;
bool flag_start_plant = false;
bool flag_take_baseline = false;
bool torque_adj = false;
double Setpoint;
double plant_mean_base;
double dorsi_mean_base;
double voltage_peak_ref;
double curr_voltage;
double perc_l = 0.5;
double fsr_percent_thresh_Toe = 0.9;
double plant_peak_mean;
double four_step_plant_peak[n_step_baseline] = {0};
double plant_peak_mean_temp;
double peak;
double fsr_Toe;
double torque_average;
} steps;
steps val_L;
steps val_R;