#ifndef control_vectorial_cal_h_
#define control_vectorial_cal_h_
#include "rtwtypes.h"

/* Storage class 'PageSwitching', for system '<Root>' */
struct control_vectorial_cal_type {
  real_T VelocityController_CtrlType;
                                  /* Mask Parameter: VelocityController_CtrlType
                                   * Referenced by: '<S25>/Constant'
                                   */
  real_T PMSMFieldWeakeningController1_K;
                              /* Mask Parameter: PMSMFieldWeakeningController1_K
                               * Referenced by: '<S24>/Gain1'
                               */
  real_T VelocityController_Kaw_w;   /* Mask Parameter: VelocityController_Kaw_w
                                      * Referenced by: '<S39>/Kaw'
                                      */
  real_T PMSMFieldWeakeningController1_o;
                              /* Mask Parameter: PMSMFieldWeakeningController1_o
                               * Referenced by: '<S24>/Gain'
                               */
  real_T VelocityController_Ki_w;     /* Mask Parameter: VelocityController_Ki_w
                                       * Referenced by: '<S39>/Ki'
                                       */
  real_T VelocityController_Kp_w;     /* Mask Parameter: VelocityController_Kp_w
                                       * Referenced by: '<S39>/Kp'
                                       */
  real_T PWMGenerator2Level_MinMax[2];
                                    /* Mask Parameter: PWMGenerator2Level_MinMax
                                     * Referenced by: '<S2>/Constant10'
                                     */
  real_T PMSMFieldWeakeningController1_M;
                              /* Mask Parameter: PMSMFieldWeakeningController1_M
                               * Referenced by: '<S24>/Modulation index threshold'
                               */
  real_T CompareToConstant_const;     /* Mask Parameter: CompareToConstant_const
                                       * Referenced by: '<S38>/Constant'
                                       */
  real_T EdgeDetector_model;           /* Mask Parameter: EdgeDetector_model
                                        * Referenced by: '<S5>/Constant1'
                                        */
  real_T PMSMCurrentReferenceGenerator_p;
                              /* Mask Parameter: PMSMCurrentReferenceGenerator_p
                               * Referenced by: '<S23>/Tq--> iqRef'
                               */
  real_T DiscretePIController_x0;     /* Mask Parameter: DiscretePIController_x0
                                       * Referenced by: '<S39>/Discrete-Time Integrator'
                                       */
  boolean_T EdgeDetector_ic;           /* Mask Parameter: EdgeDetector_ic
                                        * Referenced by: '<S5>/Memory'
                                        */
  real_T Out1_Y0;                      /* Expression: -1e6
                                        * Referenced by: '<S9>/Out1'
                                        */
  real_T posedge_Value[2];             /* Expression: [1 0]
                                        * Referenced by: '<S5>/pos. edge'
                                        */
  real_T negedge_Value[2];             /* Expression: [0 1]
                                        * Referenced by: '<S5>/neg. edge'
                                        */
  real_T eitheredge_Value[2];          /* Expression: [1 1]
                                        * Referenced by: '<S5>/either edge'
                                        */
  real_T Gain1_Gain;                   /* Expression: -1
                                        * Referenced by: '<S1>/Gain1'
                                        */
  real_T Switch_Threshold;             /* Expression: 0
                                        * Referenced by: '<S1>/Switch'
                                        */
  real_T radsrpm_Gain;                 /* Expression: 30/pi
                                        * Referenced by: '<S23>/rad//s->rpm'
                                        */
  real_T LookupTableidreference_tableDat[12];/* Expression: idMatrix
                                              * Referenced by: '<S23>/Lookup Table id reference'
                                              */
  real_T LookupTableidreference_bp01Data[2];/* Expression: rpmVec
                                             * Referenced by: '<S23>/Lookup Table id reference'
                                             */
  real_T LookupTableidreference_bp02Data[3];/* Expression: TqVec
                                             * Referenced by: '<S23>/Lookup Table id reference'
                                             */
  real_T LookupTableidreference_bp03Data[2];/* Expression: VdcVec
                                             * Referenced by: '<S23>/Lookup Table id reference'
                                             */
  real_T LookupTableiqreference_tableDat[12];/* Expression: iqMatrix
                                              * Referenced by: '<S23>/Lookup Table iq reference'
                                              */
  real_T LookupTableiqreference_bp01Data[2];/* Expression: rpmVec
                                             * Referenced by: '<S23>/Lookup Table iq reference'
                                             */
  real_T LookupTableiqreference_bp02Data[3];/* Expression: TqVec
                                             * Referenced by: '<S23>/Lookup Table iq reference'
                                             */
  real_T LookupTableiqreference_bp03Data[2];/* Expression: VdcVec
                                             * Referenced by: '<S23>/Lookup Table iq reference'
                                             */
  real_T Constant1_Value;              /* Expression: 0.1
                                        * Referenced by: '<S37>/Constant1'
                                        */
  real_T Kv_w_Gain;                    /* Expression: Kv_w
                                        * Referenced by: '<S25>/Kv_w'
                                        */
  real_T Gain1_Gain_b;                 /* Expression: -1
                                        * Referenced by: '<S41>/Gain1'
                                        */
  real_T Gain1_Gain_o;                 /* Expression: 1
                                        * Referenced by: '<S40>/Gain1'
                                        */
  real_T Gain2_Gain;                   /* Expression: 1/2
                                        * Referenced by: '<S40>/Gain2'
                                        */
  real_T Gain_Gain;                    /* Expression: sqrt(3)/2
                                        * Referenced by: '<S40>/Gain'
                                        */
  real_T Gain3_Gain;                   /* Expression: 1/2
                                        * Referenced by: '<S40>/Gain3'
                                        */
  real_T Constant2_Value;              /* Expression: 0
                                        * Referenced by: '<Root>/Constant2'
                                        */
  real_T Constant3_Value;              /* Expression: 0
                                        * Referenced by: '<Root>/Constant3'
                                        */
  real_T Constant5_Value;              /* Expression: 0
                                        * Referenced by: '<Root>/Constant5'
                                        */
  real_T Constant_Value;               /* Expression: 0
                                        * Referenced by: '<S1>/Constant'
                                        */
  real_T Constant1_Value_k;            /* Expression: 0
                                        * Referenced by: '<Root>/Constant1'
                                        */
  real_T Encoder_P1_Size[2];           /* Computed Parameter: Encoder_P1_Size
                                        * Referenced by: '<Root>/Encoder'
                                        */
  real_T Encoder_P1;                   /* Expression: id
                                        * Referenced by: '<Root>/Encoder'
                                        */
  real_T Encoder_P2_Size[2];           /* Computed Parameter: Encoder_P2_Size
                                        * Referenced by: '<Root>/Encoder'
                                        */
  real_T Encoder_P2[2];                /* Expression: chan
                                        * Referenced by: '<Root>/Encoder'
                                        */
  real_T Encoder_P3_Size[2];           /* Computed Parameter: Encoder_P3_Size
                                        * Referenced by: '<Root>/Encoder'
                                        */
  real_T Encoder_P3;                   /* Expression: vectorizeOutput
                                        * Referenced by: '<Root>/Encoder'
                                        */
  real_T Encoder_P4_Size[2];           /* Computed Parameter: Encoder_P4_Size
                                        * Referenced by: '<Root>/Encoder'
                                        */
  real_T Encoder_P4;                   /* Expression: ts
                                        * Referenced by: '<Root>/Encoder'
                                        */
  real_T Delay4_InitialCondition;      /* Expression: 0
                                        * Referenced by: '<S1>/Delay4'
                                        */
  real_T Delay3_InitialCondition;      /* Expression: 0
                                        * Referenced by: '<S1>/Delay3'
                                        */
  real_T Delay1_InitialCondition;      /* Expression: 0
                                        * Referenced by: '<S1>/Delay1'
                                        */
  real_T Switch2_Threshold;            /* Expression: 0
                                        * Referenced by: '<S1>/Switch2'
                                        */
  real_T Delay2_InitialCondition;      /* Expression: 0
                                        * Referenced by: '<S1>/Delay2'
                                        */
  real_T u_Gain;                       /* Expression: -1
                                        * Referenced by: '<S29>/-1'
                                        */
  real_T Gain_Gain_h;                  /* Expression: -1
                                        * Referenced by: '<S28>/Gain'
                                        */
  real_T FiltroPasaBaja_A;             /* Computed Parameter: FiltroPasaBaja_A
                                        * Referenced by: '<S21>/Filtro Pasa Baja'
                                        */
  real_T FiltroPasaBaja_C;             /* Computed Parameter: FiltroPasaBaja_C
                                        * Referenced by: '<S21>/Filtro Pasa Baja'
                                        */
  real_T FiltroPasaBaja1_A;            /* Computed Parameter: FiltroPasaBaja1_A
                                        * Referenced by: '<S21>/Filtro Pasa Baja1'
                                        */
  real_T FiltroPasaBaja1_C;            /* Computed Parameter: FiltroPasaBaja1_C
                                        * Referenced by: '<S21>/Filtro Pasa Baja1'
                                        */
  real_T Gain1_Gain_n;                 /* Expression: 0.5
                                        * Referenced by: '<S27>/Gain1'
                                        */
  real_T FiltroPasaBaja2_A;            /* Computed Parameter: FiltroPasaBaja2_A
                                        * Referenced by: '<S21>/Filtro Pasa Baja2'
                                        */
  real_T FiltroPasaBaja2_C;            /* Computed Parameter: FiltroPasaBaja2_C
                                        * Referenced by: '<S21>/Filtro Pasa Baja2'
                                        */
  real_T Gain2_Gain_e;                 /* Expression: 0.5
                                        * Referenced by: '<S27>/Gain2'
                                        */
  real_T Gain_Gain_f;                  /* Expression: 2/3
                                        * Referenced by: '<S27>/Gain'
                                        */
  real_T Gain4_Gain;                   /* Expression: 1/sqrt(3)
                                        * Referenced by: '<S27>/Gain4'
                                        */
  real_T idRef_Value;                  /* Expression: 0
                                        * Referenced by: '<S23>/idRef'
                                        */
  real_T Saturation_UpperSat;          /* Expression: inf
                                        * Referenced by: '<S32>/Saturation'
                                        */
  real_T Constant_Value_d;             /* Expression: 0
                                        * Referenced by: '<Root>/Constant'
                                        */
  real_T Gain_Gain_p;                  /* Expression: 2*pi/60
                                        * Referenced by: '<Root>/Gain'
                                        */
  real_T Zerocancellationomega_NumCoef;/* Expression: numZC_w
                                        * Referenced by: '<S25>/Zero-cancellation  omega'
                                        */
  real_T Zerocancellationomega_DenCoef;/* Expression: denZC_w
                                        * Referenced by: '<S25>/Zero-cancellation  omega'
                                        */
  real_T Zerocancellationomega_InitialSt;/* Expression: 0
                                          * Referenced by: '<S25>/Zero-cancellation  omega'
                                          */
  real_T UnitDelay_InitialCondition;   /* Expression: 0
                                        * Referenced by: '<S39>/Unit Delay'
                                        */
  real_T DiscreteTimeIntegrator_gainval;
                           /* Computed Parameter: DiscreteTimeIntegrator_gainval
                            * Referenced by: '<S39>/Discrete-Time Integrator'
                            */
  real_T SignChange_Gain;              /* Expression: -1
                                        * Referenced by: '<S32>/Sign Change'
                                        */
  real_T Constant_Value_k;             /* Expression: EnableZDAC
                                        * Referenced by: '<S23>/Constant'
                                        */
  real_T Switch_Threshold_g;           /* Expression: 0.5
                                        * Referenced by: '<S23>/Switch'
                                        */
  real_T Constant_Value_h;             /* Expression: pi
                                        * Referenced by: '<S24>/Constant'
                                        */
  real_T UnitDelay_InitialCondition_i; /* Expression: 0
                                        * Referenced by: '<S3>/Unit Delay'
                                        */
  real_T Switch_Threshold_e;           /* Expression: 0.1
                                        * Referenced by: '<S37>/Switch'
                                        */
  real_T UnitDelay_InitialCondition_g; /* Expression: 0
                                        * Referenced by: '<S24>/Unit Delay'
                                        */
  real_T DiscreteTimeIntegrator_gainva_k;
                          /* Computed Parameter: DiscreteTimeIntegrator_gainva_k
                           * Referenced by: '<S24>/Discrete-Time Integrator'
                           */
  real_T DiscreteTimeIntegrator_IC;    /* Expression: 1
                                        * Referenced by: '<S24>/Discrete-Time Integrator'
                                        */
  real_T Saturation_UpperSat_g;        /* Expression: 1
                                        * Referenced by: '<S24>/Saturation'
                                        */
  real_T Saturation_LowerSat;          /* Expression: 0
                                        * Referenced by: '<S24>/Saturation'
                                        */
  real_T Constant1_Value_h;            /* Expression: pi
                                        * Referenced by: '<S24>/Constant1'
                                        */
  real_T Integrator_IC;                /* Expression: 0
                                        * Referenced by: '<S29>/Integrator'
                                        */
  real_T Integrator_IC_l;              /* Expression: 0
                                        * Referenced by: '<S30>/Integrator'
                                        */
  real_T Switch_Threshold_l;           /* Expression: 0
                                        * Referenced by: '<Root>/Switch'
                                        */
  real_T Constant3_Value_m;            /* Expression: sps.Delay
                                        * Referenced by: '<S19>/Constant3'
                                        */
  real_T Constant1_Value_e;            /* Expression: sps.Period
                                        * Referenced by: '<S19>/Constant1'
                                        */
  real_T uib1_Gain;                    /* Expression: sps.Freq
                                        * Referenced by: '<S19>/1\ib1'
                                        */
  real_T uDLookupTable_tableData[3];   /* Expression: [0 2 0]
                                        * Referenced by: '<S19>/1-D Lookup Table'
                                        */
  real_T uDLookupTable_bp01Data[3];    /* Expression: [0 .5 1]
                                        * Referenced by: '<S19>/1-D Lookup Table'
                                        */
  real_T Constant2_Value_p;            /* Expression: 1
                                        * Referenced by: '<S19>/Constant2'
                                        */
  real_T Gain1_Gain_h;                 /* Expression: 0.5
                                        * Referenced by: '<S10>/Gain1'
                                        */
  real_T Digitaloutput_P1_Size[2];  /* Computed Parameter: Digitaloutput_P1_Size
                                     * Referenced by: '<Root>/Digital output'
                                     */
  real_T Digitaloutput_P1;             /* Expression: id
                                        * Referenced by: '<Root>/Digital output'
                                        */
  real_T Digitaloutput_P2_Size[2];  /* Computed Parameter: Digitaloutput_P2_Size
                                     * Referenced by: '<Root>/Digital output'
                                     */
  real_T Digitaloutput_P2[6];          /* Expression: chan
                                        * Referenced by: '<Root>/Digital output'
                                        */
  real_T Digitaloutput_P3_Size[2];  /* Computed Parameter: Digitaloutput_P3_Size
                                     * Referenced by: '<Root>/Digital output'
                                     */
  real_T Digitaloutput_P3;             /* Expression: vectorizeInput
                                        * Referenced by: '<Root>/Digital output'
                                        */
  real_T Digitaloutput_P4_Size[2];  /* Computed Parameter: Digitaloutput_P4_Size
                                     * Referenced by: '<Root>/Digital output'
                                     */
  real_T Digitaloutput_P4[6];          /* Expression: reset
                                        * Referenced by: '<Root>/Digital output'
                                        */
  real_T Digitaloutput_P5_Size[2];  /* Computed Parameter: Digitaloutput_P5_Size
                                     * Referenced by: '<Root>/Digital output'
                                     */
  real_T Digitaloutput_P5[6];          /* Expression: init
                                        * Referenced by: '<Root>/Digital output'
                                        */
  real_T Digitaloutput_P6_Size[2];  /* Computed Parameter: Digitaloutput_P6_Size
                                     * Referenced by: '<Root>/Digital output'
                                     */
  real_T Digitaloutput_P6;             /* Expression: ts
                                        * Referenced by: '<Root>/Digital output'
                                        */
  real_T Constant_Value_p;             /* Expression: eps
                                        * Referenced by: '<S6>/Constant'
                                        */
  real_T TmpRTBAtFiltroPasaBaja1Inport1_;/* Expression: 0
                                          * Referenced by:
                                          */
  real_T TmpRTBAtFiltroPasaBaja2Inport1_;/* Expression: 0
                                          * Referenced by:
                                          */
  real_T TmpRTBAtFiltroPasaBajaInport1_I;/* Expression: 0
                                          * Referenced by:
                                          */
  real_T C1_Value;                     /* Expression: 0
                                        * Referenced by: '<S29>/C1'
                                        */
  real_T Switch_Threshold_d;           /* Expression: 0.05
                                        * Referenced by: '<S29>/Switch'
                                        */
  real_T C1_Value_p;                   /* Expression: 0
                                        * Referenced by: '<S30>/C1'
                                        */
  real_T Switch_Threshold_ed;          /* Expression: 0.05
                                        * Referenced by: '<S30>/Switch'
                                        */
  real_T CorrientesyPar_P1_Size[2];/* Computed Parameter: CorrientesyPar_P1_Size
                                    * Referenced by: '<Root>/Corrientes y Par'
                                    */
  real_T CorrientesyPar_P1;            /* Expression: id
                                        * Referenced by: '<Root>/Corrientes y Par'
                                        */
  real_T CorrientesyPar_P2_Size[2];/* Computed Parameter: CorrientesyPar_P2_Size
                                    * Referenced by: '<Root>/Corrientes y Par'
                                    */
  real_T CorrientesyPar_P2[3];         /* Expression: chan
                                        * Referenced by: '<Root>/Corrientes y Par'
                                        */
  real_T CorrientesyPar_P3_Size[2];/* Computed Parameter: CorrientesyPar_P3_Size
                                    * Referenced by: '<Root>/Corrientes y Par'
                                    */
  real_T CorrientesyPar_P3;            /* Expression: trigger
                                        * Referenced by: '<Root>/Corrientes y Par'
                                        */
  real_T CorrientesyPar_P4_Size[2];/* Computed Parameter: CorrientesyPar_P4_Size
                                    * Referenced by: '<Root>/Corrientes y Par'
                                    */
  real_T CorrientesyPar_P4;            /* Expression: range
                                        * Referenced by: '<Root>/Corrientes y Par'
                                        */
  real_T CorrientesyPar_P5_Size[2];/* Computed Parameter: CorrientesyPar_P5_Size
                                    * Referenced by: '<Root>/Corrientes y Par'
                                    */
  real_T CorrientesyPar_P5;            /* Expression: ts
                                        * Referenced by: '<Root>/Corrientes y Par'
                                        */
  real_T CorrientesyPar_P6_Size[2];/* Computed Parameter: CorrientesyPar_P6_Size
                                    * Referenced by: '<Root>/Corrientes y Par'
                                    */
  real_T CorrientesyPar_P6;            /* Expression: p.AiTriggerMode
                                        * Referenced by: '<Root>/Corrientes y Par'
                                        */
  real_T CorrientesyPar_P7_Size[2];/* Computed Parameter: CorrientesyPar_P7_Size
                                    * Referenced by: '<Root>/Corrientes y Par'
                                    */
  real_T CorrientesyPar_P7;            /* Expression: p.AiClockDivider
                                        * Referenced by: '<Root>/Corrientes y Par'
                                        */
  real_T CorrientesyPar_P8_Size[2];/* Computed Parameter: CorrientesyPar_P8_Size
                                    * Referenced by: '<Root>/Corrientes y Par'
                                    */
  real_T CorrientesyPar_P8;            /* Expression: parAiInternalSignal
                                        * Referenced by: '<Root>/Corrientes y Par'
                                        */
  real_T CorrientesyPar_P9_Size[2];/* Computed Parameter: CorrientesyPar_P9_Size
                                    * Referenced by: '<Root>/Corrientes y Par'
                                    */
  real_T CorrientesyPar_P9;            /* Expression: parAiDioTriggerChannel
                                        * Referenced by: '<Root>/Corrientes y Par'
                                        */
  uint32_T LookupTableidreference_maxIndex[3];
                          /* Computed Parameter: LookupTableidreference_maxIndex
                           * Referenced by: '<S23>/Lookup Table id reference'
                           */
  uint32_T LookupTableidreference_dimSizes[3];
                          /* Computed Parameter: LookupTableidreference_dimSizes
                           * Referenced by: '<S23>/Lookup Table id reference'
                           */
  uint32_T LookupTableiqreference_maxIndex[3];
                          /* Computed Parameter: LookupTableiqreference_maxIndex
                           * Referenced by: '<S23>/Lookup Table iq reference'
                           */
  uint32_T LookupTableiqreference_dimSizes[3];
                          /* Computed Parameter: LookupTableiqreference_dimSizes
                           * Referenced by: '<S23>/Lookup Table iq reference'
                           */
  boolean_T OUT_Y0;                    /* Computed Parameter: OUT_Y0
                                        * Referenced by: '<S7>/OUT'
                                        */
  boolean_T OUT_Y0_l;                  /* Computed Parameter: OUT_Y0_l
                                        * Referenced by: '<S8>/OUT'
                                        */
};

/* Storage class 'PageSwitching' */
extern control_vectorial_cal_type control_vectorial_cal_impl;
extern control_vectorial_cal_type *control_vectorial_cal;

#endif                                 /* control_vectorial_cal_h_ */
