Repository navigation
Expand file tree
/
Copy pathaccel_data.cpp
More file actions
131 lines (113 loc) · 3.24 KB
/
Copy pathaccel_data.cpp
File metadata and controls
131 lines (113 loc) · 3.24 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
/*
* accel_data.cpp
*
* Academic License - for use in teaching, academic research, and meeting
* course requirements at degree granting institutions only. Not for
* government, commercial, or other organizational use.
*
* Code generation for model "accel".
*
* Model version : 1.20
* Simulink Coder version : 9.6 (R2021b) 14-May-2021
* C++ source code generated on : Thu Nov 11 21:35:49 2021
*
* Target selection: ert.tlc
* Note: GRT includes extra infrastructure and instrumentation for prototyping
* Embedded hardware selection: Generic->Unspecified (assume 32-bit Generic)
* Code generation objectives: Unspecified
* Validation result: Not run
*/
#include "accel.h"
#include "accel_private.h"
/* Block parameters (default storage) */
P_accel_T accel_P = {
/* Mask Parameter: PIDController_D
* Referenced by: '<S31>/Derivative Gain'
*/
1.34,
/* Mask Parameter: PIDController_I
* Referenced by: '<S34>/Integral Gain'
*/
0.0656,
/* Mask Parameter: PIDController_InitialConditionF
* Referenced by: '<S32>/Filter'
*/
0.0,
/* Mask Parameter: PIDController_InitialConditio_p
* Referenced by: '<S37>/Integrator'
*/
0.0,
/* Mask Parameter: PIDController_N
* Referenced by: '<S40>/Filter Coefficient'
*/
7.549,
/* Mask Parameter: PIDController_P
* Referenced by: '<S42>/Proportional Gain'
*/
2.72,
/* Computed Parameter: Constant_Value
* Referenced by: '<S1>/Constant'
*/
{
{
0.0, /* X */
0.0, /* Y */
0.0 /* Z */
}, /* Linear */
{
0.0, /* X */
0.0, /* Y */
0.0 /* Z */
} /* Angular */
},
/* Computed Parameter: Out1_Y0
* Referenced by: '<S54>/Out1'
*/
{
{
0.0, /* X */
0.0, /* Y */
0.0 /* Z */
}, /* Linear */
{
0.0, /* X */
0.0, /* Y */
0.0 /* Z */
} /* Angular */
},
/* Computed Parameter: Constant_Value_o
* Referenced by: '<S4>/Constant'
*/
{
{
0.0, /* X */
0.0, /* Y */
0.0 /* Z */
}, /* Linear */
{
0.0, /* X */
0.0, /* Y */
0.0 /* Z */
} /* Angular */
},
/* Expression: 0
* Referenced by: '<Root>/Integrator'
*/
0.0,
/* Computed Parameter: Filter_gainval
* Referenced by: '<S32>/Filter'
*/
0.05,
/* Computed Parameter: Integrator_gainval
* Referenced by: '<S37>/Integrator'
*/
0.05,
/* Computed Parameter: TransferFcn_A
* Referenced by: '<Root>/Transfer Fcn'
*/
-1.566,
/* Computed Parameter: TransferFcn_C
* Referenced by: '<Root>/Transfer Fcn'
*/
1.745
};