PER Firmware
Loading...
Searching...
No Matches
vcu.h
1
typedef
struct
{
2
float
VCU_MODE_REQ;
3
float
REGEN_EN;
4
float
THROT_RAW;
5
float
BRAKE_RAW;
6
float
REGEN_RAW;
7
float
ST_RAW;
8
float
VB_RAW;
9
float
WM_RAW[4];
10
float
GS_RAW;
11
float
AV_RAW[3];
12
float
IB_RAW;
13
float
MT_RAW;
14
float
IGBT_T_RAW;
15
float
INV_T_RAW;
16
float
OV_MOT[4];
17
float
OV_INV[4];
18
float
BT_RAW;
19
float
TO_RAW[4];
20
float
RG_FR_split_RAW;
21
float
SK_FR_split_RAW;
22
float
SK_LR_gain_RAW;
23
float
AX_FR_split_RAW;
24
float
AX_LR_control_force_RAW;
25
float
TS_FR_split_RAW;
26
float
TS_LR_split_RAW;
27
}
xVCU_struct
;
28
29
typedef
struct
{
30
float
VCU_MODE;
31
float
REGEN_EN;
32
float
TH;
33
float
TH_PO;
34
float
TH_RG;
35
float
ST;
36
float
VB;
37
float
WM[4];
38
float
GS;
39
float
AV[3];
40
float
IB;
41
float
MT;
42
float
IGBT_T;
43
float
INV_T;
44
float
OV_MOT[4];
45
float
OV_INV[4];
46
float
BT;
47
float
TO[4];
48
float
IB_AVG_buffer[10];
49
float
PB;
50
float
WW[4];
51
float
IB_AVG;
52
float
TO_BL_PO[4];
53
float
RG_FR_split;
54
float
TO_BL_RG[4];
55
float
AC_MW[4];
56
float
SK_TO[4];
57
float
SK_FR_split;
58
float
SK_LR_gain;
59
float
AX_TO[4];
60
float
AX_FR_split;
61
float
AX_LR_control_force;
62
float
TS_TO[4];
63
float
TS_FR_split;
64
float
TS_LR_split;
65
float
TORQUE_LIM_NEG[4];
66
float
TORQUE_LIM_POS[4];
67
float
SPEED_OUT[4];
68
float
TORQUE_OUT[4];
69
}
yVCU_struct
;
70
71
typedef
struct
{
72
float
r;
73
float
ht[2];
74
float
wb;
75
float
gr;
76
float
MAX_ABS_WM;
77
float
IB_AVG_length;
78
float
MAX_TO_ABS_PO;
79
float
PB_derating_full_T;
80
float
PB_derating_half_T;
81
float
PB_derating_FR;
82
float
VB_derating_full_T;
83
float
VB_derating_zero_T;
84
float
IB_derating_full_T;
85
float
IB_derating_zero_T;
86
float
OV_MOT_derating_full_T;
87
float
OV_MOT_derating_zero_T;
88
float
OV_INV_derating_full_T;
89
float
OV_INV_derating_zero_T;
90
float
MAX_TO_ABS_RG;
91
float
VB_RG_derating_full_T;
92
float
VB_RG_derating_zero_T;
93
float
IB_RG_derating_full_T;
94
float
IB_RG_derating_zero_T;
95
float
GS_RG_derating_zero;
96
float
GS_RG_derating_full;
97
float
INV_T_derating_full_T;
98
float
INV_T_derating_zero_T;
99
float
IGBT_T_derating_full_T;
100
float
IGBT_T_derating_zero_T;
101
float
MT_derating_full_T;
102
float
MT_derating_zero_T;
103
float
BT_derating_full_T;
104
float
BT_derating_zero_T;
105
float
AC_speed_brkpt[3];
106
float
AC_speed_table[3];
107
float
AC_brkpt_lb;
108
float
AC_brkpt_ub;
109
float
SK_YAW_des;
110
float
SK_LR_split_des;
111
float
SK_ST_ZERO_TV;
112
float
SK_ST_FULL_TV;
113
float
SK_FR_split_lb;
114
float
SK_FR_split_ub;
115
float
SK_LR_gain_lb;
116
float
SK_LR_gain_ub;
117
float
AX_TV_yaw_table[1377];
118
float
AX_TV_yaw_GS_brkpt[51];
119
float
AX_TV_yaw_ST_brkpt[27];
120
float
AX_TV_split_table[1377];
121
float
AX_TV_split_GS_brkpt[51];
122
float
AX_TV_split_ST_brkpt[27];
123
float
AX_FR_split_lb;
124
float
AX_FR_split_ub;
125
float
AX_LR_split_lb;
126
float
AX_LR_split_ub;
127
float
AX_LR_split_max;
128
float
AX_LR_gain;
129
float
TS_LR_max_ST;
130
float
TS_FR_split_lb;
131
float
TS_FR_split_ub;
132
float
TS_LR_split_lb;
133
float
TS_LR_split_ub;
134
}
pVCU_struct
;
135
136
// VCU struct initialization functions
137
xVCU_struct
init_xVCU(
void
);
138
yVCU_struct
init_yVCU(
void
);
139
pVCU_struct
init_pVCU(
void
);
140
141
void
vcu_step(
const
pVCU_struct
*p,
const
xVCU_struct
*x,
yVCU_struct
*y);
pVCU_struct
Definition
vcu.h:71
xVCU_struct
Definition
vcu.h:1
yVCU_struct
Definition
vcu.h:29
source
torque_vector
vcu
vcu.h
Generated by
1.12.0