gmt_mount_ctrl_sampling1000_damping002/drives/
mod.rs1use simulink_binder::import;
2
3import! {Mount_Drv_PDR2021,
4r##"
5#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
6/*
7 * File: Mount_Drv_PDR2021.h
8 *
9 * Code generated for Simulink model 'Mount_Drv_PDR2021'.
10 *
11 * Model version : 1.1193
12 * Simulink Coder version : 9.0 (R2018b) 24-May-2018
13 * C/C++ source code generated on : Wed Apr 20 15:30:05 2022
14 *
15 * Target selection: ert.tlc
16 * Embedded hardware selection: Intel->x86-64 (Linux 64)
17 * Code generation objectives: Unspecified
18 * Validation result: Not run
19 */
20
21#ifndef RTW_HEADER_Mount_Drv_PDR2021_h_
22#define RTW_HEADER_Mount_Drv_PDR2021_h_
23#include <string.h>
24#include <stddef.h>
25#ifndef Mount_Drv_PDR2021_COMMON_INCLUDES_
26# define Mount_Drv_PDR2021_COMMON_INCLUDES_
27#include "rtwtypes.h"
28#endif /* Mount_Drv_PDR2021_COMMON_INCLUDES_ */
29
30#include "Mount_Drv_PDR2021_types.h"
31
32/* Macros for accessing real-time model data structure */
33#ifndef rtmGetErrorStatus
34# define rtmGetErrorStatus(rtm) ((rtm)->errorStatus)
35#endif
36
37#ifndef rtmSetErrorStatus
38# define rtmSetErrorStatus(rtm, val) ((rtm)->errorStatus = (val))
39#endif
40
41/* Block states (default storage) for system '<Root>' */
42typedef struct {
43 real_T AZ_delay_DSTATE[4]; /* '<S1>/AZ_delay' */
44 real_T AZ_TFd_states; /* '<S1>/AZ_TFd' */
45 real_T EL_delay_DSTATE[4]; /* '<S1>/EL_delay' */
46 real_T EL_TFd_states; /* '<S1>/EL_TFd' */
47 real_T GIR_delay_DSTATE[4]; /* '<S1>/GIR_delay' */
48 real_T GIR_TFd_states; /* '<S1>/GIR_TFd' */
49 uint32_T CircBufIdx; /* '<S1>/AZ_delay' */
50 uint32_T CircBufIdx_p; /* '<S1>/EL_delay' */
51 uint32_T CircBufIdx_n; /* '<S1>/GIR_delay' */
52} DW_Mount_Drv_PDR2021_T;
53
54/* External inputs (root inport signals with default storage) */
55typedef struct {
56 real_T Mount_cmd[3]; /* '<Root>/Mount_cmd' */
57 real_T Mount_pos[14]; /* '<Root>/Mount_pos' */
58} ExtU_Mount_Drv_PDR2021_T;
59
60/* External outputs (root outports fed by signals with default storage) */
61typedef struct {
62 real_T Mount_T[20]; /* '<Root>/Mount_T' */
63} ExtY_Mount_Drv_PDR2021_T;
64
65/* Real-time Model Data Structure */
66struct tag_RTM_Mount_Drv_PDR2021_T {
67 const char_T * volatile errorStatus;
68};
69
70/* Block states (default storage) */
71extern DW_Mount_Drv_PDR2021_T Mount_Drv_PDR2021_DW;
72
73/* External inputs (root inport signals with default storage) */
74extern ExtU_Mount_Drv_PDR2021_T Mount_Drv_PDR2021_U;
75
76/* External outputs (root outports fed by signals with default storage) */
77extern ExtY_Mount_Drv_PDR2021_T Mount_Drv_PDR2021_Y;
78
79/* Model entry point functions */
80extern void Mount_Drv_PDR2021_initialize(void);
81extern void Mount_Drv_PDR2021_step(void);
82extern void Mount_Drv_PDR2021_terminate(void);
83
84/* Real-time Model object */
85extern RT_MODEL_Mount_Drv_PDR2021_T *const Mount_Drv_PDR2021_M;
86
87/*-
88 * These blocks were eliminated from the model due to optimizations:
89 *
90 * Block '<S2>/Discrete-Time Integrator' : Unused code path elimination
91 * Block '<S2>/Sum' : Unused code path elimination
92 * Block '<S9>/Divide' : Unused code path elimination
93 * Block '<S9>/Gain' : Unused code path elimination
94 * Block '<S9>/Math Function' : Unused code path elimination
95 * Block '<S9>/Math Function1' : Unused code path elimination
96 * Block '<S9>/Sum' : Unused code path elimination
97 * Block '<S9>/Unary Minus' : Unused code path elimination
98 * Block '<S9>/gc' : Unused code path elimination
99 * Block '<S9>/gs' : Unused code path elimination
100 * Block '<S2>/sigma_0' : Unused code path elimination
101 * Block '<S2>/sigma_1' : Unused code path elimination
102 * Block '<S2>/sigma_v' : Unused code path elimination
103 * Block '<S8>/Abs' : Unused code path elimination
104 * Block '<S8>/Divide' : Unused code path elimination
105 * Block '<S8>/Sum' : Unused code path elimination
106 * Block '<S1>/AZ enc avg + m2rad' : Unused code path elimination
107 * Block '<S1>/AZ vel avg => rad//s' : Unused code path elimination
108 * Block '<S3>/Data Type Duplicate' : Unused code path elimination
109 * Block '<S3>/Diff' : Unused code path elimination
110 * Block '<S3>/TSamp' : Unused code path elimination
111 * Block '<S3>/UD' : Unused code path elimination
112 * Block '<S4>/Discrete-Time Integrator' : Unused code path elimination
113 * Block '<S4>/Sum' : Unused code path elimination
114 * Block '<S4>/To Workspace' : Unused code path elimination
115 * Block '<S4>/To Workspace1' : Unused code path elimination
116 * Block '<S10>/Sum' : Unused code path elimination
117 * Block '<S10>/gc' : Unused code path elimination
118 * Block '<S12>/Divide' : Unused code path elimination
119 * Block '<S12>/Gain' : Unused code path elimination
120 * Block '<S12>/Math Function' : Unused code path elimination
121 * Block '<S12>/Math Function1' : Unused code path elimination
122 * Block '<S12>/Unary Minus' : Unused code path elimination
123 * Block '<S12>/gs' : Unused code path elimination
124 * Block '<S4>/sigma_0' : Unused code path elimination
125 * Block '<S4>/sigma_1' : Unused code path elimination
126 * Block '<S4>/sigma_v' : Unused code path elimination
127 * Block '<S11>/Abs' : Unused code path elimination
128 * Block '<S11>/Divide' : Unused code path elimination
129 * Block '<S11>/Sum' : Unused code path elimination
130 * Block '<S1>/EL enc avg + m2rad' : Unused code path elimination
131 * Block '<S1>/EL vel avg => rad//s' : Unused code path elimination
132 * Block '<S5>/Discrete-Time Integrator' : Unused code path elimination
133 * Block '<S5>/Gain' : Unused code path elimination
134 * Block '<S5>/Scope' : Unused code path elimination
135 * Block '<S5>/Sum' : Unused code path elimination
136 * Block '<S5>/To Workspace' : Unused code path elimination
137 * Block '<S5>/To Workspace1' : Unused code path elimination
138 * Block '<S13>/Sum' : Unused code path elimination
139 * Block '<S13>/gc' : Unused code path elimination
140 * Block '<S15>/Divide' : Unused code path elimination
141 * Block '<S15>/Gain' : Unused code path elimination
142 * Block '<S15>/Math Function' : Unused code path elimination
143 * Block '<S15>/Math Function1' : Unused code path elimination
144 * Block '<S15>/Unary Minus' : Unused code path elimination
145 * Block '<S15>/gs' : Unused code path elimination
146 * Block '<S5>/sigma_0' : Unused code path elimination
147 * Block '<S5>/sigma_1' : Unused code path elimination
148 * Block '<S5>/sigma_v' : Unused code path elimination
149 * Block '<S14>/Abs' : Unused code path elimination
150 * Block '<S14>/Divide' : Unused code path elimination
151 * Block '<S14>/Sum' : Unused code path elimination
152 * Block '<S1>/GIR enc avg + m2rad' : Unused code path elimination
153 * Block '<S1>/GIR vel avg =>r ad//s' : Unused code path elimination
154 * Block '<S16>/Cogging' : Unused code path elimination
155 * Block '<S16>/Constant' : Unused code path elimination
156 * Block '<S16>/Divide' : Unused code path elimination
157 * Block '<S16>/EMF Distortion' : Unused code path elimination
158 * Block '<S16>/Gain' : Unused code path elimination
159 * Block '<S16>/Gain1' : Unused code path elimination
160 * Block '<S16>/Gain2' : Unused code path elimination
161 * Block '<S16>/Mod' : Unused code path elimination
162 * Block '<S16>/Mod1' : Unused code path elimination
163 * Block '<S16>/Radius' : Unused code path elimination
164 * Block '<S16>/Sum1' : Unused code path elimination
165 * Block '<S16>/Sum2' : Unused code path elimination
166 * Block '<S17>/Cogging' : Unused code path elimination
167 * Block '<S17>/Constant' : Unused code path elimination
168 * Block '<S17>/Divide' : Unused code path elimination
169 * Block '<S17>/EMF Distortion' : Unused code path elimination
170 * Block '<S17>/Gain' : Unused code path elimination
171 * Block '<S17>/Gain1' : Unused code path elimination
172 * Block '<S17>/Gain2' : Unused code path elimination
173 * Block '<S17>/Mod' : Unused code path elimination
174 * Block '<S17>/Mod1' : Unused code path elimination
175 * Block '<S17>/Radius' : Unused code path elimination
176 * Block '<S17>/Sum1' : Unused code path elimination
177 * Block '<S17>/Sum2' : Unused code path elimination
178 * Block '<S18>/CogAmp' : Unused code path elimination
179 * Block '<S18>/CogSpatFreq' : Unused code path elimination
180 * Block '<S18>/Product' : Unused code path elimination
181 * Block '<S18>/Product1' : Unused code path elimination
182 * Block '<S18>/Product2' : Unused code path elimination
183 * Block '<S18>/Product3' : Unused code path elimination
184 * Block '<S18>/Product4' : Unused code path elimination
185 * Block '<S18>/RippleAmpFactor' : Unused code path elimination
186 * Block '<S18>/RippleSpatFreq' : Unused code path elimination
187 * Block '<S18>/Sign' : Unused code path elimination
188 * Block '<S18>/Sum' : Unused code path elimination
189 * Block '<S18>/Sum1' : Unused code path elimination
190 * Block '<S18>/ToPretension' : Unused code path elimination
191 * Block '<S18>/Trigonometric Function' : Unused code path elimination
192 * Block '<S18>/Trigonometric Function1' : Unused code path elimination
193 */
194
195/*-
196 * The generated code includes comments that allow you to trace directly
197 * back to the appropriate location in the model. The basic format
198 * is <system>/block_name, where system is the system number (uniquely
199 * assigned by Simulink) and block_name is the name of the block.
200 *
201 * Note that this particular code originates from a subsystem build,
202 * and has its own system numbers different from the parent model.
203 * Refer to the system hierarchy for this subsystem below, and use the
204 * MATLAB hilite_system command to trace the generated code back
205 * to the parent model. For example,
206 *
207 * hilite_system('ims_Build5pt1f/Mount_Drv_PDR2021') - opens subsystem ims_Build5pt1f/Mount_Drv_PDR2021
208 * hilite_system('ims_Build5pt1f/Mount_Drv_PDR2021/Kp') - opens and selects block Kp
209 *
210 * Here is the system hierarchy for this model
211 *
212 * '<Root>' : 'ims_Build5pt1f'
213 * '<S1>' : 'ims_Build5pt1f/Mount_Drv_PDR2021'
214 * '<S2>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/AZ DT Lugre Fr model'
215 * '<S3>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/Discrete Derivative'
216 * '<S4>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/EL DT Lugre Fr model'
217 * '<S5>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/GIR DT Lugre Fr model'
218 * '<S6>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/Parasitic torques model '
219 * '<S7>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/AZ DT Lugre Fr model/g(v)'
220 * '<S8>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/AZ DT Lugre Fr model/v2z'
221 * '<S9>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/AZ DT Lugre Fr model/g(v)/gs'
222 * '<S10>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/EL DT Lugre Fr model/g(v)'
223 * '<S11>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/EL DT Lugre Fr model/v2z'
224 * '<S12>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/EL DT Lugre Fr model/g(v)/gs'
225 * '<S13>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/GIR DT Lugre Fr model/g(v)'
226 * '<S14>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/GIR DT Lugre Fr model/v2z'
227 * '<S15>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/GIR DT Lugre Fr model/g(v)/gs'
228 * '<S16>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/Parasitic torques model /AZ_Parasitic_Torque'
229 * '<S17>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/Parasitic torques model /EL_Parasitic_Torque'
230 * '<S18>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/Parasitic torques model /GIR_Parasitic_Torque'
231 * '<S19>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/Parasitic torques model /Subsystem'
232 * '<S20>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/Parasitic torques model /Subsystem/Parasitic Torques'
233 * '<S21>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/Parasitic torques model /Subsystem/Parasitic Torques/Parasitic AZ'
234 * '<S22>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/Parasitic torques model /Subsystem/Parasitic Torques/Parasitic EL'
235 * '<S23>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/Parasitic torques model /Subsystem/Parasitic Torques/Parasitic GIR'
236 * '<S24>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/Parasitic torques model /Subsystem/Parasitic Torques/Parasitic GIR/Cogging'
237 * '<S25>' : 'ims_Build5pt1f/Mount_Drv_PDR2021/Parasitic torques model /Subsystem/Parasitic Torques/Parasitic GIR/Emf'
238 */
239#endif /* RTW_HEADER_Mount_Drv_PDR2021_h_ */
240
241/*
242 * File trailer for generated code.
243 *
244 * [EOF]
245 */
246"##}