m1_ctrl/actuators/segment2/
mod.rs

1use simulink_binder::import;
2
3import!{M1SA_F_Control_S2,
4r##"
5/*
6 * File: M1SA_F_Control_S2.h
7 *
8 * Code generated for Simulink model 'M1SA_F_Control_S2'.
9 *
10 * Model version                  : 1.966
11 * Simulink Coder version         : 9.0 (R2018b) 24-May-2018
12 * C/C++ source code generated on : Wed Mar  9 10:39:46 2022
13 *
14 * Target selection: ert.tlc
15 * Embedded hardware selection: Intel->x86-64 (Linux 64)
16 * Code generation objectives: Unspecified
17 * Validation result: Not run
18 */
19
20#ifndef RTW_HEADER_M1SA_F_Control_S2_h_
21#define RTW_HEADER_M1SA_F_Control_S2_h_
22#include <string.h>
23#include <stddef.h>
24#ifndef M1SA_F_Control_S2_COMMON_INCLUDES_
25# define M1SA_F_Control_S2_COMMON_INCLUDES_
26#include "rtwtypes.h"
27#endif                                 /* M1SA_F_Control_S2_COMMON_INCLUDES_ */
28
29#include "M1SA_F_Control_S2_types.h"
30
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 Fxcontroller_DSTATE[3];       /* '<S3>/Fx controller' */
44  real_T Fycontroller_DSTATE[3];       /* '<S3>/Fy controller' */
45  real_T Fzcontroller_DSTATE[3];       /* '<S3>/Fz controller' */
46  real_T Mxcontroller_DSTATE[3];       /* '<S3>/Mx controller' */
47  real_T Mycontroller_DSTATE[3];       /* '<S3>/My controller' */
48  real_T Mzcontroller_DSTATE[3];       /* '<S3>/Mz controller' */
49  real_T OAseg_SA_dyn_states[335];     /* '<S1>/OAseg_SA_dyn' */
50} DW_M1SA_F_Control_S2_T;
51
52/* Constant parameters (default storage) */
53typedef struct {
54  /* Expression: m1sys{1}.Kbal
55   * Referenced by: '<S1>/OAseg_Kbal'
56   */
57  real_T OAseg_Kbal_Gain[2010];
58} ConstP_M1SA_F_Control_S2_T;
59
60/* External inputs (root inport signals with default storage) */
61typedef struct {
62  real_T HP_LC[6];                     /* '<Root>/HP_LC' */
63  real_T SA_offsetF_cmd[335];          /* '<Root>/SA_offsetF_cmd' */
64} ExtU_M1SA_F_Control_S2_T;
65
66/* External outputs (root outports fed by signals with default storage) */
67typedef struct {
68  real_T Res_Act_F[335];               /* '<Root>/Res_Act_F' */
69} ExtY_M1SA_F_Control_S2_T;
70
71/* Real-time Model Data Structure */
72struct tag_RTM_M1SA_F_Control_S2_T {
73  const char_T * volatile errorStatus;
74};
75
76/* Block states (default storage) */
77extern DW_M1SA_F_Control_S2_T M1SA_F_Control_S2_DW;
78
79/* External inputs (root inport signals with default storage) */
80extern ExtU_M1SA_F_Control_S2_T M1SA_F_Control_S2_U;
81
82/* External outputs (root outports fed by signals with default storage) */
83extern ExtY_M1SA_F_Control_S2_T M1SA_F_Control_S2_Y;
84
85/* Constant parameters (default storage) */
86extern const ConstP_M1SA_F_Control_S2_T M1SA_F_Control_S2_ConstP;
87
88/*
89 * Exported Global Parameters
90 *
91 * Note: Exported global parameters are tunable parameters with an exported
92 * global storage class designation.  Code generation will declare the memory for
93 * these parameters and exports their symbols.
94 *
95 */
96extern real_T OAseg_LC2CG_S2[36];         /* Variable: OAseg_LC2CG_S2
97                                        * Referenced by: '<S1>/OAseg_LC2CG_S2'
98                                        */
99extern real_T OAseg_SA_dynDen_S2[2];      /* Variable: OAseg_SA_dynDen_S2
100                                        * Referenced by: '<S1>/OAseg_SA_dyn'
101                                        */
102extern real_T OAseg_SA_dynNum_S2[2];      /* Variable: OAseg_SA_dynNum_S2
103                                        * Referenced by: '<S1>/OAseg_SA_dyn'
104                                        */
105
106/* Model entry point functions */
107extern void M1SA_F_Control_S2_initialize(void);
108extern void M1SA_F_Control_S2_step(void);
109extern void M1SA_F_Control_S2_terminate(void);
110
111/* Real-time Model object */
112extern RT_MODEL_M1SA_F_Control_S2_T *const M1SA_F_Control_S2_M;
113
114/*-
115 * The generated code includes comments that allow you to trace directly
116 * back to the appropriate location in the model.  The basic format
117 * is <system>/block_name, where system is the system number (uniquely
118 * assigned by Simulink) and block_name is the name of the block.
119 *
120 * Note that this particular code originates from a subsystem build,
121 * and has its own system numbers different from the parent model.
122 * Refer to the system hierarchy for this subsystem below, and use the
123 * MATLAB hilite_system command to trace the generated code back
124 * to the parent model.  For example,
125 *
126 * hilite_system('M1DCS/M1SA_F_Control_S2')    - opens subsystem M1DCS/M1SA_F_Control_S2
127 * hilite_system('M1DCS/M1SA_F_Control_S2/Kp') - opens and selects block Kp
128 *
129 * Here is the system hierarchy for this model
130 *
131 * '<Root>' : 'M1DCS'
132 * '<S1>'   : 'M1DCS/M1SA_F_Control_S2'
133 * '<S2>'   : 'M1DCS/M1SA_F_Control_S2/OAseg_ofl_SSdtC'
134 * '<S3>'   : 'M1DCS/M1SA_F_Control_S2/OAseg_ofl_SSdtC_'
135 */
136#endif                                 /* RTW_HEADER_M1SA_F_Control_S2_h_ */
137
138/*
139 * File trailer for generated code.
140 *
141 * [EOF]
142 */
143"##}