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

📄 dtc_svm_416_acc_data.c

📁 关于永磁同步电机DTC系统的无速度传感器
💻 C
📖 第 1 页 / 共 2 页
字号:
/*
 * dtc_svm_416_acc_data.c
 *
 * Real-Time Workshop code generation for Simulink model "dtc_svm_416_acc.mdl".
 *
 * Model Version                        : 1.617
 * Real-Time Workshop file version      : 5.0 $Date: 2002/05/30 19:21:33 $
 * Real-Time Workshop file generated on : Fri Apr 17 08:48:05 2009
 * TLC version                          : 5.0 (Jun 18 2002)
 * C source code generated on           : Fri Apr 17 08:48:06 2009
 */

#include "dtc_svm_416_acc.h"
#include "dtc_svm_416_acc_private.h"

/* Block parameters (auto storage) */
dtc_svm_416_Parameters dtc_svm_416_DefaultParameters = {
  0.0 ,                                 /* Integrator2_a_IC : '<S50>/Integrator2' */
  9.5492965855137211E+000 ,             /* Gain4_a_Gain : '<Root>/Gain4' */
  0.2 ,                                 /* Discrete_Time_Integrat_a_IC : '<S19>/Discrete-Time Integrator2' */
  0.0 ,                                 /* Discrete_Time_Integrat_b_IC : '<S19>/Discrete-Time Integrator3' */
  0.0 ,                                 /* Integrator_a_IC : '<S50>/Integrator' */
  0.0 ,                                 /* Integrator1_a_IC : '<S50>/Integrator1' */
  0.0 ,                                 /* Integrator3_a_IC : '<S50>/Integrator3' */
  0.0 ,                                 /* Unit_Delay_a_X0 : '<S38>/Unit Delay' */
  /*  Look_Up_Table1_XData : '<S30>/Look-Up Table1' */
  { 0.0, 0.0001, 0.0002 } ,
  /*  Look_Up_Table1_YData : '<S30>/Look-Up Table1' */
  { 0.0, 0.0001, 0.0 } ,
  1.0 ,                                 /* Constant2_a_Value : '<S25>/Constant2' */
  0.0 ,                                 /* Flux_ref_Time : '<Root>/Flux_ref' */
  0.2 ,                                 /* Flux_ref_Y0 : '<Root>/Flux_ref' */
  0.2 ,                                 /* Flux_ref_YFinal : '<Root>/Flux_ref' */
  0.0 ,                                 /* Speed_ref_Time : '<Root>/Speed_ref' */
  2000.0 ,                              /* Speed_ref_Y0 : '<Root>/Speed_ref' */
  2000.0 ,                              /* Speed_ref_YFinal : '<Root>/Speed_ref' */
  0.6 ,                                 /* Kp4_a_Gain : '<S5>/Kp4' */
  8.0 ,                                 /* Discrete_Time_Integrat_c_IC : '<S5>/Discrete-Time Integrator' */
  8.0 ,                                 /* Discrete_Time_Integrat_c_UpperS : '<S5>/Discrete-Time Integrator' */
  -8.0 ,                                /* Discrete_Time_Integrat_c_LowerS : '<S5>/Discrete-Time Integrator' */
  8.0 ,                                 /* Saturation2_a_UpperSat : '<S5>/Saturation2' */
  -8.0 ,                                /* Saturation2_a_LowerSat : '<S5>/Saturation2' */
  0.2 ,                                 /* Kp4_b_Gain : '<S21>/Kp4' */
  0.11 ,                                /* Discrete_Time_Integrat_d_IC : '<S21>/Discrete-Time Integrator' */
  0.11 ,                                /* Discrete_Time_Integrat_d_UpperS : '<S21>/Discrete-Time Integrator' */
  -0.11 ,                               /* Discrete_Time_Integrat_d_LowerS : '<S21>/Discrete-Time Integrator' */
  0.11 ,                                /* Saturation2_b_UpperSat : '<S21>/Saturation2' */
  -0.11 ,                               /* Saturation2_b_LowerSat : '<S21>/Saturation2' */
  0.0 ,                                 /* Constant3_Value : '<S25>/Constant3' */
  0.0 ,                                 /* Switch_a_Threshold : '<S25>/Switch' */
  1.732 ,                               /* Gain_a_Gain : '<S25>/Gain' */
  0.0 ,                                 /* Switch1_a_Threshold : '<S25>/Switch1' */
  2.0 ,                                 /* Gain2_a_Gain : '<S25>/Gain2' */
  -1.732 ,                              /* Gain1_a_Gain : '<S25>/Gain1' */
  0.0 ,                                 /* Switch2_Threshold : '<S25>/Switch2' */
  4.0 ,                                 /* Gain3_a_Gain : '<S25>/Gain3' */
  0.577 ,                               /* Gain1_b_Gain : '<S29>/Gain1' */
  0.0002 ,                              /* Constant_a_Value : '<S9>/Constant' */
  300.0 ,                               /* Constant1_a_Value : '<S9>/Constant1' */
  1.5 ,                                 /* Gain3_b_Gain : '<S29>/Gain3' */
  1.5 ,                                 /* Gain2_b_Gain : '<S29>/Gain2' */
  -1.0 ,                                /* Gain2_c_Gain : '<S27>/Gain2' */
  1.732 ,                               /* Gain_b_Gain : '<S29>/Gain' */
  -1.0 ,                                /* Gain_c_Gain : '<S27>/Gain' */
  -1.0 ,                                /* Gain1_c_Gain : '<S27>/Gain1' */
  0.0 ,                                 /* Switch_b_Threshold : '<S27>/Switch' */
  0.5 ,                                 /* Gain2_d_Gain : '<S26>/Gain2' */
  0.0 ,                                 /* Switch1_b_Threshold : '<S27>/Switch1' */
  0.25 ,                                /* Gain_d_Gain : '<S26>/Gain' */
  0.5 ,                                 /* Gain1_d_Gain : '<S26>/Gain1' */
  2.2204460492503131E-016 ,             /* Relay_OnVal : '<S28>/Relay' */
  2.2204460492503131E-016 ,             /* Relay_OffVal : '<S28>/Relay' */
  1.0 ,                                 /* Relay_YOn : '<S28>/Relay' */
  0.0 ,                                 /* Relay_YOff : '<S28>/Relay' */
  2.2204460492503131E-016 ,             /* Relay1_OnVal : '<S28>/Relay1' */
  2.2204460492503131E-016 ,             /* Relay1_OffVal : '<S28>/Relay1' */
  1.0 ,                                 /* Relay1_YOn : '<S28>/Relay1' */
  0.0 ,                                 /* Relay1_YOff : '<S28>/Relay1' */
  2.2204460492503131E-016 ,             /* Relay2_OnVal : '<S28>/Relay2' */
  2.2204460492503131E-016 ,             /* Relay2_OffVal : '<S28>/Relay2' */
  1.0 ,                                 /* Relay2_YOn : '<S28>/Relay2' */
  0.0 ,                                 /* Relay2_YOff : '<S28>/Relay2' */
  300.0 ,                               /* Constant2_b_Value : '<S14>/Constant2' */
  0.0 ,                                 /* Unit_Delay9_X0 : '<S42>/Unit Delay9' */
  0.0 ,                                 /* Unit_Delay3_a_X0 : '<S38>/Unit Delay3' */
  /*  State_Space_P1_Size : '<S34>/State-Space' */
  { 6.0, 6.0 } ,
  /*  State_Space_P1 : '<S34>/State-Space' */
  { 9.9950024987506236E-001, -4.9975012493753122E-004, 0.0, 0.0, 0.0, 0.0,
    -4.9975012493753122E-004, 9.9950024987506247E-001, 0.0, 0.0, 0.0, 0.0, 0.0,
    0.0, 9.9950024987506236E-001, -4.9975012493753122E-004, 0.0, 0.0, 0.0, 0.0,
    -4.9975012493753122E-004, 9.9950024987506247E-001, 0.0, 0.0, 0.0, 0.0, 0.0,
    0.0, 9.9950024987506236E-001, -4.9975012493753122E-004, 0.0, 0.0, 0.0, 0.0,
    -4.9975012493753122E-004, 9.9950024987506247E-001 } ,
  /*  State_Space_P2_Size : '<S34>/State-Space' */
  { 6.0, 13.0 } ,
  /*  State_Space_P2 : '<S34>/State-Space' */
  { -4.9999999999999988E+008, 4.9999999999999994E+008, 0.0, 0.0, 0.0, 0.0,
    4.9999999999999988E+008, -4.9999999999999994E+008, 0.0, 0.0, 0.0, 0.0, 0.0,
    0.0, -4.9999999999999988E+008, 4.9999999999999994E+008, 0.0, 0.0, 0.0, 0.0,
    4.9999999999999988E+008, -4.9999999999999994E+008, 0.0, 0.0, 0.0, 0.0, 0.0,
    0.0, -4.9999999999999988E+008, 4.9999999999999994E+008, 0.0, 0.0, 0.0, 0.0,
    4.9999999999999988E+008, -4.9999999999999994E+008, 4.9975012493753113E+001,
    4.9975012493753120E+001, 4.9975012493753113E+001, 4.9975012493753120E+001,
    4.9975012493753113E+001, 4.9975012493753120E+001, 0.0, 0.0, 0.0, 0.0, 0.0,
    0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
    0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
    0.0 } ,
  /*  State_Space_P3_Size : '<S34>/State-Space' */
  { 9.0, 6.0 } ,
  /*  State_Space_P3 : '<S34>/State-Space' */
  { 4.9999999999999996E-006, -4.9999999999999996E-006, 0.0, 0.0, 0.0, 0.0,
    -4.9999999999999996E-006, -4.9999999999999996E-006, 0.0, -5.0E-006,
    5.0E-006, 0.0, 0.0, 0.0, 0.0, 5.0E-006, 5.0E-006, 0.0, 0.0, 0.0,
    4.9999999999999996E-006, -4.9999999999999996E-006, 0.0, 0.0,
    4.9999999999999996E-006, 0.0, -4.9999999999999996E-006, 0.0, 0.0, -5.0E-006,
    5.0E-006, 0.0, 0.0, -5.0E-006, 0.0, 5.0E-006, 0.0, 0.0, 0.0, 0.0,
    4.9999999999999996E-006, -4.9999999999999996E-006, 0.0,
    4.9999999999999996E-006, 4.9999999999999996E-006, 0.0, 0.0, 0.0, 0.0,
    -5.0E-006, 5.0E-006, 0.0, -5.0E-006, -5.0E-006 } ,
  /*  State_Space_P4_Size : '<S34>/State-Space' */
  { 9.0, 13.0 } ,
  /*  State_Space_P4 : '<S34>/State-Space' */
  { -5.0025E+006, 5.0025E+006, 0.0, 0.0, 0.0, 0.0, 5.0025E+006, 5.0025E+006,
    0.0, 5.0025E+006, -5.0025E+006, 0.0, 0.0, 0.0, 0.0, -5.0025E+006,
    -5.0025E+006, 0.0, 0.0, 0.0, -5.0025E+006, 5.0025E+006, 0.0, 0.0,
    -5.0025E+006, 0.0, 5.0025E+006, 0.0, 0.0, 5.0025E+006, -5.0025E+006, 0.0,
    0.0, 5.0025E+006, 0.0, -5.0025E+006, 0.0, 0.0, 0.0, 0.0, -5.0025E+006,
    5.0025E+006, 0.0, -5.0025E+006, -5.0025E+006, 0.0, 0.0, 0.0, 0.0,
    5.0025E+006, -5.0025E+006, 0.0, 5.0025E+006, 5.0025E+006, 0.5, 0.5, 0.5,
    0.5, 0.5, 0.5, 0.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
    0.0, -1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0,
    0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0,
    0.0, -1.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, -1.0, 0.0, 0.0, 0.0
  } ,
  /*  State_Space_P5_Size : '<S34>/State-Space' */
  { 6.0, 1.0 } ,
  /*  State_Space_P5 : '<S34>/State-Space' */
  { 1.5007499999994073E+007, 1.5007499999994073E+007, 1.5007499999994073E+007,
    1.5007499999994073E+007, 1.5007499999994073E+007, 1.5007499999994073E+007 }
  ,
  /*  State_Space_P6_Size : '<S34>/State-Space' */

⌨️ 快捷键说明

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