/*
 * q_srv02_pos_data.c
 *
 * Real-Time Workshop code generation for Simulink model "q_srv02_pos.mdl".
 *
 * Model version              : 1.173
 * Real-Time Workshop version : 7.5  (R2010a)  25-Jan-2010
 * C source code generated on : Mon Dec 05 14:43:18 2011
 *
 * Target selection: quarc_windows.tlc
 * Note: GRT includes extra infrastructure and instrumentation for prototyping
 * Embedded hardware selection: 32-bit Generic
 * Code generation objectives: Unspecified
 * Validation result: Not run
 */

#include "q_srv02_pos.h"
#include "q_srv02_pos_private.h"

/* Block parameters (auto storage) */
Parameters_q_srv02_pos q_srv02_pos_P = {
  -1.6,                                /* Expression: -4*a*f
                                        * Referenced by: '<S5>/-R0*(t-1//(2*f))'
                                        */
  1.6,                                 /* Expression: 4*a*f
                                        * Referenced by: '<S5>/R0'
                                        */
  -6.1435589670200397E-001,            /* Expression: K_POT
                                        * Referenced by: '<S6>/Potentiometer Calibration  (rad//V)'
                                        */
  0.0,                                 /* Expression: set_other_outputs_at_start
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0.0,                                 /* Expression: set_other_outputs_at_switch_in
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0.0,                                 /* Expression: set_other_outputs_at_terminate
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0.0,                                 /* Expression: set_other_outputs_at_switch_out
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  10.0,                                /* Expression: analog_input_maximums
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  -10.0,                               /* Expression: analog_input_minimums
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  10.0,                                /* Expression: analog_output_maximums
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  -10.0,                               /* Expression: analog_output_minimums
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0.0,                                 /* Expression: initial_analog_outputs
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0.0,                                 /* Expression: final_analog_outputs
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0.0,                                 /* Expression: watchdog_analog_outputs
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  2.4305934065934067E+004,             /* Expression: pwm_frequency
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0.0,                                 /* Expression: pwm_leading_deadband
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0.0,                                 /* Expression: pwm_trailing_deadband
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0.0,                                 /* Expression: initial_pwm_outputs
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0.0,                                 /* Expression: final_pwm_outputs
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0.0,                                 /* Expression: watchdog_pwm_outputs
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1.5339807878856412E-003,             /* Expression: K_ENC
                                        * Referenced by: '<S6>/Encoder Calibration  (rad//count)'
                                        */

  /*  Computed Parameter: EncoderHighPassFilter_A
   * Referenced by: '<S6>/Encoder High-Pass Filter'
   */
  { -5.6548667764616278E+002, -9.8696044010893587E+004 },

  /*  Computed Parameter: EncoderHighPassFilter_C
   * Referenced by: '<S6>/Encoder High-Pass Filter'
   */
  { 9.8696044010893587E+004, 0.0 },
  2.0,                                 /* Expression: 2
                                        * Referenced by: '<Root>/Pos Src'
                                        */
  -9.9733100113961670E-001,            /* Expression: K_TACH
                                        * Referenced by: '<S6>/Tachometer Calibration  (rad//s//V)'
                                        */
  1.0,                                 /* Expression: 1
                                        * Referenced by: '<S4>/Spd Src'
                                        */
  1.0,                                 /* Expression: sig_type
                                        * Referenced by: '<S3>/Constant'
                                        */
  1.0,                                 /* Expression: a
                                        * Referenced by: '<S3>/Square Wave'
                                        */
  0.4,                                 /* Expression: f
                                        * Referenced by: '<S3>/Square Wave'
                                        */
  2.5,                                 /* Expression: 1/f
                                        * Referenced by: '<S5>/Period (s)'
                                        */
  1.25,                                /* Expression: 1/(2*f)
                                        * Referenced by: '<S5>/Half Period (s)'
                                        */
  1.0,                                 /* Expression: a
                                        * Referenced by: '<S5>/Amplitude'
                                        */
  1.0,                                 /* Expression: a
                                        * Referenced by: '<S3>/Sine Wave'
                                        */
  0.4,                                 /* Expression: f
                                        * Referenced by: '<S3>/Sine Wave'
                                        */
  3.9269908169872414E-001,             /* Expression: pi/8
                                        * Referenced by: '<Root>/Amplitude (rad)'
                                        */
  2.0,                                 /* Expression: kp
                                        * Referenced by: '<S1>/Proportional Gain  (V//rad)'
                                        */
  0.0,                                 /* Expression: 0
                                        * Referenced by: '<S1>/Integrator'
                                        */
  10.0,                                /* Expression: VMAX_DAC
                                        * Referenced by: '<S1>/Integrator'
                                        */
  -10.0,                               /* Expression: -VMAX_DAC
                                        * Referenced by: '<S1>/Integrator'
                                        */

  /*  Computed Parameter: Highpassfilter_A
   * Referenced by: '<S1>/High-pass filter'
   */
  { -5.6548667764616278E+002, -9.8696044010893587E+004 },

  /*  Computed Parameter: Highpassfilter_C
   * Referenced by: '<S1>/High-pass filter'
   */
  { 9.8696044010893587E+004, 0.0 },
  0.0,                                 /* Expression: kv
                                        * Referenced by: '<S1>/Velocity Gain  (V.s//rad)'
                                        */
  -1.0,                                /* Expression: -1
                                        * Referenced by: '<S7>/Direction Convention: (Right-Hand) system'
                                        */
  24.0,                                /* Expression: VMAX_AMP
                                        * Referenced by: '<S7>/Amplifier  Saturation (V)'
                                        */
  -24.0,                               /* Expression: -VMAX_AMP
                                        * Referenced by: '<S7>/Amplifier  Saturation (V)'
                                        */
  1.0,                                 /* Expression: 1/K_AMP
                                        * Referenced by: '<S7>/Inverse Amplifier  Gain (V//V)'
                                        */
  10.0,                                /* Expression: VMAX_DAC
                                        * Referenced by: '<S7>/DACB Saturation (V)'
                                        */
  -10.0,                               /* Expression: -VMAX_DAC
                                        * Referenced by: '<S7>/DACB Saturation (V)'
                                        */
  -1.0,                                /* Expression: -K_AMP
                                        * Referenced by: '<S7>/Amplifier  Gain (V//V)'
                                        */
  -1.0,                                /* Expression: -1
                                        * Referenced by: '<S1>/-theta_l (deg)'
                                        */
  0.0,                                 /* Expression: ki
                                        * Referenced by: '<S1>/Integral Gain  (V//rad//s)'
                                        */

  /*  Computed Parameter: HILInitialize_CKChannels
   * Referenced by: '<S6>/HIL Initialize'
   */
  { 0, 1, 2 },
  1,                                   /* Computed Parameter: HILInitialize_DOWatchdog
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_EIInitial
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_POModes
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_POConfiguration
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_POAlignment
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1,                                   /* Computed Parameter: HILInitialize_POPolarity
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILReadAnalogTimebase_Clock
                                        * Referenced by: '<S6>/HIL Read Analog Timebase'
                                        */

  /*  Computed Parameter: HILInitialize_AIChannels
   * Referenced by: '<S6>/HIL Initialize'
   */
  { 0U, 1U, 2U, 3U, 4U, 5U, 6U, 7U },

  /*  Computed Parameter: HILInitialize_AOChannels
   * Referenced by: '<S6>/HIL Initialize'
   */
  { 0U, 1U, 2U, 3U, 4U, 5U, 6U, 7U },

  /*  Computed Parameter: HILInitialize_EIChannels
   * Referenced by: '<S6>/HIL Initialize'
   */
  { 0U, 1U, 2U, 3U, 4U, 5U, 6U, 7U },
  4U,                                  /* Computed Parameter: HILInitialize_EIQuadrature
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */

  /*  Computed Parameter: HILInitialize_POChannels
   * Referenced by: '<S6>/HIL Initialize'
   */
  { 0U, 1U, 2U, 3U, 4U, 5U, 6U, 7U },

  /*  Computed Parameter: HILReadAnalogTimebase_Channels
   * Referenced by: '<S6>/HIL Read Analog Timebase'
   */
  { 0U, 1U },
  500U,                                /* Computed Parameter: HILReadAnalogTimebase_SamplesIn
                                        * Referenced by: '<S6>/HIL Read Analog Timebase'
                                        */
  0U,                                  /* Computed Parameter: HILReadEncoder_Channels
                                        * Referenced by: '<S6>/HIL Read Encoder'
                                        */
  0U,                                  /* Computed Parameter: HILWriteAnalog_Channels
                                        * Referenced by: '<S6>/HIL Write Analog'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_Active
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_CKPStart
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_CKPEnter
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1,                                   /* Computed Parameter: HILInitialize_AIPStart
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_AIPEnter
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1,                                   /* Computed Parameter: HILInitialize_AOPStart
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_AOPEnter
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1,                                   /* Computed Parameter: HILInitialize_AOStart
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_AOEnter
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1,                                   /* Computed Parameter: HILInitialize_AOTerminate
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_AOExit
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_AOReset
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_DOPStart
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_DOPEnter
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1,                                   /* Computed Parameter: HILInitialize_DOStart
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_DOEnter
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1,                                   /* Computed Parameter: HILInitialize_DOTerminate
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_DOExit
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_DOReset
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1,                                   /* Computed Parameter: HILInitialize_EIPStart
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_EIPEnter
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1,                                   /* Computed Parameter: HILInitialize_EIStart
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_EIEnter
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1,                                   /* Computed Parameter: HILInitialize_POPStart
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_POPEnter
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1,                                   /* Computed Parameter: HILInitialize_POStart
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_POEnter
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1,                                   /* Computed Parameter: HILInitialize_POTerminate
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_POExit
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_POReset
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  0,                                   /* Computed Parameter: HILInitialize_OOReset
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1,                                   /* Computed Parameter: HILInitialize_DOInitial
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1,                                   /* Computed Parameter: HILInitialize_DOFinal
                                        * Referenced by: '<S6>/HIL Initialize'
                                        */
  1,                                   /* Computed Parameter: HILReadAnalogTimebase_Active
                                        * Referenced by: '<S6>/HIL Read Analog Timebase'
                                        */
  1,                                   /* Computed Parameter: HILReadEncoder_Active
                                        * Referenced by: '<S6>/HIL Read Encoder'
                                        */
  0                                    /* Computed Parameter: HILWriteAnalog_Active
                                        * Referenced by: '<S6>/HIL Write Analog'
                                        */
};
