⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pidnntune_ncd_acc.h

📁 其中提到遺傳學的程式碼與應用提供給次淚相向的研究者參考下載
💻 H
字号:
/*
 * pidNNtune_NCD_acc.h
 *
 * Real-Time Workshop code generation for Simulink model "pidNNtune_NCD_acc.mdl".
 *
 * Model Version              : 1.206
 * Real-Time Workshop version : 6.1  (R14SP1)  05-Sep-2004
 * C source code generated on : Thu May 26 04:56:18 2005
 */
#ifndef _RTW_HEADER_pidNNtune_NCD_acc_h_
#define _RTW_HEADER_pidNNtune_NCD_acc_h_

#include <math.h>
#include <stdlib.h>
#define S_FUNCTION_NAME                 simulink_only_sfcn
#define S_FUNCTION_LEVEL                2
#define RTW_GENERATED_S_FUNCTION

#include "rtwtypes.h"
#include "simstruc.h"
#include "fixedpoint.h"
#include "rt_nonfinite.h"
#include "rtlibsrc.h"

#include "pidNNtune_NCD_acc_types.h"

/* Block signals (auto storage) */
typedef struct _pidNNtune_NCD_BlockIO {
  real_T Sum;                           /* '<Root>/Sum' */
  real_T SU3[3];                        /* '<Root>/SU=3' */
  real_T IW111[2];                      /* '<S9>/IW{1,1}(1,:)'' */
  real_T IW112[2];                      /* '<S9>/IW{1,1}(2,:)'' */
  real_T IW113[2];                      /* '<S9>/IW{1,1}(3,:)'' */
  real_T IW114[2];                      /* '<S9>/IW{1,1}(4,:)'' */
  real_T IW115[2];                      /* '<S9>/IW{1,1}(5,:)'' */
  real_T SE1;                           /* '<S1>/SE=1' */
  real_T SDE001;                        /* '<S1>/SDE=0.01' */
  real_T b1[5];                         /* '<S6>/b{1}' */
  real_T Saturation[5];                 /* '<S10>/Saturation' */
  real_T IW211[5];                      /* '<S22>/IW{2,1}(1,:)'' */
  real_T b2;                            /* '<S7>/b{2}' */
  real_T SU1;                           /* '<Root>/SU=1' */
  real_T Derivative;                    /* '<S3>/Derivative' */
  real_T Integral;                      /* '<S3>/Integral' */
  real_T Sum_h;                         /* '<S3>/Sum' */
  real_T Derivative_p;                  /* '<Root>/Derivative' */
  real_T Derivative1;                   /* '<Root>/Derivative1' */
  real_T Derivative2;                   /* '<Root>/Derivative2' */
  real_T Integral_h;                    /* '<Root>/Integral' */
  real_T Integral1;                     /* '<Root>/Integral1' */
  real_T Proportional;                  /* '<Root>/Proportional' */
  real_T Proportional1;                 /* '<Root>/Proportional1' */
} pidNNtune_NCD_BlockIO;

/* Block states (auto storage) for system: '<Root>' */
typedef struct pidNNtune_NCD_D_Work_tag {
  struct {
    real_T TimeStampA;
    real_T LastUAtTimeA;
    real_T TimeStampB;
    real_T LastUAtTimeB;
  } Derivative1_RWORK;                  /* '<S1>/Derivative1' */
  struct {
    void *LoggedData;
  } Scope_PWORK;                        /* '<Root>/Scope' */
  int_T Step_MODE;                      /* '<Root>/Step' */
  int_T Step1_MODE;                     /* '<Root>/Step1' */
  int_T Abs_MODE;                       /* '<Root>/Abs' */
} pidNNtune_NCD_D_Work;

/* Continuous states (auto storage) */
typedef struct _pidNNtune_NCD_ContinuousStates {
  real_T IdentifiedPlantModel_CSTATE[3]; /* '<S4>/Identified Plant Model' */
  real_T BandlimitedDerivative_CSTATE; /* '<S3>/Band-limited Derivative' */
  real_T Integrator_CSTATE;             /* '<S3>/Integrator' */
} pidNNtune_NCD_ContinuousStates;

/* State derivatives (auto storage) */
typedef struct _pidNNtune_NCD_StateDerivatives {
  real_T IdentifiedPlantModel_CSTATE[3]; /* '<S4>/Identified Plant Model' */
  real_T BandlimitedDerivative_CSTATE; /* '<S3>/Band-limited Derivative' */
  real_T Integrator_CSTATE;             /* '<S3>/Integrator' */
} pidNNtune_NCD_StateDerivatives;

/* State disabled  */
typedef struct _pidNNtune_NCD_StateDisabled {
  boolean_T IdentifiedPlantModel_CSTATE[3]; /* '<S4>/Identified Plant Model' */
  boolean_T BandlimitedDerivative_CSTATE; /* '<S3>/Band-limited Derivative' */
  boolean_T Integrator_CSTATE;          /* '<S3>/Integrator' */
} pidNNtune_NCD_StateDisabled;

/* Zero-crossing (trigger) state */
typedef struct _pidNNtune_NCD_NonsampledZCs {
  real_T Step_NSZC;                     /* '<Root>/Step' */
  real_T Step1_NSZC;                    /* '<Root>/Step1' */
  real_T Abs_NSZC;                      /* '<Root>/Abs' */
} pidNNtune_NCD_NonsampledZCs;

