m1_ctrl/actuators/segment7/
mod.rs

1use simulink_binder::import;
2
3import!{M1SA_F_Control_S7,
4r##"
5/*
6 * File: M1SA_F_Control_S7.h
7 *
8 * Code generated for Simulink model 'M1SA_F_Control_S7'.
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:44:51 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_S7_h_
21#define RTW_HEADER_M1SA_F_Control_S7_h_
22#include <string.h>
23#include <stddef.h>
24#ifndef M1SA_F_Control_S7_COMMON_INCLUDES_
25# define M1SA_F_Control_S7_COMMON_INCLUDES_
26#include "rtwtypes.h"
27#endif                                 /* M1SA_F_Control_S7_COMMON_INCLUDES_ */
28
29#include "M1SA_F_Control_S7_types.h"
30
31/* Macros for accessing real-time model data structure */
32#ifndef rtmGetErrorStatus
33# define rtmGetErrorStatus(rtm)        ((rtm)->errorStatus)
34#endif
35
36#ifndef rtmSetErrorStatus
37# define rtmSetErrorStatus(rtm, val)   ((rtm)->errorStatus = (val))
38#endif
39
40/* Block states (default storage) for system '<Root>' */
41typedef struct {
42  real_T Fxcontroller_DSTATE[3];       /* '<S2>/Fx controller' */
43  real_T Fycontroller_DSTATE[3];       /* '<S2>/Fy controller' */
44  real_T Fzcontroller_DSTATE[3];       /* '<S2>/Fz controller' */
45  real_T Mxcontroller_DSTATE[3];       /* '<S2>/Mx controller' */
46  real_T Mycontroller_DSTATE[3];       /* '<S2>/My controller' */
47  real_T Mzcontroller_DSTATE[3];       /* '<S2>/Mz controller' */
48  real_T CSseg_SA_dyn_states[306];     /* '<S1>/CSseg_SA_dyn' */
49} DW_M1SA_F_Control_S7_T;
50
51/* Constant parameters (default storage) */
52typedef struct {
53  /* Expression: m1sys{7}.Kbal
54   * Referenced by: '<S1>/CSseg_Kbal'
55   */
56  real_T CSseg_Kbal_Gain[1836];
57} ConstP_M1SA_F_Control_S7_T;
58
59/* External inputs (root inport signals with default storage) */
60typedef struct {
61  real_T HP_LC[6];                     /* '<Root>/HP_LC' */
62  real_T SA_offsetF_cmd[306];          /* '<Root>/SA_offsetF_cmd' */
63} ExtU_M1SA_F_Control_S7_T;
64
65/* External outputs (root outports fed by signals with default storage) */
66typedef struct {
67  real_T Res_Act_F[306];               /* '<Root>/Res_Act_F' */
68} ExtY_M1SA_F_Control_S7_T;
69
70/* Real-time Model Data Structure */
71struct tag_RTM_M1SA_F_Control_S7_T {
72  const char_T * volatile errorStatus;
73};
74
75/* Block states (default storage) */
76extern DW_M1SA_F_Control_S7_T M1SA_F_Control_S7_DW;
77
78/* External inputs (root inport signals with default storage) */
79extern ExtU_M1SA_F_Control_S7_T M1SA_F_Control_S7_U;
80
81/* External outputs (root outports fed by signals with default storage) */
82extern ExtY_M1SA_F_Control_S7_T M1SA_F_Control_S7_Y;
83
84/* Constant parameters (default storage) */
85extern const ConstP_M1SA_F_Control_S7_T M1SA_F_Control_S7_ConstP;
86
87/*
88 * Exported Global Parameters
89 *
90 * Note: Exported global parameters are tunable parameters with an exported
91 * global storage class designation.  Code generation will declare the memory for
92 * these parameters and exports their symbols.
93 *
94 */
95extern real_T CSseg_LC2CG[36];         /* Variable: CSseg_LC2CG
96                                        * Referenced by: '<S1>/CSseg_LC2CG'
97                                        */
98extern real_T CSseg_SA_dynDen[2];      /* Variable: CSseg_SA_dynDen
99                                        * Referenced by: '<S1>/CSseg_SA_dyn'
100                                        */
101extern real_T CSseg_SA_dynNum[2];      /* Variable: CSseg_SA_dynNum
102                                        * Referenced by: '<S1>/CSseg_SA_dyn'
103                                        */
104
105/* Model entry point functions */
106extern void M1SA_F_Control_S7_initialize(void);
107extern void M1SA_F_Control_S7_step(void);
108extern void M1SA_F_Control_S7_terminate(void);
109
110/* Real-time Model object */
111extern RT_MODEL_M1SA_F_Control_S7_T *const M1SA_F_Control_S7_M;
112
113/*-
114 * The generated code includes comments that allow you to trace directly
115 * back to the appropriate location in the model.  The basic format
116 * is <system>/block_name, where system is the system number (uniquely
117 * assigned by Simulink) and block_name is the name of the block.
118 *
119 * Note that this particular code originates from a subsystem build,
120 * and has its own system numbers different from the parent model.
121 * Refer to the system hierarchy for this subsystem below, and use the
122 * MATLAB hilite_system command to trace the generated code back
123 * to the parent model.  For example,
124 *
125 * hilite_system('M1DCS/M1SA_F_Control_S7')    - opens subsystem M1DCS/M1SA_F_Control_S7
126 * hilite_system('M1DCS/M1SA_F_Control_S7/Kp') - opens and selects block Kp
127 *
128 * Here is the system hierarchy for this model
129 *
130 * '<Root>' : 'M1DCS'
131 * '<S1>'   : 'M1DCS/M1SA_F_Control_S7'
132 * '<S2>'   : 'M1DCS/M1SA_F_Control_S7/CSseg_ofl_SSdtC_'
133 */
134#endif                                 /* RTW_HEADER_M1SA_F_Control_S7_h_ */
135
136/*
137 * File trailer for generated code.
138 *
139 * [EOF]
140 */
141"##}