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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
use simulink_binder::import;

import! {Mount_Control,
r##"
#define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
/*
 * File: Mount_Control.h
 *
 * Code generated for Simulink model 'Mount_Control'.
 *
 * Model version                  : 1.956
 * Simulink Coder version         : 9.0 (R2018b) 24-May-2018
 * C/C++ source code generated on : Mon Mar  8 16:47:21 2021
 *
 * Target selection: ert.tlc
 * Embedded hardware selection: Intel->x86-64 (Linux 64)
 * Code generation objectives: Unspecified
 * Validation result: Not run
 */

#ifndef RTW_HEADER_Mount_Control_h_
#define RTW_HEADER_Mount_Control_h_
#include <string.h>
#ifndef Mount_Control_COMMON_INCLUDES_
# define Mount_Control_COMMON_INCLUDES_
#include "rtwtypes.h"
#endif                                 /* Mount_Control_COMMON_INCLUDES_ */

#include "Mount_Control_types.h"

/* Macros for accessing real-time model data structure */
#ifndef rtmGetErrorStatus
# define rtmGetErrorStatus(rtm)        ((rtm)->errorStatus)
#endif

#ifndef rtmSetErrorStatus
# define rtmSetErrorStatus(rtm, val)   ((rtm)->errorStatus = (val))
#endif

/* Block signals (default storage) */
typedef struct {
  real_T RTout;                        /* '<S3>/RTout' */
  real_T RTout_g;                      /* '<S2>/RTout' */
  real_T RTout_j;                      /* '<S5>/RTout' */
  real_T RTout_k;                      /* '<S4>/RTout' */
  real_T RTout_c;                      /* '<S7>/RTout' */
  real_T RTout_m;                      /* '<S6>/RTout' */
  real_T RTin;                         /* '<S2>/RTin' */
  real_T RTin_k;                       /* '<S3>/RTin' */
  real_T RTin_g;                       /* '<S4>/RTin' */
  real_T RTin_o;                       /* '<S5>/RTin' */
  real_T RTin_b;                       /* '<S6>/RTin' */
  real_T RTin_c;                       /* '<S7>/RTin' */
} B_Mount_Control_T;

/* Block states (default storage) for system '<Root>' */
typedef struct {
  real_T DiscreteSS_DSTATE[11];        /* '<S2>/Discrete SS' */
  real_T DiscreteSS_DSTATE_i[2];       /* '<S3>/Discrete SS' */
  real_T DiscreteSS_DSTATE_l[13];      /* '<S4>/Discrete SS' */
  real_T DiscreteSS_DSTATE_b[2];       /* '<S5>/Discrete SS' */
  real_T DiscreteSS_DSTATE_m[8];       /* '<S6>/Discrete SS' */
  real_T DiscreteSS_DSTATE_h[2];       /* '<S7>/Discrete SS' */
  real_T RTout_Buffer0;                /* '<S3>/RTout' */
  real_T RTout_Buffer0_b;              /* '<S2>/RTout' */
  real_T RTout_Buffer0_k;              /* '<S5>/RTout' */
  real_T RTout_Buffer0_m;              /* '<S4>/RTout' */
  real_T RTout_Buffer0_mf;             /* '<S7>/RTout' */
  real_T RTout_Buffer0_bt;             /* '<S6>/RTout' */
} DW_Mount_Control_T;

/* Constant parameters (default storage) */
typedef struct {
  /* Computed Parameter: DiscreteSS_A
   * Referenced by: '<S2>/Discrete SS'
   */
  real_T DiscreteSS_A[101];

  /* Computed Parameter: DiscreteSS_C
   * Referenced by: '<S2>/Discrete SS'
   */
  real_T DiscreteSS_C[11];

  /* Computed Parameter: DiscreteSS_A_k
   * Referenced by: '<S4>/Discrete SS'
   */
  real_T DiscreteSS_A_k[145];

  /* Computed Parameter: DiscreteSS_C_o
   * Referenced by: '<S4>/Discrete SS'
   */
  real_T DiscreteSS_C_o[13];

  /* Computed Parameter: DiscreteSS_A_e
   * Referenced by: '<S6>/Discrete SS'
   */
  real_T DiscreteSS_A_e[50];

  /* Computed Parameter: DiscreteSS_C_or
   * Referenced by: '<S6>/Discrete SS'
   */
  real_T DiscreteSS_C_or[8];
} ConstP_Mount_Control_T;

/* External inputs (root inport signals with default storage) */
typedef struct {
  real_T Mount_SP[3];                  /* '<Root>/Mount_SP' */
  real_T Mount_FB[14];                 /* '<Root>/Mount_FB' */
} ExtU_Mount_Control_T;

/* External outputs (root outports fed by signals with default storage) */
typedef struct {
  real_T Mount_cmd[3];                 /* '<Root>/Mount_cmd' */
} ExtY_Mount_Control_T;

/* Real-time Model Data Structure */
struct tag_RTM_Mount_Control_T {
  const char_T * volatile errorStatus;

  /*
   * Timing:
   * The following substructure contains information regarding
   * the timing information for the model.
   */
  struct {
    struct {
      uint8_T TID[2];
    } TaskCounters;
  } Timing;
};

/* Block signals (default storage) */
extern B_Mount_Control_T Mount_Control_B;

/* Block states (default storage) */
extern DW_Mount_Control_T Mount_Control_DW;

/* External inputs (root inport signals with default storage) */
extern ExtU_Mount_Control_T Mount_Control_U;

/* External outputs (root outports fed by signals with default storage) */
extern ExtY_Mount_Control_T Mount_Control_Y;

/* Constant parameters (default storage) */
extern const ConstP_Mount_Control_T Mount_Control_ConstP;

/* Model entry point functions */
extern void Mount_Control_initialize(void);
extern void Mount_Control_step(void);
extern void Mount_Control_terminate(void);

/* Real-time Model object */
extern RT_MODEL_Mount_Control_T *const Mount_Control_M;

/*-
 * These blocks were eliminated from the model due to optimizations:
 *
 * Block '<S1>/mount_en' : Eliminated nontunable gain of 1
 */

/*-
 * The generated code includes comments that allow you to trace directly
 * back to the appropriate location in the model.  The basic format
 * is <system>/block_name, where system is the system number (uniquely
 * assigned by Simulink) and block_name is the name of the block.
 *
 * Note that this particular code originates from a subsystem build,
 * and has its own system numbers different from the parent model.
 * Refer to the system hierarchy for this subsystem below, and use the
 * MATLAB hilite_system command to trace the generated code back
 * to the parent model.  For example,
 *
 * hilite_system('ims_Build5pt3a_mount/Mount_Control')    - opens subsystem ims_Build5pt3a_mount/Mount_Control
 * hilite_system('ims_Build5pt3a_mount/Mount_Control/Kp') - opens and selects block Kp
 *
 * Here is the system hierarchy for this model
 *
 * '<Root>' : 'ims_Build5pt3a_mount'
 * '<S1>'   : 'ims_Build5pt3a_mount/Mount_Control'
 * '<S2>'   : 'ims_Build5pt3a_mount/Mount_Control/AZ FB controller'
 * '<S3>'   : 'ims_Build5pt3a_mount/Mount_Control/AZ FF controller'
 * '<S4>'   : 'ims_Build5pt3a_mount/Mount_Control/EL FB controller'
 * '<S5>'   : 'ims_Build5pt3a_mount/Mount_Control/EL FF controller'
 * '<S6>'   : 'ims_Build5pt3a_mount/Mount_Control/GIR FB controller'
 * '<S7>'   : 'ims_Build5pt3a_mount/Mount_Control/GIR FF controller'
 */
#endif                                 /* RTW_HEADER_Mount_Control_h_ */

/*
 * File trailer for generated code.
 *
 * [EOF]
 */
"##}