/* Parameters (auto storage) */
struct _pidNNtune_NCD_Parameters {
  real_T Step_Time;                     /* Expression: 0
                                         * '<Root>/Step'
                                         */
  real_T Step_Y0;                       /* Expression: 0
                                         * '<Root>/Step'
                                         */
  real_T Step_YFinal;                   /* Expression: 1
                                         * '<Root>/Step'
                                         */
  real_T Step1_Time;                    /* Expression: 3
                                         * '<Root>/Step1'
                                         */
  real_T Step1_Y0;                      /* Expression: 0
                                         * '<Root>/Step1'
                                         */
  real_T Step1_YFinal;                  /* Expression: -0.9
                                         * '<Root>/Step1'
                                         */
  real_T SU2_Gain;                      /* Expression: SW
                                         * '<Root>/SU=2'
                                         */
  real_T IdentifiedPlantModel_A[5];     /* Computed Parameter: A
                                         * '<S4>/Identified Plant Model'
                                         */
  real_T IdentifiedPlantModel_B;        /* Computed Parameter: B
                                         * '<S4>/Identified Plant Model'
                                         */
  real_T IdentifiedPlantModel_C;        /* Computed Parameter: C
                                         * '<S4>/Identified Plant Model'
                                         */
  real_T SU3_Gain;                      /* Expression: 100/SW
                                         * '<Root>/SU=3'
                                         */
  real_T IW111_Value[2];                /* Expression: [-0.239764;0.079984]
                                         * '<S9>/IW{1,1}(1,:)''
                                         */
  real_T IW112_Value[2];                /* Expression: [-0.014845021557032189;-0.095266257289657111]
                                         * '<S9>/IW{1,1}(2,:)''
                                         */
  real_T IW113_Value[2];                /* Expression: [-0.027509224826978068;0.025377439366166668]
                                         * '<S9>/IW{1,1}(3,:)''
                                         */
  real_T IW114_Value[2];                /* Expression: [0.015371937708135143;0.011186770132272541]
                                         * '<S9>/IW{1,1}(4,:)''
                                         */
  real_T IW115_Value[2];                /* Expression: [0.026170420151337165;-0.026873847219301441]
                                         * '<S9>/IW{1,1}(5,:)''
                                         */
  real_T SE1_Gain;                      /* Expression: SE
                                         * '<S1>/SE=1'
                                         */
  real_T SDE001_Gain;                   /* Expression: SDE
                                         * '<S1>/SDE=0.01'
                                         */
  real_T b1_Value[5];                   /* Expression: [-65.504968000000005;8.7662541430498084;-2.6593507654985524;0;-2.6754267445324529]
                                         * '<S6>/b{1}'
                                         */
  real_T Saturation_UpperSat;           /* Expression: 1
                                         * '<S10>/Saturation'
                                         */
  real_T Saturation_LowerSat;           /* Expression: -1
                                         * '<S10>/Saturation'
                                         */
  real_T IW211_Value[5];                /* Expression: [14;-5;36;194;-37]
                                         * '<S22>/IW{2,1}(1,:)''
                                         */
  real_T b2_Value;                      /* Expression: 18
                                         * '<S7>/b{2}'
                                         */
  real_T SU1_Gain;                      /* Expression: SU
                                         * '<S1>/SU=1'
                                         */
  real_T SU1_Gain_o;                    /* Expression: 1
                                         * '<Root>/SU=1'
                                         */
  real_T Derivative_Gain;               /* Expression: Kd
                                         * '<S3>/Derivative'
                                         */
  real_T BandlimitedDerivative_A;       /* Computed Parameter: A
                                         * '<S3>/Band-limited Derivative'
                                         */
  real_T BandlimitedDerivative_B;       /* Computed Parameter: B
                                         * '<S3>/Band-limited Derivative'
                                         */
  real_T BandlimitedDerivative_C;       /* Computed Parameter: C
                                         * '<S3>/Band-limited Derivative'
                                         */
  real_T BandlimitedDerivative_D;       /* Computed Parameter: D
                                         * '<S3>/Band-limited Derivative'
                                         */
  real_T Integral_Gain;                 /* Expression: Ki
                                         * '<S3>/Integral'
                                         */
  real_T Integrator_IC;                 /* Expression: 0
                                         * '<S3>/Integrator'
                                         */
  real_T Proportional_Gain;             /* Expression: Kp
                                         * '<S3>/Proportional'
                                         */
  real_T Derivative_Value;              /* Expression: Kd
                                         * '<Root>/Derivative'
                                         */
  real_T Derivative1_Value;             /* Expression: SU
                                         * '<Root>/Derivative1'
                                         */
  real_T Derivative2_Value;             /* Expression: Kf
                                         * '<Root>/Derivative2'
                                         */
  real_T Integral_Value;                /* Expression: Ki
                                         * '<Root>/Integral'
                                         */
  real_T Integral1_Value;               /* Expression: SDE
                                         * '<Root>/Integral1'
                                         */
  real_T Proportional_Value;            /* Expression: Kp
                                         * '<Root>/Proportional'
                                         */
  real_T Proportional1_Value;           /* Expression: SE
                                         * '<Root>/Proportional1'
                                         */
};

extern pidNNtune_NCD_Parameters pidNNtune_NCD_DefaultParameters; /* parameters */

#endif                                  /* _RTW_HEADER_pidNNtune_NCD_acc_h_ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -