diff --git a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.bat b/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.bat deleted file mode 100644 index 6dab4e0..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.bat +++ /dev/null @@ -1,12 +0,0 @@ -@if not "%MINGW_ROOT%" == "" (@set "PATH=%PATH%;%MINGW_ROOT%") - -cd . - -if "%1"=="" ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f BLDC_controller.mk all) else ("C:\PROGRA~1\MATLAB\R2017b\bin\win64\gmake" -f BLDC_controller.mk %1) -@if errorlevel 1 goto error_exit - -exit /B 0 - -:error_exit -echo The make command returned an error of %errorlevel% -An_error_occurred_during_the_call_to_make diff --git a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.c b/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.c deleted file mode 100644 index b0095fc..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.c +++ /dev/null @@ -1,696 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: BLDC_controller.c - * - * Code generated for Simulink model 'BLDC_controller'. - * - * Model version : 1.883 - * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Tue Jun 11 21:14:57 2019 - * - * Target selection: ert.tlc - * Embedded hardware selection: ARM Compatible->ARM Cortex - * Emulation hardware selection: - * Differs from embedded hardware (MATLAB Host) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#include "BLDC_controller.h" -#ifndef UCHAR_MAX -#include -#endif - -#if ( UCHAR_MAX != (0xFFU) ) || ( SCHAR_MAX != (0x7F) ) -#error Code was generated for compiler with different sized uchar/char. \ -Consider adjusting Test hardware word size settings on the \ -Hardware Implementation pane to match your compiler word sizes as \ -defined in limits.h of the compiler. Alternatively, you can \ -select the Test hardware is the same as production hardware option and \ -select the Enable portable word sizes option on the Code Generation > \ -Verification pane for ERT based targets, which will disable the \ -preprocessor word size checks. -#endif - -#if ( USHRT_MAX != (0xFFFFU) ) || ( SHRT_MAX != (0x7FFF) ) -#error Code was generated for compiler with different sized ushort/short. \ -Consider adjusting Test hardware word size settings on the \ -Hardware Implementation pane to match your compiler word sizes as \ -defined in limits.h of the compiler. Alternatively, you can \ -select the Test hardware is the same as production hardware option and \ -select the Enable portable word sizes option on the Code Generation > \ -Verification pane for ERT based targets, which will disable the \ -preprocessor word size checks. -#endif - -#if ( UINT_MAX != (0xFFFFFFFFU) ) || ( INT_MAX != (0x7FFFFFFF) ) -#error Code was generated for compiler with different sized uint/int. \ -Consider adjusting Test hardware word size settings on the \ -Hardware Implementation pane to match your compiler word sizes as \ -defined in limits.h of the compiler. Alternatively, you can \ -select the Test hardware is the same as production hardware option and \ -select the Enable portable word sizes option on the Code Generation > \ -Verification pane for ERT based targets, which will disable the \ -preprocessor word size checks. -#endif - -#if ( ULONG_MAX != (0xFFFFFFFFU) ) || ( LONG_MAX != (0x7FFFFFFF) ) -#error Code was generated for compiler with different sized ulong/long. \ -Consider adjusting Test hardware word size settings on the \ -Hardware Implementation pane to match your compiler word sizes as \ -defined in limits.h of the compiler. Alternatively, you can \ -select the Test hardware is the same as production hardware option and \ -select the Enable portable word sizes option on the Code Generation > \ -Verification pane for ERT based targets, which will disable the \ -preprocessor word size checks. -#endif - -#if 0 - -/* Skip this size verification because of preprocessor limitation */ -#if ( ULLONG_MAX != (0xFFFFFFFFFFFFFFFFULL) ) || ( LLONG_MAX != (0x7FFFFFFFFFFFFFFFLL) ) -#error Code was generated for compiler with different sized ulong_long/long_long. \ -Consider adjusting Test hardware word size settings on the \ -Hardware Implementation pane to match your compiler word sizes as \ -defined in limits.h of the compiler. Alternatively, you can \ -select the Test hardware is the same as production hardware option and \ -select the Enable portable word sizes option on the Code Generation > \ -Verification pane for ERT based targets, which will disable the \ -preprocessor word size checks. -#endif -#endif - -uint8_T plook_u8s32u32n31_evenc_s(int32_T u, int32_T bp0, uint32_T bpSpace, - uint32_T maxIndex, uint32_T *fraction); -int16_T intrp1d_s16s32s32u8u32n31l_s(uint8_T bpIndex, uint32_T frac, const - int16_T table[]); -int32_T div_nde_s32_floor(int32_T numerator, int32_T denominator); -uint8_T plook_u8s32u32n31_evenc_s(int32_T u, int32_T bp0, uint32_T bpSpace, - uint32_T maxIndex, uint32_T *fraction) -{ - uint8_T bpIndex; - uint32_T uAdjust; - uint32_T fbpIndex; - - /* Prelookup - Index and Fraction - Index Search method: 'even' - Extrapolation method: 'Clip' - Use previous index: 'off' - Use last breakpoint for index at or above upper limit: 'off' - Remove protection against out-of-range input in generated code: 'off' - Rounding mode: 'simplest' - */ - if (u <= bp0) { - bpIndex = 0U; - *fraction = 0U; - } else { - uAdjust = (uint32_T)u - bp0; - fbpIndex = uAdjust / bpSpace; - if (fbpIndex < maxIndex) { - bpIndex = (uint8_T)fbpIndex; - *fraction = (uint32_T)(((uint64_T)(uAdjust - bpIndex * bpSpace) << 31) / - bpSpace); - } else { - bpIndex = (uint8_T)(maxIndex - 1U); - *fraction = 2147483648U; - } - } - - return bpIndex; -} - -int16_T intrp1d_s16s32s32u8u32n31l_s(uint8_T bpIndex, uint32_T frac, const - int16_T table[]) -{ - uint32_T offset_0d; - - /* Interpolation 1-D - Interpolation method: 'Linear' - Use last breakpoint for index at or above upper limit: 'off' - Rounding mode: 'simplest' - Overflow mode: 'wrapping' - */ - offset_0d = bpIndex; - return (int16_T)((int16_T)(((int64_T)(table[offset_0d + 1U] - table[offset_0d]) - * frac) >> 31) + table[offset_0d]); -} - -int32_T div_nde_s32_floor(int32_T numerator, int32_T denominator) -{ - return (((numerator < 0) != (denominator < 0)) && (numerator % denominator != - 0) ? -1 : 0) + numerator / denominator; -} - -/* Model step function */ -void BLDC_controller_step(RT_MODEL *const rtM) -{ - P *rtP = ((P *) rtM->defaultParam); - DW *rtDW = ((DW *) rtM->dwork); - ExtU *rtU = (ExtU *) rtM->inputs; - ExtY *rtY = (ExtY *) rtM->outputs; - uint8_T rtb_Sum; - int32_T rtb_Abs1; - uint8_T rtb_BitwiseOperator; - int32_T rtb_Sum2; - int16_T rtb_Abs2; - int16_T rtb_Sum1_a; - int32_T rtb_Abs5; - int8_T rtAction; - int8_T rtb_Sum2_h; - uint32_T rtb_r_phaAdvDC_XA_o2; - int32_T rtb_Switch1_idx_1; - - /* Outputs for Atomic SubSystem: '/BLDC_controller' */ - /* Sum: '/Sum' incorporates: - * Gain: '/g_Ha' - * Gain: '/g_Hb' - * Inport: '/b_hallA ' - * Inport: '/b_hallB' - * Inport: '/b_hallC' - */ - rtb_Sum = (uint8_T)((uint32_T)(uint8_T)((uint32_T)(uint8_T)(rtU->b_hallA << 2) - + (uint8_T)(rtU->b_hallB << 1)) + rtU->b_hallC); - - /* Abs: '/Abs1' incorporates: - * Inport: '/r_DC' - */ - if (rtU->r_DC < 0) { - rtb_Abs1 = -rtU->r_DC; - } else { - rtb_Abs1 = rtU->r_DC; - } - - /* End of Abs: '/Abs1' */ - - /* S-Function (sfix_bitop): '/Bitwise Operator' incorporates: - * Inport: '/b_hallA ' - * Inport: '/b_hallB' - * Inport: '/b_hallC' - * UnitDelay: '/UnitDelay' - * UnitDelay: '/UnitDelay1' - * UnitDelay: '/UnitDelay2' - */ - rtb_BitwiseOperator = (uint8_T)(rtU->b_hallA ^ rtU->b_hallB ^ rtU->b_hallC ^ - rtDW->UnitDelay_DSTATE ^ rtDW->UnitDelay1_DSTATE_i ^ - rtDW->UnitDelay2_DSTATE_h); - - /* If: '/If1' incorporates: - * Constant: '/Constant6' - * Constant: '/Constant1' - * Constant: '/Constant23' - * If: '/If2' - * Inport: '/z_counterRawPrev' - * RelationalOperator: '/Relational Operator1' - * Sum: '/Sum1' - * Switch: '/Switch1' - * Switch: '/Switch2' - * UnitDelay: '/UnitDelay1' - * UnitDelay: '/UnitDelay1' - */ - if (rtb_BitwiseOperator != 0) { - /* Outputs for IfAction SubSystem: '/F01_03_Direction_Detection' incorporates: - * ActionPort: '/Action Port' - */ - /* UnitDelay: '/UnitDelay1' */ - rtDW->UnitDelay1 = rtDW->Switch2; - - /* Sum: '/Sum2' incorporates: - * Constant: '/vec_hallToPos' - * Selector: '/Selector' - * UnitDelay: '/UnitDelay2' - */ - rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[rtb_Sum] - - rtDW->UnitDelay2_DSTATE_i); - - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant20' - * Constant: '/Constant23' - * Constant: '/Constant24' - * Constant: '/Constant8' - * Logic: '/Logical Operator3' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator6' - */ - if ((rtb_Sum2_h == 1) || (rtb_Sum2_h == -5)) { - rtDW->Switch2 = 1; - } else { - rtDW->Switch2 = -1; - } - - /* End of Switch: '/Switch2' */ - - /* Update for UnitDelay: '/UnitDelay2' incorporates: - * Constant: '/vec_hallToPos' - * Selector: '/Selector' - */ - rtDW->UnitDelay2_DSTATE_i = rtConstP.vec_hallToPos_Value[rtb_Sum]; - - /* End of Outputs for SubSystem: '/F01_03_Direction_Detection' */ - rtb_Abs2 = 1; - - /* Outputs for IfAction SubSystem: '/Counter_Hold_and_Error_Calculation' incorporates: - * ActionPort: '/Action Port' - */ - rtDW->z_counterRawPrev = rtDW->UnitDelay1_DSTATE_c; - - /* Sum: '/Sum4' incorporates: - * Constant: '/Constant6' - * Constant: '/Constant23' - * Inport: '/z_counterRawPrev' - * Sum: '/Sum1' - * UnitDelay: '/UnitDelay1' - * UnitDelay: '/z_counter2' - */ - rtDW->Sum4 = (int16_T)(rtDW->z_counterRawPrev - rtDW->z_counter2_DSTATE); - - /* Update for UnitDelay: '/z_counter2' */ - rtDW->z_counter2_DSTATE = rtDW->z_counterRawPrev; - - /* End of Outputs for SubSystem: '/Counter_Hold_and_Error_Calculation' */ - } else { - if (rtDW->UnitDelay1_DSTATE < rtP->z_maxCntRst) { - /* Switch: '/Switch2' incorporates: - * UnitDelay: '/UnitDelay1' - */ - rtb_Abs2 = rtDW->UnitDelay1_DSTATE; - } else { - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant1' - */ - rtb_Abs2 = rtP->z_maxCntRst; - } - - rtb_Abs2++; - } - - /* End of If: '/If1' */ - - /* Sum: '/Sum1' */ - rtb_Sum1_a = rtb_Abs2; - - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant1' - * Constant: '/cf_spdCoef' - * Constant: '/z_maxCntRst' - * Logic: '/Logical Operator1' - * Product: '/Divide4' - * RelationalOperator: '/Relational Operator2' - * RelationalOperator: '/Relational Operator5' - * Sum: '/Sum1' - */ - if ((rtb_Abs2 > rtP->z_maxCntRst) || (rtDW->Switch2 != rtDW->UnitDelay1)) { - rtb_Sum2 = 0; - } else { - rtb_Sum2 = rtP->cf_speedCoef * rtDW->Switch2 / rtDW->z_counterRawPrev; - } - - /* End of Switch: '/Switch1' */ - - /* Product: '/Divide2' incorporates: - * Constant: '/Constant2' - * Constant: '/Constant3' - * Constant: '/cf_speedFilt' - * Product: '/Divide1' - * Product: '/Divide3' - * Sum: '/Sum1' - * Sum: '/Sum2' - * UnitDelay: '/UnitDelay2' - */ - rtb_Sum2 = ((100 - rtP->cf_speedFilt) * rtDW->UnitDelay2_DSTATE + rtb_Sum2 * - rtP->cf_speedFilt) / 100; - - /* Abs: '/Abs5' */ - if (rtb_Sum2 < 0) { - rtb_Abs5 = -rtb_Sum2; - } else { - rtb_Abs5 = rtb_Sum2; - } - - /* End of Abs: '/Abs5' */ - - /* Relay: '/n_commDeacv' */ - if (rtb_Abs5 >= rtP->n_commDeacvHi) { - rtDW->n_commDeacv_Mode = true; - } else { - if (rtb_Abs5 <= rtP->n_commAcvLo) { - rtDW->n_commDeacv_Mode = false; - } - } - - /* Abs: '/Abs2' */ - if (rtDW->Sum4 < 0) { - rtb_Abs2 = (int16_T)-rtDW->Sum4; - } else { - rtb_Abs2 = rtDW->Sum4; - } - - /* End of Abs: '/Abs2' */ - - /* Relay: '/dz_counter' */ - if (rtb_Abs2 >= rtP->dz_counterHi) { - rtDW->dz_counter_Mode = true; - } else { - if (rtb_Abs2 <= rtP->dz_counterLo) { - rtDW->dz_counter_Mode = false; - } - } - - /* If: '/If1' incorporates: - * Constant: '/z_ctrlTypSel1' - */ - rtb_Sum2_h = rtDW->If1_ActiveSubsystem; - rtAction = -1; - if (rtP->z_ctrlTypSel != 0) { - rtAction = 0; - } - - rtDW->If1_ActiveSubsystem = rtAction; - if ((rtb_Sum2_h != rtAction) && (rtb_Sum2_h == 0)) { - /* Disable for Outport: '/a_elecAngleAdv' */ - rtDW->Switch_PhaAdv = 0; - - /* Disable for Outport: '/a_elecAngle' incorporates: - * Outport: '/a_elecAngle' - */ - rtY->a_elecAngle = 0; - } - - if (rtAction == 0) { - /* Outputs for IfAction SubSystem: '/F02_Electrical_Angle_Calculation' incorporates: - * ActionPort: '/Action Port' - */ - /* Switch: '/Switch3' incorporates: - * Constant: '/vec_hallToPos' - * Constant: '/Constant16' - * Gain: '/g_Ha' - * Gain: '/g_Hb' - * Inport: '/b_hallA ' - * Inport: '/b_hallB' - * Inport: '/b_hallC' - * RelationalOperator: '/Relational Operator7' - * Selector: '/Selector' - * Sum: '/Sum' - * Sum: '/Sum1' - */ - if (rtDW->Switch2 == 1) { - rtb_Sum2_h = rtConstP.vec_hallToPos_Value[rtb_Sum]; - } else { - rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[(uint8_T)((uint32_T) - (uint8_T)((uint32_T)(uint8_T)(rtU->b_hallA << 2) + (uint8_T) - (rtU->b_hallB << 1)) + rtU->b_hallC)] + 1); - } - - /* End of Switch: '/Switch3' */ - - /* Outport: '/a_elecAngle' incorporates: - * Constant: '/a_elecAngle1' - * Product: '/Divide4' - * Product: '/Divide5' - * Product: '/Product6' - * Sum: '/Sum2' - */ - rtY->a_elecAngle = 60 * rtb_Sum1_a / rtDW->z_counterRawPrev * rtDW->Switch2 - + rtb_Sum2_h * 60; - - /* Switch: '/Switch_PhaAdv' incorporates: - * Constant: '/a_elecPeriod1' - * Constant: '/n_motPhaAdvEna' - * Logic: '/Logical Operator2' - * Outport: '/a_elecAngle' - * RelationalOperator: '/Relational Operator4' - */ - if (rtP->b_phaAdvEna && (rtb_Abs5 > rtP->n_motPhaAdvEna)) { - /* PreLookup: '/r_phaAdvDC_XA' */ - rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtb_Abs1, - rtP->r_phaAdvDC_XA[0], (uint32_T)rtP->r_phaAdvDC_XA[1] - - rtP->r_phaAdvDC_XA[0], 10U, &rtb_r_phaAdvDC_XA_o2); - - /* Interpolation_n-D: '/a_phaAdv_M2' */ - rtb_Abs2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - rtb_r_phaAdvDC_XA_o2, rtP->a_phaAdv_M1); - - /* Sum: '/Sum3' incorporates: - * Outport: '/a_elecAngle' - * Product: '/Product2' - */ - rtb_Abs5 = (int16_T)(rtb_Abs2 * rtDW->Switch2) + rtY->a_elecAngle; - - /* Math: '/Math Function' */ - rtDW->Switch_PhaAdv = rtb_Abs5 - div_nde_s32_floor(rtb_Abs5, 360) * 360; - } else { - rtDW->Switch_PhaAdv = rtY->a_elecAngle; - } - - /* End of Switch: '/Switch_PhaAdv' */ - /* End of Outputs for SubSystem: '/F02_Electrical_Angle_Calculation' */ - } - - /* End of If: '/If1' */ - - /* SwitchCase: '/Switch Case' incorporates: - * Constant: '/z_ctrlTypSel1' - */ - switch (rtP->z_ctrlTypSel) { - case 1: - /* Outputs for IfAction SubSystem: '/F03_01_Pure_Trapezoidal_Method' incorporates: - * ActionPort: '/Action Port' - */ - /* PreLookup: '/a_trapElecAngle_XA' */ - rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtDW->Switch_PhaAdv, 0, 60U, - 6U, &rtb_r_phaAdvDC_XA_o2); - - /* Interpolation_n-D: '/r_trapPhaA_M1' */ - rtDW->Merge = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - rtb_r_phaAdvDC_XA_o2, rtConstP.r_trapPhaA_M1_Table); - - /* Interpolation_n-D: '/r_trapPhaB_M1' */ - rtDW->Merge1 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - rtb_r_phaAdvDC_XA_o2, rtConstP.r_trapPhaB_M1_Table); - - /* Interpolation_n-D: '/r_trapPhaC_M1' */ - rtDW->Merge2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - rtb_r_phaAdvDC_XA_o2, rtConstP.r_trapPhaC_M1_Table); - - /* End of Outputs for SubSystem: '/F03_01_Pure_Trapezoidal_Method' */ - break; - - case 2: - /* Outputs for IfAction SubSystem: '/F03_02_Sinusoidal_Method' incorporates: - * ActionPort: '/Action Port' - */ - /* PreLookup: '/a_sinElecAngle_XA' */ - rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtDW->Switch_PhaAdv, 0, 10U, - 36U, &rtb_r_phaAdvDC_XA_o2); - - /* Interpolation_n-D: '/r_sinPhaA_M1' */ - rtDW->Merge = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - rtb_r_phaAdvDC_XA_o2, rtConstP.r_sinPhaA_M1_Table); - - /* Interpolation_n-D: '/r_sinPhaB_M1' */ - rtDW->Merge1 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - rtb_r_phaAdvDC_XA_o2, rtConstP.r_sinPhaB_M1_Table); - - /* Interpolation_n-D: '/r_sinPhaC_M1' */ - rtDW->Merge2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - rtb_r_phaAdvDC_XA_o2, rtConstP.r_sinPhaC_M1_Table); - - /* End of Outputs for SubSystem: '/F03_02_Sinusoidal_Method' */ - break; - - case 3: - /* Outputs for IfAction SubSystem: '/F03_03_Sinusoidal3rd_Method' incorporates: - * ActionPort: '/Action Port' - */ - /* PreLookup: '/a_sinElecAngle_XA' */ - rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtDW->Switch_PhaAdv, 0, 10U, - 36U, &rtb_r_phaAdvDC_XA_o2); - - /* Interpolation_n-D: '/r_sin3PhaA_M1' */ - rtDW->Merge = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - rtb_r_phaAdvDC_XA_o2, rtConstP.r_sin3PhaA_M1_Table); - - /* Interpolation_n-D: '/r_sin3PhaB_M1' */ - rtDW->Merge1 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - rtb_r_phaAdvDC_XA_o2, rtConstP.r_sin3PhaB_M1_Table); - - /* Interpolation_n-D: '/r_sin3PhaC_M1' */ - rtDW->Merge2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - rtb_r_phaAdvDC_XA_o2, rtConstP.r_sin3PhaC_M1_Table); - - /* End of Outputs for SubSystem: '/F03_03_Sinusoidal3rd_Method' */ - break; - } - - /* End of SwitchCase: '/Switch Case' */ - - /* Signum: '/Sign' */ - if (rtDW->Switch2 < 0) { - rtb_Sum2_h = -1; - } else { - rtb_Sum2_h = (int8_T)(rtDW->Switch2 > 0); - } - - /* End of Signum: '/Sign' */ - - /* Signum: '/Sign1' incorporates: - * Inport: '/r_DC' - */ - if (rtU->r_DC < 0) { - rtb_Abs5 = -1; - } else { - rtb_Abs5 = (rtU->r_DC > 0); - } - - /* End of Signum: '/Sign1' */ - - /* Switch: '/Switch1' incorporates: - * Constant: '/vec_hallToPos' - * Constant: '/CTRL_COMM' - * Constant: '/r_commDCDeacv' - * Constant: '/z_ctrlTypSel1' - * Inport: '/r_DC' - * Logic: '/Logical Operator2' - * LookupNDDirect: '/z_commutMap_M1' - * Product: '/Divide2' - * Product: '/Divide4' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator3' - * RelationalOperator: '/Relational Operator4' - * Relay: '/dz_counter' - * Relay: '/n_commDeacv' - * Selector: '/Selector' - * - * About '/z_commutMap_M1': - * 2-dimensional Direct Look-Up returning a Column - */ - if ((rtP->z_ctrlTypSel != 0) && (rtb_Abs1 > rtP->r_commDCDeacv) && (rtb_Sum2_h - == rtb_Abs5) && rtDW->n_commDeacv_Mode && (!rtDW->dz_counter_Mode)) { - rtb_Abs5 = rtU->r_DC * rtDW->Merge; - rtb_Switch1_idx_1 = rtU->r_DC * rtDW->Merge1; - rtb_Abs1 = rtU->r_DC * rtDW->Merge2; - } else { - if (rtConstP.vec_hallToPos_Value[rtb_Sum] > 5) { - /* LookupNDDirect: '/z_commutMap_M1' - * - * About '/z_commutMap_M1': - * 2-dimensional Direct Look-Up returning a Column - */ - rtb_Sum2_h = 5; - } else if (rtConstP.vec_hallToPos_Value[rtb_Sum] < 0) { - /* LookupNDDirect: '/z_commutMap_M1' - * - * About '/z_commutMap_M1': - * 2-dimensional Direct Look-Up returning a Column - */ - rtb_Sum2_h = 0; - } else { - /* LookupNDDirect: '/z_commutMap_M1' incorporates: - * Constant: '/vec_hallToPos' - * Selector: '/Selector' - * - * About '/z_commutMap_M1': - * 2-dimensional Direct Look-Up returning a Column - */ - rtb_Sum2_h = rtConstP.vec_hallToPos_Value[rtb_Sum]; - } - - /* LookupNDDirect: '/z_commutMap_M1' incorporates: - * Constant: '/vec_hallToPos' - * Selector: '/Selector' - * - * About '/z_commutMap_M1': - * 2-dimensional Direct Look-Up returning a Column - */ - rtb_Abs1 = rtb_Sum2_h * 3; - rtb_Abs5 = rtU->r_DC * rtConstP.z_commutMap_M1_table[rtb_Abs1]; - rtb_Switch1_idx_1 = rtConstP.z_commutMap_M1_table[1 + rtb_Abs1] * rtU->r_DC; - rtb_Abs1 = rtConstP.z_commutMap_M1_table[2 + rtb_Abs1] * rtU->r_DC; - } - - /* End of Switch: '/Switch1' */ - - /* Outport: '/DC_phaA' incorporates: - * Constant: '/Constant1' - * Product: '/Divide1' - */ - rtY->DC_phaA = rtb_Abs5 / 1000; - - /* Outport: '/DC_phaB' incorporates: - * Constant: '/Constant1' - * Product: '/Divide1' - */ - rtY->DC_phaB = rtb_Switch1_idx_1 / 1000; - - /* Update for UnitDelay: '/UnitDelay' incorporates: - * Inport: '/b_hallA ' - */ - rtDW->UnitDelay_DSTATE = rtU->b_hallA; - - /* Update for UnitDelay: '/UnitDelay1' incorporates: - * Inport: '/b_hallB' - */ - rtDW->UnitDelay1_DSTATE_i = rtU->b_hallB; - - /* Update for UnitDelay: '/UnitDelay2' incorporates: - * Inport: '/b_hallC' - */ - rtDW->UnitDelay2_DSTATE_h = rtU->b_hallC; - - /* Update for UnitDelay: '/UnitDelay1' */ - rtDW->UnitDelay1_DSTATE = rtb_Sum1_a; - - /* Update for UnitDelay: '/UnitDelay1' */ - rtDW->UnitDelay1_DSTATE_c = rtb_Sum1_a; - - /* Update for UnitDelay: '/UnitDelay2' */ - rtDW->UnitDelay2_DSTATE = rtb_Sum2; - - /* Outport: '/DC_phaC' incorporates: - * Constant: '/Constant1' - * Product: '/Divide1' - */ - rtY->DC_phaC = rtb_Abs1 / 1000; - - /* End of Outputs for SubSystem: '/BLDC_controller' */ - - /* Outport: '/n_mot' */ - rtY->n_mot = rtb_Sum2; -} - -/* Model initialize function */ -void BLDC_controller_initialize(RT_MODEL *const rtM) -{ - P *rtP = ((P *) rtM->defaultParam); - DW *rtDW = ((DW *) rtM->dwork); - - /* Start for Atomic SubSystem: '/BLDC_controller' */ - /* Start for If: '/If1' */ - rtDW->If1_ActiveSubsystem = -1; - - /* End of Start for SubSystem: '/BLDC_controller' */ - - /* SystemInitialize for Atomic SubSystem: '/BLDC_controller' */ - /* InitializeConditions for UnitDelay: '/UnitDelay1' */ - rtDW->UnitDelay1_DSTATE = rtP->z_maxCntRst; - - /* SystemInitialize for IfAction SubSystem: '/Counter_Hold_and_Error_Calculation' */ - /* InitializeConditions for UnitDelay: '/z_counter2' */ - rtDW->z_counter2_DSTATE = rtP->z_maxCntRst; - - /* SystemInitialize for Outport: '/z_counter' */ - rtDW->z_counterRawPrev = rtP->z_maxCntRst; - - /* End of SystemInitialize for SubSystem: '/Counter_Hold_and_Error_Calculation' */ - /* End of SystemInitialize for SubSystem: '/BLDC_controller' */ -} - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.h b/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.h deleted file mode 100644 index bb52673..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.h +++ /dev/null @@ -1,256 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: BLDC_controller.h - * - * Code generated for Simulink model 'BLDC_controller'. - * - * Model version : 1.883 - * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Tue Jun 11 21:14:57 2019 - * - * Target selection: ert.tlc - * Embedded hardware selection: ARM Compatible->ARM Cortex - * Emulation hardware selection: - * Differs from embedded hardware (MATLAB Host) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#ifndef RTW_HEADER_BLDC_controller_h_ -#define RTW_HEADER_BLDC_controller_h_ -#include "rtwtypes.h" -#ifndef BLDC_controller_COMMON_INCLUDES_ -# define BLDC_controller_COMMON_INCLUDES_ -#include "rtwtypes.h" -#endif /* BLDC_controller_COMMON_INCLUDES_ */ - -/* Macros for accessing real-time model data structure */ - -/* Forward declaration for rtModel */ -typedef struct tag_RTM RT_MODEL; - -/* Block signals and states (auto storage) for system '' */ -typedef struct { - int32_T Switch_PhaAdv; /* '/Switch_PhaAdv' */ - int32_T UnitDelay2_DSTATE; /* '/UnitDelay2' */ - int16_T Merge; /* '/Merge' */ - int16_T Merge1; /* '/Merge1' */ - int16_T Merge2; /* '/Merge2' */ - int16_T z_counterRawPrev; /* '/z_counterRawPrev' */ - int16_T Sum4; /* '/Sum4' */ - int16_T UnitDelay1_DSTATE; /* '/UnitDelay1' */ - int16_T UnitDelay1_DSTATE_c; /* '/UnitDelay1' */ - int16_T z_counter2_DSTATE; /* '/z_counter2' */ - int8_T UnitDelay1; /* '/UnitDelay1' */ - int8_T Switch2; /* '/Switch2' */ - int8_T UnitDelay2_DSTATE_i; /* '/UnitDelay2' */ - int8_T If1_ActiveSubsystem; /* '/If1' */ - uint8_T UnitDelay_DSTATE; /* '/UnitDelay' */ - uint8_T UnitDelay1_DSTATE_i; /* '/UnitDelay1' */ - uint8_T UnitDelay2_DSTATE_h; /* '/UnitDelay2' */ - boolean_T n_commDeacv_Mode; /* '/n_commDeacv' */ - boolean_T dz_counter_Mode; /* '/dz_counter' */ -} DW; - -/* Constant parameters (auto storage) */ -typedef struct { - /* Computed Parameter: r_trapPhaA_M1_Table - * Referenced by: '/r_trapPhaA_M1' - */ - int16_T r_trapPhaA_M1_Table[7]; - - /* Computed Parameter: r_trapPhaB_M1_Table - * Referenced by: '/r_trapPhaB_M1' - */ - int16_T r_trapPhaB_M1_Table[7]; - - /* Computed Parameter: r_trapPhaC_M1_Table - * Referenced by: '/r_trapPhaC_M1' - */ - int16_T r_trapPhaC_M1_Table[7]; - - /* Computed Parameter: r_sinPhaA_M1_Table - * Referenced by: '/r_sinPhaA_M1' - */ - int16_T r_sinPhaA_M1_Table[37]; - - /* Computed Parameter: r_sinPhaB_M1_Table - * Referenced by: '/r_sinPhaB_M1' - */ - int16_T r_sinPhaB_M1_Table[37]; - - /* Computed Parameter: r_sinPhaC_M1_Table - * Referenced by: '/r_sinPhaC_M1' - */ - int16_T r_sinPhaC_M1_Table[37]; - - /* Computed Parameter: r_sin3PhaA_M1_Table - * Referenced by: '/r_sin3PhaA_M1' - */ - int16_T r_sin3PhaA_M1_Table[37]; - - /* Computed Parameter: r_sin3PhaB_M1_Table - * Referenced by: '/r_sin3PhaB_M1' - */ - int16_T r_sin3PhaB_M1_Table[37]; - - /* Computed Parameter: r_sin3PhaC_M1_Table - * Referenced by: '/r_sin3PhaC_M1' - */ - int16_T r_sin3PhaC_M1_Table[37]; - - /* Computed Parameter: z_commutMap_M1_table - * Referenced by: '/z_commutMap_M1' - */ - int16_T z_commutMap_M1_table[18]; - - /* Computed Parameter: vec_hallToPos_Value - * Referenced by: '/vec_hallToPos' - */ - int8_T vec_hallToPos_Value[8]; -} ConstP; - -/* External inputs (root inport signals with auto storage) */ -typedef struct { - uint8_T b_hallA; /* '/b_hallA ' */ - uint8_T b_hallB; /* '/b_hallB' */ - uint8_T b_hallC; /* '/b_hallC' */ - int32_T r_DC; /* '/r_DC' */ -} ExtU; - -/* External outputs (root outports fed by signals with auto storage) */ -typedef struct { - int32_T DC_phaA; /* '/DC_phaA' */ - int32_T DC_phaB; /* '/DC_phaB' */ - int32_T DC_phaC; /* '/DC_phaC' */ - int32_T n_mot; /* '/n_mot' */ - int32_T a_elecAngle; /* '/a_elecAngle' */ -} ExtY; - -/* Parameters (auto storage) */ -struct P_ { - int32_T cf_speedCoef; /* Variable: cf_speedCoef - * Referenced by: '/cf_spdCoef' - */ - int32_T cf_speedFilt; /* Variable: cf_speedFilt - * Referenced by: '/cf_speedFilt' - */ - int32_T n_commAcvLo; /* Variable: n_commAcvLo - * Referenced by: '/n_commDeacv' - */ - int32_T n_commDeacvHi; /* Variable: n_commDeacvHi - * Referenced by: '/n_commDeacv' - */ - int32_T n_motPhaAdvEna; /* Variable: n_motPhaAdvEna - * Referenced by: '/n_motPhaAdvEna' - */ - int32_T r_commDCDeacv; /* Variable: r_commDCDeacv - * Referenced by: '/r_commDCDeacv' - */ - int32_T r_phaAdvDC_XA[11]; /* Variable: r_phaAdvDC_XA - * Referenced by: '/r_phaAdvDC_XA' - */ - int16_T a_phaAdv_M1[11]; /* Variable: a_phaAdv_M1 - * Referenced by: '/a_phaAdv_M2' - */ - int16_T dz_counterHi; /* Variable: dz_counterHi - * Referenced by: '/dz_counter' - */ - int16_T dz_counterLo; /* Variable: dz_counterLo - * Referenced by: '/dz_counter' - */ - int16_T z_maxCntRst; /* Variable: z_maxCntRst - * Referenced by: - * '/z_counter' - * '/z_counter2' - * '/z_maxCntRst' - * '/Constant1' - * '/UnitDelay1' - */ - uint8_T z_ctrlTypSel; /* Variable: z_ctrlTypSel - * Referenced by: '/z_ctrlTypSel1' - */ - boolean_T b_phaAdvEna; /* Variable: b_phaAdvEna - * Referenced by: '/a_elecPeriod1' - */ -}; - -/* Parameters (auto storage) */ -typedef struct P_ P; - -/* Real-time Model Data Structure */ -struct tag_RTM { - P *defaultParam; - ExtU *inputs; - ExtY *outputs; - DW *dwork; -}; - -/* Constant parameters (auto storage) */ -extern const ConstP rtConstP; - -/* Model entry point functions */ -extern void BLDC_controller_initialize(RT_MODEL *const rtM); -extern void BLDC_controller_step(RT_MODEL *const rtM); - -/*- - * These blocks were eliminated from the model due to optimizations: - * - * Block '/Scope2' : Unused code path elimination - * Block '/Scope' : Unused code path elimination - */ - -/*- - * The generated code includes comments that allow you to trace directly - * back to the appropriate location in the model. The basic format - * is /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('BLDCmotorControl_R2017b/BLDC_controller') - opens subsystem BLDCmotorControl_R2017b/BLDC_controller - * hilite_system('BLDCmotorControl_R2017b/BLDC_controller/Kp') - opens and selects block Kp - * - * Here is the system hierarchy for this model - * - * '' : 'BLDCmotorControl_R2017b' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log1' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log2' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log3' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log6' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F02_Electrical_Angle_Calculation' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F04_Control_Type_Management' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_01_Edge_Detector' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_02_Position_Calculation' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_03_Direction_Detection' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation/Counter_Hold_and_Error_Calculation' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation/Motor_Speed_Calculation' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation/rst_DelayLim' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/F03_01_Pure_Trapezoidal_Method' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/F03_02_Sinusoidal_Method' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/F03_03_Sinusoidal3rd_Method' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/signal_log1' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/signal_log2' - * '' : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/signal_log6' - */ -#endif /* RTW_HEADER_BLDC_controller_h_ */ - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.mk b/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.mk deleted file mode 100644 index 542deac..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.mk +++ /dev/null @@ -1,441 +0,0 @@ -########################################################################### -## Makefile generated for Simulink model 'BLDC_controller'. -## -## Makefile : BLDC_controller.mk -## Generated on : Wed Jun 05 20:33:43 2019 -## MATLAB Coder version: 3.4 (R2017b) -## -## Build Info: -## -## Final product: $(RELATIVE_PATH_TO_ANCHOR)/BLDC_controller.exe -## Product type : executable -## Build type : Top-Level Standalone Executable -## -########################################################################### - -########################################################################### -## MACROS -########################################################################### - -# Macro Descriptions: -# PRODUCT_NAME Name of the system to build -# MAKEFILE Name of this makefile -# COMPUTER Computer type. See the MATLAB "computer" command. -# MODELREF_LINK_RSPFILE Include paths for the model reference build -# GEN_LINKER_RESPONSE Command to generate a linker response file -# CMD_FILE Command file - -PRODUCT_NAME = BLDC_controller -MAKEFILE = BLDC_controller.mk -COMPUTER = PCWIN64 -MATLAB_ROOT = C:/PROGRA~1/MATLAB/R2017b -MATLAB_BIN = C:/PROGRA~1/MATLAB/R2017b/bin -MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64 -MASTER_ANCHOR_DIR = -START_DIR = D:/git/hoverboard-firmware-hack/01_Matlab -ARCH = win64 -SOLVER = -SOLVER_OBJ = -CLASSIC_INTERFACE = 0 -TGT_FCN_LIB = None -MODEL_HAS_DYNAMICALLY_LOADED_SFCNS = 0 -MODELREF_LINK_RSPFILE_NAME = BLDC_controller_ref.rsp -RELATIVE_PATH_TO_ANCHOR = .. -MODELREF_LINK_RSPFILE = BLDC_controller_ref.rsp -GEN_LINKER_RESPONSE = $(MATLAB_ARCH_BIN)/createResponseFile.exe 1 -CMD_FILE = $(PRODUCT_NAME).rsp -C_STANDARD_OPTS = -ansi -pedantic -Wno-long-long -fwrapv -CPP_STANDARD_OPTS = -std=c++98 -pedantic -Wno-long-long -fwrapv - -########################################################################### -## TOOLCHAIN SPECIFICATIONS -########################################################################### - -# Toolchain Name: MinGW64 | gmake (64-bit Windows) -# Supported Version(s): 5.x -# ToolchainInfo Version: R2017b -# Specification Revision: 1.0 -# -#------------------------------------------- -# Macros assumed to be defined elsewhere -#------------------------------------------- - -# C_STANDARD_OPTS -# CPP_STANDARD_OPTS -# MINGW_ROOT -# MINGW_C_STANDARD_OPTS - -#----------- -# MACROS -#----------- - -WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -WARN_FLAGS_MAX = $(WARN_FLAGS) -Wcast-qual -Wshadow -CPP_WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wpointer-arith -Wcast-align -CPP_WARN_FLAGS_MAX = $(CPP_WARN_FLAGS) -Wcast-qual -Wshadow -MEX_OPTS_FILE = $(MATLAB_ROOT)/bin/win64/mexopts/mingw64.xml -MEX_CPP_OPTS_FILE = $(MATLAB_ROOT)/bin/win64/mexopts/mingw64_g++.xml -MW_EXTERNLIB_DIR = $(MATLAB_ROOT)/extern/lib/win64/mingw64 -SHELL = %SystemRoot%/system32/cmd.exe - -TOOLCHAIN_SRCS = -TOOLCHAIN_INCS = -TOOLCHAIN_LIBS = -lws2_32 - -#------------------------ -# BUILD TOOL COMMANDS -#------------------------ - -# C Compiler: GNU C Compiler -CC_PATH = $(MINGW_ROOT) -CC = "$(CC_PATH)/gcc" - -# Linker: GNU Linker -LD_PATH = $(MINGW_ROOT) -LD = "$(LD_PATH)/gcc" - -# C++ Compiler: GNU C++ Compiler -CPP_PATH = $(MINGW_ROOT) -CPP = "$(CPP_PATH)/g++" - -# C++ Linker: GNU C++ Linker -CPP_LD_PATH = $(MINGW_ROOT) -CPP_LD = "$(CPP_LD_PATH)/g++" - -# Archiver: GNU Archiver -AR_PATH = $(MINGW_ROOT) -AR = "$(AR_PATH)/ar" - -# MEX Tool: MEX Tool -MEX_PATH = $(MATLAB_BIN)/win64 -MEX = "$(MEX_PATH)/mex" - -# Download: Download -DOWNLOAD = - -# Execute: Execute -EXECUTE = $(PRODUCT) - -# Builder: GMAKE Utility -MAKE_PATH = %MATLAB%/bin/win64 -MAKE = "$(MAKE_PATH)/gmake" - - -#------------------------- -# Directives/Utilities -#------------------------- - -CDEBUG = -g -C_OUTPUT_FLAG = -o -LDDEBUG = -g -OUTPUT_FLAG = -o -CPPDEBUG = -g -CPP_OUTPUT_FLAG = -o -CPPLDDEBUG = -g -OUTPUT_FLAG = -o -ARDEBUG = -STATICLIB_OUTPUT_FLAG = -MEX_DEBUG = -g -RM = @del -ECHO = @echo -MV = @move -RUN = - -#-------------------------------------- -# "Faster Runs" Build Configuration -#-------------------------------------- - -ARFLAGS = ruvs -CFLAGS = -c $(MINGW_C_STANDARD_OPTS) \ - -O3 -fno-loop-optimize -fno-aggressive-loop-optimizations -CPPFLAGS = -c $(CPP_STANDARD_OPTS) \ - -O3 -fno-loop-optimize -fno-aggressive-loop-optimizations -CPP_LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -CPP_SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT))$(STATICLIB_EXT) -DOWNLOAD_FLAGS = -EXECUTE_FLAGS = -LDFLAGS = -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -static -MEX_CPPFLAGS = -MATLAB_ARCH=$(ARCH) $(INCLUDES) \ - \ - COPTIMFLAGS="$(MINGW_C_STANDARD_OPTS) \ - -O3 -fno-loop-optimize -fno-aggressive-loop-optimizations \ - $(DEFINES)" \ - \ - -silent -MEX_CPPLDFLAGS = LDFLAGS=='$$LDFLAGS' -MEX_CFLAGS = -MATLAB_ARCH=$(ARCH) $(INCLUDES) \ - \ - COPTIMFLAGS="$(MINGW_C_STANDARD_OPTS) \ - -O3 -fno-loop-optimize -fno-aggressive-loop-optimizations \ - $(DEFINES)" \ - \ - -silent -MEX_LDFLAGS = LDFLAGS=='$$LDFLAGS' -MAKE_FLAGS = -f $(MAKEFILE) -SHAREDLIB_LDFLAGS = -shared -Wl,-rpath,"$(MATLAB_ARCH_BIN)",-L"$(MATLAB_ARCH_BIN)" -Wl,--no-undefined \ - -Wl,--out-implib,$(basename $(PRODUCT))$(STATICLIB_EXT) - -#-------------------- -# File extensions -#-------------------- - -H_EXT = .h -OBJ_EXT = .obj -C_EXT = .c -EXE_EXT = .exe -SHAREDLIB_EXT = .dll -HPP_EXT = .hpp -OBJ_EXT = .obj -CPP_EXT = .cpp -EXE_EXT = .exe -SHAREDLIB_EXT = .dll -STATICLIB_EXT = .lib -MEX_EXT = .mexw64 -MAKE_EXT = .mk - - -########################################################################### -## OUTPUT INFO -########################################################################### - -PRODUCT = $(RELATIVE_PATH_TO_ANCHOR)/BLDC_controller.exe -PRODUCT_TYPE = "executable" -BUILD_TYPE = "Top-Level Standalone Executable" - -########################################################################### -## INCLUDE PATHS -########################################################################### - -INCLUDES_BUILDINFO = -I$(START_DIR) -I$(MATLAB_ROOT)/simulink/include/sf_runtime -I$(START_DIR)/BLDC_controller_ert_rtw -I$(MATLAB_ROOT)/extern/include -I$(MATLAB_ROOT)/simulink/include -I$(MATLAB_ROOT)/rtw/c/src -I$(MATLAB_ROOT)/rtw/c/src/ext_mode/common -I$(MATLAB_ROOT)/rtw/c/ert - -INCLUDES = $(INCLUDES_BUILDINFO) - -########################################################################### -## DEFINES -########################################################################### - -DEFINES_BUILD_ARGS = -DTERMFCN=0 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=1 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DEFINES_IMPLIED = -DTID01EQ=0 -DEFINES_STANDARD = -DMODEL=BLDC_controller -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO - -DEFINES = $(DEFINES_BUILD_ARGS) $(DEFINES_IMPLIED) $(DEFINES_STANDARD) - -########################################################################### -## SOURCE FILES -########################################################################### - -SRCS = $(START_DIR)/BLDC_controller_ert_rtw/BLDC_controller.c $(START_DIR)/BLDC_controller_ert_rtw/BLDC_controller_data.c - -MAIN_SRC = $(START_DIR)/BLDC_controller_ert_rtw/ert_main.c - -ALL_SRCS = $(SRCS) $(MAIN_SRC) - -########################################################################### -## OBJECTS -########################################################################### - -OBJS = BLDC_controller.obj BLDC_controller_data.obj - -MAIN_OBJ = ert_main.obj - -ALL_OBJS = $(OBJS) $(MAIN_OBJ) - -########################################################################### -## PREBUILT OBJECT FILES -########################################################################### - -PREBUILT_OBJS = - -########################################################################### -## LIBRARIES -########################################################################### - -LIBS = - -########################################################################### -## SYSTEM LIBRARIES -########################################################################### - -SYSTEM_LIBS = - -########################################################################### -## ADDITIONAL TOOLCHAIN FLAGS -########################################################################### - -#--------------- -# C Compiler -#--------------- - -CFLAGS_BASIC = $(DEFINES) $(INCLUDES) - -CFLAGS += $(CFLAGS_BASIC) - -#----------------- -# C++ Compiler -#----------------- - -CPPFLAGS_BASIC = $(DEFINES) $(INCLUDES) - -CPPFLAGS += $(CPPFLAGS_BASIC) - -########################################################################### -## INLINED COMMANDS -########################################################################### - - -ifdef SIM_TARGET_BUILD -MINGW_C_STANDARD_OPTS = $(filter-out -ansi, $(C_STANDARD_OPTS)) -else -MINGW_C_STANDARD_OPTS = $(C_STANDARD_OPTS) -endif - - -########################################################################### -## PHONY TARGETS -########################################################################### - -.PHONY : all build buildobj clean info prebuild download execute - - -all : build - @echo "### Successfully generated all binary outputs." - - -build : prebuild $(PRODUCT) - - -buildobj : prebuild $(OBJS) $(PREBUILT_OBJS) - @echo "### Successfully generated all binary outputs." - - -prebuild : - - -download : build - - -execute : download - @echo "### Invoking postbuild tool "Execute" ..." - $(EXECUTE) $(EXECUTE_FLAGS) - @echo "### Done invoking postbuild tool." - - -########################################################################### -## FINAL TARGET -########################################################################### - -#------------------------------------------- -# Create a standalone executable -#------------------------------------------- - -$(PRODUCT) : $(OBJS) $(PREBUILT_OBJS) $(MAIN_OBJ) - $(GEN_LINKER_RESPONSE) $(CMD_FILE) $(OBJS) - @echo "### Creating standalone executable "$(PRODUCT)" ..." - $(LD) $(LDFLAGS) -o $(PRODUCT) @$(CMD_FILE) $(MAIN_OBJ) $(SYSTEM_LIBS) $(TOOLCHAIN_LIBS) - @echo "### Created: $(PRODUCT)" - $(RM) $(CMD_FILE) - - -########################################################################### -## INTERMEDIATE TARGETS -########################################################################### - -#--------------------- -# SOURCE-TO-OBJECT -#--------------------- - -%.obj : %.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : %.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/BLDC_controller_ert_rtw/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(START_DIR)/BLDC_controller_ert_rtw/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/rtw/c/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.c - $(CC) $(CFLAGS) -o "$@" "$<" - - -%.obj : $(MATLAB_ROOT)/simulink/src/%.cpp - $(CPP) $(CPPFLAGS) -o "$@" "$<" - - -########################################################################### -## DEPENDENCIES -########################################################################### - -$(ALL_OBJS) : $(MAKEFILE) rtw_proj.tmw - - -########################################################################### -## MISCELLANEOUS TARGETS -########################################################################### - -info : - @echo "### PRODUCT = $(PRODUCT)" - @echo "### PRODUCT_TYPE = $(PRODUCT_TYPE)" - @echo "### BUILD_TYPE = $(BUILD_TYPE)" - @echo "### INCLUDES = $(INCLUDES)" - @echo "### DEFINES = $(DEFINES)" - @echo "### ALL_SRCS = $(ALL_SRCS)" - @echo "### ALL_OBJS = $(ALL_OBJS)" - @echo "### LIBS = $(LIBS)" - @echo "### MODELREF_LIBS = $(MODELREF_LIBS)" - @echo "### SYSTEM_LIBS = $(SYSTEM_LIBS)" - @echo "### TOOLCHAIN_LIBS = $(TOOLCHAIN_LIBS)" - @echo "### CFLAGS = $(CFLAGS)" - @echo "### LDFLAGS = $(LDFLAGS)" - @echo "### SHAREDLIB_LDFLAGS = $(SHAREDLIB_LDFLAGS)" - @echo "### CPPFLAGS = $(CPPFLAGS)" - @echo "### CPP_LDFLAGS = $(CPP_LDFLAGS)" - @echo "### CPP_SHAREDLIB_LDFLAGS = $(CPP_SHAREDLIB_LDFLAGS)" - @echo "### ARFLAGS = $(ARFLAGS)" - @echo "### MEX_CFLAGS = $(MEX_CFLAGS)" - @echo "### MEX_CPPFLAGS = $(MEX_CPPFLAGS)" - @echo "### MEX_LDFLAGS = $(MEX_LDFLAGS)" - @echo "### MEX_CPPLDFLAGS = $(MEX_CPPLDFLAGS)" - @echo "### DOWNLOAD_FLAGS = $(DOWNLOAD_FLAGS)" - @echo "### EXECUTE_FLAGS = $(EXECUTE_FLAGS)" - @echo "### MAKE_FLAGS = $(MAKE_FLAGS)" - - -clean : - $(ECHO) "### Deleting all derived files..." - $(RM) $(subst /,\,$(PRODUCT)) - $(RM) $(subst /,\,$(ALL_OBJS)) - $(ECHO) "### Deleted all derived files." - - diff --git a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller_data.c b/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller_data.c deleted file mode 100644 index a740573..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller_data.c +++ /dev/null @@ -1,101 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: BLDC_controller_data.c - * - * Code generated for Simulink model 'BLDC_controller'. - * - * Model version : 1.883 - * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Tue Jun 11 21:14:57 2019 - * - * Target selection: ert.tlc - * Embedded hardware selection: ARM Compatible->ARM Cortex - * Emulation hardware selection: - * Differs from embedded hardware (MATLAB Host) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#include "BLDC_controller.h" - -/* Constant parameters (auto storage) */ -const ConstP rtConstP = { - /* Computed Parameter: r_trapPhaA_M1_Table - * Referenced by: '/r_trapPhaA_M1' - */ - { 1000, 1000, 1000, -1000, -1000, -1000, 1000 }, - - /* Computed Parameter: r_trapPhaB_M1_Table - * Referenced by: '/r_trapPhaB_M1' - */ - { -1000, -1000, 1000, 1000, 1000, -1000, -1000 }, - - /* Computed Parameter: r_trapPhaC_M1_Table - * Referenced by: '/r_trapPhaC_M1' - */ - { 1000, -1000, -1000, -1000, 1000, 1000, 1000 }, - - /* Computed Parameter: r_sinPhaA_M1_Table - * Referenced by: '/r_sinPhaA_M1' - */ - { 500, 643, 766, 866, 940, 985, 1000, 985, 940, 866, 766, 643, 500, 342, 174, - 0, -174, -342, -500, -643, -766, -866, -940, -985, -1000, -985, -940, -866, - -766, -643, -500, -342, -174, 0, 174, 342, 500 }, - - /* Computed Parameter: r_sinPhaB_M1_Table - * Referenced by: '/r_sinPhaB_M1' - */ - { -1000, -985, -940, -866, -766, -643, -500, -342, -174, 0, 174, 342, 500, 643, - 766, 866, 940, 985, 1000, 985, 940, 866, 766, 643, 500, 342, 174, 0, -174, - -342, -500, -643, -766, -866, -940, -985, -1000 }, - - /* Computed Parameter: r_sinPhaC_M1_Table - * Referenced by: '/r_sinPhaC_M1' - */ - { 500, 342, 174, 0, -174, -342, -500, -643, -766, -866, -940, -985, -1000, - -985, -940, -866, -766, -643, -500, -342, -174, 0, 174, 342, 500, 643, 766, - 866, 940, 985, 1000, 985, 940, 866, 766, 643, 500 }, - - /* Computed Parameter: r_sin3PhaA_M1_Table - * Referenced by: '/r_sin3PhaA_M1' - */ - { 813, 945, 1000, 996, 962, 926, 912, 926, 962, 996, 1000, 945, 813, 599, 319, - 0, -319, -599, -813, -945, -1000, -996, -962, -926, -912, -926, -962, -996, - -1000, -945, -813, -599, -319, 0, 319, 599, 813 }, - - /* Computed Parameter: r_sin3PhaB_M1_Table - * Referenced by: '/r_sin3PhaB_M1' - */ - { -912, -926, -962, -996, -1000, -945, -813, -599, -319, 0, 319, 599, 813, 945, - 1000, 996, 962, 926, 912, 926, 962, 996, 1000, 945, 813, 599, 319, 0, -319, - -599, -813, -945, -1000, -996, -962, -926, -912 }, - - /* Computed Parameter: r_sin3PhaC_M1_Table - * Referenced by: '/r_sin3PhaC_M1' - */ - { 813, 599, 319, 0, -319, -599, -813, -945, -1000, -996, -962, -926, -912, - -926, -962, -996, -1000, -945, -813, -599, -319, 0, 319, 599, 813, 945, 1000, - 996, 962, 926, 912, 926, 962, 996, 1000, 945, 813 }, - - /* Computed Parameter: z_commutMap_M1_table - * Referenced by: '/z_commutMap_M1' - */ - { 1000, -1000, 0, 1000, 0, -1000, 0, 1000, -1000, -1000, 1000, 0, -1000, 0, - 1000, 0, -1000, 1000 }, - - /* Computed Parameter: vec_hallToPos_Value - * Referenced by: '/vec_hallToPos' - */ - { 0, 5, 3, 4, 1, 0, 2, 0 } -}; - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller_ref.rsp b/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller_ref.rsp deleted file mode 100644 index e69de29..0000000 diff --git a/01_Matlab/BLDC_controller_ert_rtw/buildInfo.mat b/01_Matlab/BLDC_controller_ert_rtw/buildInfo.mat deleted file mode 100644 index 9d57764..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/buildInfo.mat and /dev/null differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/codeInfo.mat b/01_Matlab/BLDC_controller_ert_rtw/codeInfo.mat deleted file mode 100644 index f5baec5..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/codeInfo.mat and /dev/null differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/codedescriptor.dmr b/01_Matlab/BLDC_controller_ert_rtw/codedescriptor.dmr deleted file mode 100644 index df1c910..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/codedescriptor.dmr and /dev/null differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/defines.txt b/01_Matlab/BLDC_controller_ert_rtw/defines.txt deleted file mode 100644 index 7f0b535..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/defines.txt +++ /dev/null @@ -1,13 +0,0 @@ -MODEL=BLDC_controller -NUMST=1 -NCSTATES=0 -HAVESTDIO -TERMFCN=0 -ONESTEPFCN=1 -MAT_FILE=0 -MULTI_INSTANCE_CODE=1 -INTEGER_CODE=0 -MT=0 -CLASSIC_INTERFACE=0 -ALLOCATIONFCN=0 -TID01EQ=0 diff --git a/01_Matlab/BLDC_controller_ert_rtw/ert_main.c b/01_Matlab/BLDC_controller_ert_rtw/ert_main.c deleted file mode 100644 index 53be1bf..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/ert_main.c +++ /dev/null @@ -1,201 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: ert_main.c - * - * Code generated for Simulink model 'BLDC_controller'. - * - * Model version : 1.883 - * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Tue Jun 11 21:14:57 2019 - * - * Target selection: ert.tlc - * Embedded hardware selection: ARM Compatible->ARM Cortex - * Emulation hardware selection: - * Differs from embedded hardware (MATLAB Host) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#include -#include /* This ert_main.c example uses printf/fflush */ -#include "BLDC_controller.h" /* Model's header file */ -#include "rtwtypes.h" - -static RT_MODEL rtM_; -static RT_MODEL *const rtMPtr = &rtM_; /* Real-time model */ -static P rtP = { - /* Variable: cf_speedCoef - * Referenced by: '/cf_spdCoef' - */ - 11111, - - /* Variable: cf_speedFilt - * Referenced by: '/cf_speedFilt' - */ - 10, - - /* Variable: n_commAcvLo - * Referenced by: '/n_commDeacv' - */ - 15, - - /* Variable: n_commDeacvHi - * Referenced by: '/n_commDeacv' - */ - 30, - - /* Variable: n_motPhaAdvEna - * Referenced by: '/n_motPhaAdvEna' - */ - 400, - - /* Variable: r_commDCDeacv - * Referenced by: '/r_commDCDeacv' - */ - 70, - - /* Variable: r_phaAdvDC_XA - * Referenced by: '/r_phaAdvDC_XA' - */ - { 0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000 }, - - /* Variable: a_phaAdv_M1 - * Referenced by: '/a_phaAdv_M2' - */ - { 0, 0, 0, 0, 0, 2, 3, 5, 9, 16, 25 }, - - /* Variable: dz_counterHi - * Referenced by: '/dz_counter' - */ - 50, - - /* Variable: dz_counterLo - * Referenced by: '/dz_counter' - */ - 20, - - /* Variable: z_maxCntRst - * Referenced by: - * '/z_counter' - * '/z_counter2' - * '/z_maxCntRst' - * '/Constant1' - * '/UnitDelay1' - */ - 1500, - - /* Variable: z_ctrlTypSel - * Referenced by: '/z_ctrlTypSel1' - */ - 3U, - - /* Variable: b_phaAdvEna - * Referenced by: '/a_elecPeriod1' - */ - 1 -}; /* Modifiable parameters */ - -static DW rtDW; /* Observable states */ -static ExtU rtU; /* External inputs */ -static ExtY rtY; /* External outputs */ - -/* - * Associating rt_OneStep with a real-time clock or interrupt service routine - * is what makes the generated code "real-time". The function rt_OneStep is - * always associated with the base rate of the model. Subrates are managed - * by the base rate from inside the generated code. Enabling/disabling - * interrupts and floating point context switches are target specific. This - * example code indicates where these should take place relative to executing - * the generated code step function. Overrun behavior should be tailored to - * your application needs. This example simply sets an error status in the - * real-time model and returns from rt_OneStep. - */ -void rt_OneStep(RT_MODEL *const rtM); -void rt_OneStep(RT_MODEL *const rtM) -{ - static boolean_T OverrunFlag = false; - - /* Disable interrupts here */ - - /* Check for overrun */ - if (OverrunFlag) { - return; - } - - OverrunFlag = true; - - /* Save FPU context here (if necessary) */ - /* Re-enable timer or interrupt here */ - /* Set model inputs here */ - - /* Step the model */ - BLDC_controller_step(rtM); - - /* Get model outputs here */ - - /* Indicate task complete */ - OverrunFlag = false; - - /* Disable interrupts here */ - /* Restore FPU context here (if necessary) */ - /* Enable interrupts here */ -} - -/* - * The example "main" function illustrates what is required by your - * application code to initialize, execute, and terminate the generated code. - * Attaching rt_OneStep to a real-time clock is target specific. This example - * illustrates how you do this relative to initializing the model. - */ -int_T main(int_T argc, const char *argv[]) -{ - RT_MODEL *const rtM = rtMPtr; - - /* Unused arguments */ - (void)(argc); - (void)(argv); - - /* Pack model data into RTM */ - rtM->defaultParam = &rtP; - rtM->dwork = &rtDW; - rtM->inputs = &rtU; - rtM->outputs = &rtY; - - /* Initialize model */ - BLDC_controller_initialize(rtM); - - /* Attach rt_OneStep to a timer or interrupt service routine with - * period 6.0E-5 seconds (the model's base sample time) here. The - * call syntax for rt_OneStep is - * - * rt_OneStep(rtM); - */ - printf("Warning: The simulation will run forever. " - "Generated ERT main won't simulate model step behavior. " - "To change this behavior select the 'MAT-file logging' option.\n"); - fflush((NULL)); - while (1) { - /* Perform other application tasks here */ - } - - /* The option 'Remove error status field in real-time model data structure' - * is selected, therefore the following code does not need to execute. - */ -#if 0 - - /* Disable rt_OneStep() here */ -#endif - - return 0; -} - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_c.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_c.html deleted file mode 100644 index 0caaeb3..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_c.html +++ /dev/null @@ -1,716 +0,0 @@ - - - -RTW Report - BLDC_controller.c - - - - - - -

-
-

File: BLDC_controller.c

-
-    1   /*
-    2    * Academic License - for use in teaching, academic research, and meeting
-    3    * course requirements at degree granting institutions only.  Not for
-    4    * government, commercial, or other organizational use.
-    5    *
-    6    * File: BLDC_controller.c
-    7    *
-    8    * Code generated for Simulink model 'BLDC_controller'.
-    9    *
-   10    * Model version                  : 1.883
-   11    * Simulink Coder version         : 8.13 (R2017b) 24-Jul-2017
-   12    * C/C++ source code generated on : Tue Jun 11 21:14:57 2019
-   13    *
-   14    * Target selection: ert.tlc
-   15    * Embedded hardware selection: ARM Compatible->ARM Cortex
-   16    * Emulation hardware selection:
-   17    *    Differs from embedded hardware (MATLAB Host)
-   18    * Code generation objectives:
-   19    *    1. Execution efficiency
-   20    *    2. RAM efficiency
-   21    * Validation result: Not run
-   22    */
-   23   
-   24   #include "BLDC_controller.h"
-   25   #ifndef UCHAR_MAX
-   26   #include <limits.h>
-   27   #endif
-   28   
-   29   #if ( UCHAR_MAX != (0xFFU) ) || ( SCHAR_MAX != (0x7F) )
-   30   #error Code was generated for compiler with different sized uchar/char. \
-   31   Consider adjusting Test hardware word size settings on the \
-   32   Hardware Implementation pane to match your compiler word sizes as \
-   33   defined in limits.h of the compiler. Alternatively, you can \
-   34   select the Test hardware is the same as production hardware option and \
-   35   select the Enable portable word sizes option on the Code Generation > \
-   36   Verification pane for ERT based targets, which will disable the \
-   37   preprocessor word size checks.
-   38   #endif
-   39   
-   40   #if ( USHRT_MAX != (0xFFFFU) ) || ( SHRT_MAX != (0x7FFF) )
-   41   #error Code was generated for compiler with different sized ushort/short. \
-   42   Consider adjusting Test hardware word size settings on the \
-   43   Hardware Implementation pane to match your compiler word sizes as \
-   44   defined in limits.h of the compiler. Alternatively, you can \
-   45   select the Test hardware is the same as production hardware option and \
-   46   select the Enable portable word sizes option on the Code Generation > \
-   47   Verification pane for ERT based targets, which will disable the \
-   48   preprocessor word size checks.
-   49   #endif
-   50   
-   51   #if ( UINT_MAX != (0xFFFFFFFFU) ) || ( INT_MAX != (0x7FFFFFFF) )
-   52   #error Code was generated for compiler with different sized uint/int. \
-   53   Consider adjusting Test hardware word size settings on the \
-   54   Hardware Implementation pane to match your compiler word sizes as \
-   55   defined in limits.h of the compiler. Alternatively, you can \
-   56   select the Test hardware is the same as production hardware option and \
-   57   select the Enable portable word sizes option on the Code Generation > \
-   58   Verification pane for ERT based targets, which will disable the \
-   59   preprocessor word size checks.
-   60   #endif
-   61   
-   62   #if ( ULONG_MAX != (0xFFFFFFFFU) ) || ( LONG_MAX != (0x7FFFFFFF) )
-   63   #error Code was generated for compiler with different sized ulong/long. \
-   64   Consider adjusting Test hardware word size settings on the \
-   65   Hardware Implementation pane to match your compiler word sizes as \
-   66   defined in limits.h of the compiler. Alternatively, you can \
-   67   select the Test hardware is the same as production hardware option and \
-   68   select the Enable portable word sizes option on the Code Generation > \
-   69   Verification pane for ERT based targets, which will disable the \
-   70   preprocessor word size checks.
-   71   #endif
-   72   
-   73   #if 0
-   74   
-   75   /* Skip this size verification because of preprocessor limitation */
-   76   #if ( ULLONG_MAX != (0xFFFFFFFFFFFFFFFFULL) ) || ( LLONG_MAX != (0x7FFFFFFFFFFFFFFFLL) )
-   77   #error Code was generated for compiler with different sized ulong_long/long_long. \
-   78   Consider adjusting Test hardware word size settings on the \
-   79   Hardware Implementation pane to match your compiler word sizes as \
-   80   defined in limits.h of the compiler. Alternatively, you can \
-   81   select the Test hardware is the same as production hardware option and \
-   82   select the Enable portable word sizes option on the Code Generation > \
-   83   Verification pane for ERT based targets, which will disable the \
-   84   preprocessor word size checks.
-   85   #endif
-   86   #endif
-   87   
-   88   uint8_T plook_u8s32u32n31_evenc_s(int32_T u, int32_T bp0, uint32_T bpSpace,
-   89     uint32_T maxIndex, uint32_T *fraction);
-   90   int16_T intrp1d_s16s32s32u8u32n31l_s(uint8_T bpIndex, uint32_T frac, const
-   91     int16_T table[]);
-   92   int32_T div_nde_s32_floor(int32_T numerator, int32_T denominator);
-   93   uint8_T plook_u8s32u32n31_evenc_s(int32_T u, int32_T bp0, uint32_T bpSpace,
-   94     uint32_T maxIndex, uint32_T *fraction)
-   95   {
-   96     uint8_T bpIndex;
-   97     uint32_T uAdjust;
-   98     uint32_T fbpIndex;
-   99   
-  100     /* Prelookup - Index and Fraction
-  101        Index Search method: 'even'
-  102        Extrapolation method: 'Clip'
-  103        Use previous index: 'off'
-  104        Use last breakpoint for index at or above upper limit: 'off'
-  105        Remove protection against out-of-range input in generated code: 'off'
-  106        Rounding mode: 'simplest'
-  107      */
-  108     if (u <= bp0) {
-  109       bpIndex = 0U;
-  110       *fraction = 0U;
-  111     } else {
-  112       uAdjust = (uint32_T)u - bp0;
-  113       fbpIndex = uAdjust / bpSpace;
-  114       if (fbpIndex < maxIndex) {
-  115         bpIndex = (uint8_T)fbpIndex;
-  116         *fraction = (uint32_T)(((uint64_T)(uAdjust - bpIndex * bpSpace) << 31) /
-  117           bpSpace);
-  118       } else {
-  119         bpIndex = (uint8_T)(maxIndex - 1U);
-  120         *fraction = 2147483648U;
-  121       }
-  122     }
-  123   
-  124     return bpIndex;
-  125   }
-  126   
-  127   int16_T intrp1d_s16s32s32u8u32n31l_s(uint8_T bpIndex, uint32_T frac, const
-  128     int16_T table[])
-  129   {
-  130     uint32_T offset_0d;
-  131   
-  132     /* Interpolation 1-D
-  133        Interpolation method: 'Linear'
-  134        Use last breakpoint for index at or above upper limit: 'off'
-  135        Rounding mode: 'simplest'
-  136        Overflow mode: 'wrapping'
-  137      */
-  138     offset_0d = bpIndex;
-  139     return (int16_T)((int16_T)(((int64_T)(table[offset_0d + 1U] - table[offset_0d])
-  140       * frac) >> 31) + table[offset_0d]);
-  141   }
-  142   
-  143   int32_T div_nde_s32_floor(int32_T numerator, int32_T denominator)
-  144   {
-  145     return (((numerator < 0) != (denominator < 0)) && (numerator % denominator !=
-  146              0) ? -1 : 0) + numerator / denominator;
-  147   }
-  148   
-  149   /* Model step function */
-  150   void BLDC_controller_step(RT_MODEL *const rtM)
-  151   {
-  152     P *rtP = ((P *) rtM->defaultParam);
-  153     DW *rtDW = ((DW *) rtM->dwork);
-  154     ExtU *rtU = (ExtU *) rtM->inputs;
-  155     ExtY *rtY = (ExtY *) rtM->outputs;
-  156     uint8_T rtb_Sum;
-  157     int32_T rtb_Abs1;
-  158     uint8_T rtb_BitwiseOperator;
-  159     int32_T rtb_Sum2;
-  160     int16_T rtb_Abs2;
-  161     int16_T rtb_Sum1_a;
-  162     int32_T rtb_Abs5;
-  163     int8_T rtAction;
-  164     int8_T rtb_Sum2_h;
-  165     uint32_T rtb_r_phaAdvDC_XA_o2;
-  166     int32_T rtb_Switch1_idx_1;
-  167   
-  168     /* Outputs for Atomic SubSystem: '<Root>/BLDC_controller' */
-  169     /* Sum: '<S12>/Sum' incorporates:
-  170      *  Gain: '<S12>/g_Ha'
-  171      *  Gain: '<S12>/g_Hb'
-  172      *  Inport: '<Root>/b_hallA '
-  173      *  Inport: '<Root>/b_hallB'
-  174      *  Inport: '<Root>/b_hallC'
-  175      */
-  176     rtb_Sum = (uint8_T)((uint32_T)(uint8_T)((uint32_T)(uint8_T)(rtU->b_hallA << 2)
-  177       + (uint8_T)(rtU->b_hallB << 1)) + rtU->b_hallC);
-  178   
-  179     /* Abs: '<S2>/Abs1' incorporates:
-  180      *  Inport: '<Root>/r_DC'
-  181      */
-  182     if (rtU->r_DC < 0) {
-  183       rtb_Abs1 = -rtU->r_DC;
-  184     } else {
-  185       rtb_Abs1 = rtU->r_DC;
-  186     }
-  187   
-  188     /* End of Abs: '<S2>/Abs1' */
-  189   
-  190     /* S-Function (sfix_bitop): '<S11>/Bitwise Operator' incorporates:
-  191      *  Inport: '<Root>/b_hallA '
-  192      *  Inport: '<Root>/b_hallB'
-  193      *  Inport: '<Root>/b_hallC'
-  194      *  UnitDelay: '<S11>/UnitDelay'
-  195      *  UnitDelay: '<S11>/UnitDelay1'
-  196      *  UnitDelay: '<S11>/UnitDelay2'
-  197      */
-  198     rtb_BitwiseOperator = (uint8_T)(rtU->b_hallA ^ rtU->b_hallB ^ rtU->b_hallC ^
-  199       rtDW->UnitDelay_DSTATE ^ rtDW->UnitDelay1_DSTATE_i ^
-  200       rtDW->UnitDelay2_DSTATE_h);
-  201   
-  202     /* If: '<S14>/If1' incorporates:
-  203      *  Constant: '<S14>/Constant6'
-  204      *  Constant: '<S17>/Constant1'
-  205      *  Constant: '<S17>/Constant23'
-  206      *  If: '<S7>/If2'
-  207      *  Inport: '<S15>/z_counterRawPrev'
-  208      *  RelationalOperator: '<S17>/Relational Operator1'
-  209      *  Sum: '<S14>/Sum1'
-  210      *  Switch: '<S17>/Switch1'
-  211      *  Switch: '<S17>/Switch2'
-  212      *  UnitDelay: '<S14>/UnitDelay1'
-  213      *  UnitDelay: '<S17>/UnitDelay1'
-  214      */
-  215     if (rtb_BitwiseOperator != 0) {
-  216       /* Outputs for IfAction SubSystem: '<S7>/F01_03_Direction_Detection' incorporates:
-  217        *  ActionPort: '<S13>/Action Port'
-  218        */
-  219       /* UnitDelay: '<S13>/UnitDelay1' */
-  220       rtDW->UnitDelay1 = rtDW->Switch2;
-  221   
-  222       /* Sum: '<S13>/Sum2' incorporates:
-  223        *  Constant: '<S12>/vec_hallToPos'
-  224        *  Selector: '<S12>/Selector'
-  225        *  UnitDelay: '<S13>/UnitDelay2'
-  226        */
-  227       rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[rtb_Sum] -
-  228                             rtDW->UnitDelay2_DSTATE_i);
-  229   
-  230       /* Switch: '<S13>/Switch2' incorporates:
-  231        *  Constant: '<S13>/Constant20'
-  232        *  Constant: '<S13>/Constant23'
-  233        *  Constant: '<S13>/Constant24'
-  234        *  Constant: '<S13>/Constant8'
-  235        *  Logic: '<S13>/Logical Operator3'
-  236        *  RelationalOperator: '<S13>/Relational Operator1'
-  237        *  RelationalOperator: '<S13>/Relational Operator6'
-  238        */
-  239       if ((rtb_Sum2_h == 1) || (rtb_Sum2_h == -5)) {
-  240         rtDW->Switch2 = 1;
-  241       } else {
-  242         rtDW->Switch2 = -1;
-  243       }
-  244   
-  245       /* End of Switch: '<S13>/Switch2' */
-  246   
-  247       /* Update for UnitDelay: '<S13>/UnitDelay2' incorporates:
-  248        *  Constant: '<S12>/vec_hallToPos'
-  249        *  Selector: '<S12>/Selector'
-  250        */
-  251       rtDW->UnitDelay2_DSTATE_i = rtConstP.vec_hallToPos_Value[rtb_Sum];
-  252   
-  253       /* End of Outputs for SubSystem: '<S7>/F01_03_Direction_Detection' */
-  254       rtb_Abs2 = 1;
-  255   
-  256       /* Outputs for IfAction SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' incorporates:
-  257        *  ActionPort: '<S15>/Action Port'
-  258        */
-  259       rtDW->z_counterRawPrev = rtDW->UnitDelay1_DSTATE_c;
-  260   
-  261       /* Sum: '<S15>/Sum4' incorporates:
-  262        *  Constant: '<S14>/Constant6'
-  263        *  Constant: '<S17>/Constant23'
-  264        *  Inport: '<S15>/z_counterRawPrev'
-  265        *  Sum: '<S14>/Sum1'
-  266        *  UnitDelay: '<S14>/UnitDelay1'
-  267        *  UnitDelay: '<S15>/z_counter2'
-  268        */
-  269       rtDW->Sum4 = (int16_T)(rtDW->z_counterRawPrev - rtDW->z_counter2_DSTATE);
-  270   
-  271       /* Update for UnitDelay: '<S15>/z_counter2' */
-  272       rtDW->z_counter2_DSTATE = rtDW->z_counterRawPrev;
-  273   
-  274       /* End of Outputs for SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' */
-  275     } else {
-  276       if (rtDW->UnitDelay1_DSTATE < rtP->z_maxCntRst) {
-  277         /* Switch: '<S17>/Switch2' incorporates:
-  278          *  UnitDelay: '<S17>/UnitDelay1'
-  279          */
-  280         rtb_Abs2 = rtDW->UnitDelay1_DSTATE;
-  281       } else {
-  282         /* Switch: '<S17>/Switch2' incorporates:
-  283          *  Constant: '<S17>/Constant1'
-  284          */
-  285         rtb_Abs2 = rtP->z_maxCntRst;
-  286       }
-  287   
-  288       rtb_Abs2++;
-  289     }
-  290   
-  291     /* End of If: '<S14>/If1' */
-  292   
-  293     /* Sum: '<S14>/Sum1' */
-  294     rtb_Sum1_a = rtb_Abs2;
-  295   
-  296     /* Switch: '<S16>/Switch1' incorporates:
-  297      *  Constant: '<S16>/Constant1'
-  298      *  Constant: '<S16>/cf_spdCoef'
-  299      *  Constant: '<S16>/z_maxCntRst'
-  300      *  Logic: '<S16>/Logical Operator1'
-  301      *  Product: '<S16>/Divide4'
-  302      *  RelationalOperator: '<S16>/Relational Operator2'
-  303      *  RelationalOperator: '<S16>/Relational Operator5'
-  304      *  Sum: '<S14>/Sum1'
-  305      */
-  306     if ((rtb_Abs2 > rtP->z_maxCntRst) || (rtDW->Switch2 != rtDW->UnitDelay1)) {
-  307       rtb_Sum2 = 0;
-  308     } else {
-  309       rtb_Sum2 = rtP->cf_speedCoef * rtDW->Switch2 / rtDW->z_counterRawPrev;
-  310     }
-  311   
-  312     /* End of Switch: '<S16>/Switch1' */
-  313   
-  314     /* Product: '<S16>/Divide2' incorporates:
-  315      *  Constant: '<S16>/Constant2'
-  316      *  Constant: '<S16>/Constant3'
-  317      *  Constant: '<S16>/cf_speedFilt'
-  318      *  Product: '<S16>/Divide1'
-  319      *  Product: '<S16>/Divide3'
-  320      *  Sum: '<S16>/Sum1'
-  321      *  Sum: '<S16>/Sum2'
-  322      *  UnitDelay: '<S16>/UnitDelay2'
-  323      */
-  324     rtb_Sum2 = ((100 - rtP->cf_speedFilt) * rtDW->UnitDelay2_DSTATE + rtb_Sum2 *
-  325                 rtP->cf_speedFilt) / 100;
-  326   
-  327     /* Abs: '<S16>/Abs5' */
-  328     if (rtb_Sum2 < 0) {
-  329       rtb_Abs5 = -rtb_Sum2;
-  330     } else {
-  331       rtb_Abs5 = rtb_Sum2;
-  332     }
-  333   
-  334     /* End of Abs: '<S16>/Abs5' */
-  335   
-  336     /* Relay: '<S14>/n_commDeacv' */
-  337     if (rtb_Abs5 >= rtP->n_commDeacvHi) {
-  338       rtDW->n_commDeacv_Mode = true;
-  339     } else {
-  340       if (rtb_Abs5 <= rtP->n_commAcvLo) {
-  341         rtDW->n_commDeacv_Mode = false;
-  342       }
-  343     }
-  344   
-  345     /* Abs: '<S14>/Abs2' */
-  346     if (rtDW->Sum4 < 0) {
-  347       rtb_Abs2 = (int16_T)-rtDW->Sum4;
-  348     } else {
-  349       rtb_Abs2 = rtDW->Sum4;
-  350     }
-  351   
-  352     /* End of Abs: '<S14>/Abs2' */
-  353   
-  354     /* Relay: '<S14>/dz_counter' */
-  355     if (rtb_Abs2 >= rtP->dz_counterHi) {
-  356       rtDW->dz_counter_Mode = true;
-  357     } else {
-  358       if (rtb_Abs2 <= rtP->dz_counterLo) {
-  359         rtDW->dz_counter_Mode = false;
-  360       }
-  361     }
-  362   
-  363     /* If: '<S2>/If1' incorporates:
-  364      *  Constant: '<S7>/z_ctrlTypSel1'
-  365      */
-  366     rtb_Sum2_h = rtDW->If1_ActiveSubsystem;
-  367     rtAction = -1;
-  368     if (rtP->z_ctrlTypSel != 0) {
-  369       rtAction = 0;
-  370     }
-  371   
-  372     rtDW->If1_ActiveSubsystem = rtAction;
-  373     if ((rtb_Sum2_h != rtAction) && (rtb_Sum2_h == 0)) {
-  374       /* Disable for Outport: '<S8>/a_elecAngleAdv' */
-  375       rtDW->Switch_PhaAdv = 0;
-  376   
-  377       /* Disable for Outport: '<Root>/a_elecAngle' incorporates:
-  378        *  Outport: '<S8>/a_elecAngle'
-  379        */
-  380       rtY->a_elecAngle = 0;
-  381     }
-  382   
-  383     if (rtAction == 0) {
-  384       /* Outputs for IfAction SubSystem: '<S2>/F02_Electrical_Angle_Calculation' incorporates:
-  385        *  ActionPort: '<S8>/Action Port'
-  386        */
-  387       /* Switch: '<S8>/Switch3' incorporates:
-  388        *  Constant: '<S12>/vec_hallToPos'
-  389        *  Constant: '<S8>/Constant16'
-  390        *  Gain: '<S12>/g_Ha'
-  391        *  Gain: '<S12>/g_Hb'
-  392        *  Inport: '<Root>/b_hallA '
-  393        *  Inport: '<Root>/b_hallB'
-  394        *  Inport: '<Root>/b_hallC'
-  395        *  RelationalOperator: '<S8>/Relational Operator7'
-  396        *  Selector: '<S12>/Selector'
-  397        *  Sum: '<S12>/Sum'
-  398        *  Sum: '<S8>/Sum1'
-  399        */
-  400       if (rtDW->Switch2 == 1) {
-  401         rtb_Sum2_h = rtConstP.vec_hallToPos_Value[rtb_Sum];
-  402       } else {
-  403         rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[(uint8_T)((uint32_T)
-  404           (uint8_T)((uint32_T)(uint8_T)(rtU->b_hallA << 2) + (uint8_T)
-  405                     (rtU->b_hallB << 1)) + rtU->b_hallC)] + 1);
-  406       }
-  407   
-  408       /* End of Switch: '<S8>/Switch3' */
-  409   
-  410       /* Outport: '<Root>/a_elecAngle' incorporates:
-  411        *  Constant: '<S8>/a_elecAngle1'
-  412        *  Product: '<S8>/Divide4'
-  413        *  Product: '<S8>/Divide5'
-  414        *  Product: '<S8>/Product6'
-  415        *  Sum: '<S8>/Sum2'
-  416        */
-  417       rtY->a_elecAngle = 60 * rtb_Sum1_a / rtDW->z_counterRawPrev * rtDW->Switch2
-  418         + rtb_Sum2_h * 60;
-  419   
-  420       /* Switch: '<S8>/Switch_PhaAdv' incorporates:
-  421        *  Constant: '<S8>/a_elecPeriod1'
-  422        *  Constant: '<S8>/n_motPhaAdvEna'
-  423        *  Logic: '<S8>/Logical Operator2'
-  424        *  Outport: '<Root>/a_elecAngle'
-  425        *  RelationalOperator: '<S8>/Relational Operator4'
-  426        */
-  427       if (rtP->b_phaAdvEna && (rtb_Abs5 > rtP->n_motPhaAdvEna)) {
-  428         /* PreLookup: '<S8>/r_phaAdvDC_XA' */
-  429         rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtb_Abs1,
-  430           rtP->r_phaAdvDC_XA[0], (uint32_T)rtP->r_phaAdvDC_XA[1] -
-  431           rtP->r_phaAdvDC_XA[0], 10U, &rtb_r_phaAdvDC_XA_o2);
-  432   
-  433         /* Interpolation_n-D: '<S8>/a_phaAdv_M2' */
-  434         rtb_Abs2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
-  435           rtb_r_phaAdvDC_XA_o2, rtP->a_phaAdv_M1);
-  436   
-  437         /* Sum: '<S8>/Sum3' incorporates:
-  438          *  Outport: '<Root>/a_elecAngle'
-  439          *  Product: '<S8>/Product2'
-  440          */
-  441         rtb_Abs5 = (int16_T)(rtb_Abs2 * rtDW->Switch2) + rtY->a_elecAngle;
-  442   
-  443         /* Math: '<S8>/Math Function' */
-  444         rtDW->Switch_PhaAdv = rtb_Abs5 - div_nde_s32_floor(rtb_Abs5, 360) * 360;
-  445       } else {
-  446         rtDW->Switch_PhaAdv = rtY->a_elecAngle;
-  447       }
-  448   
-  449       /* End of Switch: '<S8>/Switch_PhaAdv' */
-  450       /* End of Outputs for SubSystem: '<S2>/F02_Electrical_Angle_Calculation' */
-  451     }
-  452   
-  453     /* End of If: '<S2>/If1' */
-  454   
-  455     /* SwitchCase: '<S9>/Switch Case' incorporates:
-  456      *  Constant: '<S7>/z_ctrlTypSel1'
-  457      */
-  458     switch (rtP->z_ctrlTypSel) {
-  459      case 1:
-  460       /* Outputs for IfAction SubSystem: '<S9>/F03_01_Pure_Trapezoidal_Method' incorporates:
-  461        *  ActionPort: '<S18>/Action Port'
-  462        */
-  463       /* PreLookup: '<S18>/a_trapElecAngle_XA' */
-  464       rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtDW->Switch_PhaAdv, 0, 60U,
-  465         6U, &rtb_r_phaAdvDC_XA_o2);
-  466   
-  467       /* Interpolation_n-D: '<S18>/r_trapPhaA_M1' */
-  468       rtDW->Merge = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
-  469         rtb_r_phaAdvDC_XA_o2, rtConstP.r_trapPhaA_M1_Table);
-  470   
-  471       /* Interpolation_n-D: '<S18>/r_trapPhaB_M1' */
-  472       rtDW->Merge1 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
-  473         rtb_r_phaAdvDC_XA_o2, rtConstP.r_trapPhaB_M1_Table);
-  474   
-  475       /* Interpolation_n-D: '<S18>/r_trapPhaC_M1' */
-  476       rtDW->Merge2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
-  477         rtb_r_phaAdvDC_XA_o2, rtConstP.r_trapPhaC_M1_Table);
-  478   
-  479       /* End of Outputs for SubSystem: '<S9>/F03_01_Pure_Trapezoidal_Method' */
-  480       break;
-  481   
-  482      case 2:
-  483       /* Outputs for IfAction SubSystem: '<S9>/F03_02_Sinusoidal_Method' incorporates:
-  484        *  ActionPort: '<S19>/Action Port'
-  485        */
-  486       /* PreLookup: '<S19>/a_sinElecAngle_XA' */
-  487       rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtDW->Switch_PhaAdv, 0, 10U,
-  488         36U, &rtb_r_phaAdvDC_XA_o2);
-  489   
-  490       /* Interpolation_n-D: '<S19>/r_sinPhaA_M1' */
-  491       rtDW->Merge = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
-  492         rtb_r_phaAdvDC_XA_o2, rtConstP.r_sinPhaA_M1_Table);
-  493   
-  494       /* Interpolation_n-D: '<S19>/r_sinPhaB_M1' */
-  495       rtDW->Merge1 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
-  496         rtb_r_phaAdvDC_XA_o2, rtConstP.r_sinPhaB_M1_Table);
-  497   
-  498       /* Interpolation_n-D: '<S19>/r_sinPhaC_M1' */
-  499       rtDW->Merge2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
-  500         rtb_r_phaAdvDC_XA_o2, rtConstP.r_sinPhaC_M1_Table);
-  501   
-  502       /* End of Outputs for SubSystem: '<S9>/F03_02_Sinusoidal_Method' */
-  503       break;
-  504   
-  505      case 3:
-  506       /* Outputs for IfAction SubSystem: '<S9>/F03_03_Sinusoidal3rd_Method' incorporates:
-  507        *  ActionPort: '<S20>/Action Port'
-  508        */
-  509       /* PreLookup: '<S20>/a_sinElecAngle_XA' */
-  510       rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtDW->Switch_PhaAdv, 0, 10U,
-  511         36U, &rtb_r_phaAdvDC_XA_o2);
-  512   
-  513       /* Interpolation_n-D: '<S20>/r_sin3PhaA_M1' */
-  514       rtDW->Merge = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
-  515         rtb_r_phaAdvDC_XA_o2, rtConstP.r_sin3PhaA_M1_Table);
-  516   
-  517       /* Interpolation_n-D: '<S20>/r_sin3PhaB_M1' */
-  518       rtDW->Merge1 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
-  519         rtb_r_phaAdvDC_XA_o2, rtConstP.r_sin3PhaB_M1_Table);
-  520   
-  521       /* Interpolation_n-D: '<S20>/r_sin3PhaC_M1' */
-  522       rtDW->Merge2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator,
-  523         rtb_r_phaAdvDC_XA_o2, rtConstP.r_sin3PhaC_M1_Table);
-  524   
-  525       /* End of Outputs for SubSystem: '<S9>/F03_03_Sinusoidal3rd_Method' */
-  526       break;
-  527     }
-  528   
-  529     /* End of SwitchCase: '<S9>/Switch Case' */
-  530   
-  531     /* Signum: '<S14>/Sign' */
-  532     if (rtDW->Switch2 < 0) {
-  533       rtb_Sum2_h = -1;
-  534     } else {
-  535       rtb_Sum2_h = (int8_T)(rtDW->Switch2 > 0);
-  536     }
-  537   
-  538     /* End of Signum: '<S14>/Sign' */
-  539   
-  540     /* Signum: '<S14>/Sign1' incorporates:
-  541      *  Inport: '<Root>/r_DC'
-  542      */
-  543     if (rtU->r_DC < 0) {
-  544       rtb_Abs5 = -1;
-  545     } else {
-  546       rtb_Abs5 = (rtU->r_DC > 0);
-  547     }
-  548   
-  549     /* End of Signum: '<S14>/Sign1' */
-  550   
-  551     /* Switch: '<S10>/Switch1' incorporates:
-  552      *  Constant: '<S12>/vec_hallToPos'
-  553      *  Constant: '<S14>/CTRL_COMM'
-  554      *  Constant: '<S14>/r_commDCDeacv'
-  555      *  Constant: '<S7>/z_ctrlTypSel1'
-  556      *  Inport: '<Root>/r_DC'
-  557      *  Logic: '<S14>/Logical Operator2'
-  558      *  LookupNDDirect: '<S10>/z_commutMap_M1'
-  559      *  Product: '<S10>/Divide2'
-  560      *  Product: '<S10>/Divide4'
-  561      *  RelationalOperator: '<S14>/Relational Operator1'
-  562      *  RelationalOperator: '<S14>/Relational Operator3'
-  563      *  RelationalOperator: '<S14>/Relational Operator4'
-  564      *  Relay: '<S14>/dz_counter'
-  565      *  Relay: '<S14>/n_commDeacv'
-  566      *  Selector: '<S12>/Selector'
-  567      *
-  568      * About '<S10>/z_commutMap_M1':
-  569      *  2-dimensional Direct Look-Up returning a Column
-  570      */
-  571     if ((rtP->z_ctrlTypSel != 0) && (rtb_Abs1 > rtP->r_commDCDeacv) && (rtb_Sum2_h
-  572          == rtb_Abs5) && rtDW->n_commDeacv_Mode && (!rtDW->dz_counter_Mode)) {
-  573       rtb_Abs5 = rtU->r_DC * rtDW->Merge;
-  574       rtb_Switch1_idx_1 = rtU->r_DC * rtDW->Merge1;
-  575       rtb_Abs1 = rtU->r_DC * rtDW->Merge2;
-  576     } else {
-  577       if (rtConstP.vec_hallToPos_Value[rtb_Sum] > 5) {
-  578         /* LookupNDDirect: '<S10>/z_commutMap_M1'
-  579          *
-  580          * About '<S10>/z_commutMap_M1':
-  581          *  2-dimensional Direct Look-Up returning a Column
-  582          */
-  583         rtb_Sum2_h = 5;
-  584       } else if (rtConstP.vec_hallToPos_Value[rtb_Sum] < 0) {
-  585         /* LookupNDDirect: '<S10>/z_commutMap_M1'
-  586          *
-  587          * About '<S10>/z_commutMap_M1':
-  588          *  2-dimensional Direct Look-Up returning a Column
-  589          */
-  590         rtb_Sum2_h = 0;
-  591       } else {
-  592         /* LookupNDDirect: '<S10>/z_commutMap_M1' incorporates:
-  593          *  Constant: '<S12>/vec_hallToPos'
-  594          *  Selector: '<S12>/Selector'
-  595          *
-  596          * About '<S10>/z_commutMap_M1':
-  597          *  2-dimensional Direct Look-Up returning a Column
-  598          */
-  599         rtb_Sum2_h = rtConstP.vec_hallToPos_Value[rtb_Sum];
-  600       }
-  601   
-  602       /* LookupNDDirect: '<S10>/z_commutMap_M1' incorporates:
-  603        *  Constant: '<S12>/vec_hallToPos'
-  604        *  Selector: '<S12>/Selector'
-  605        *
-  606        * About '<S10>/z_commutMap_M1':
-  607        *  2-dimensional Direct Look-Up returning a Column
-  608        */
-  609       rtb_Abs1 = rtb_Sum2_h * 3;
-  610       rtb_Abs5 = rtU->r_DC * rtConstP.z_commutMap_M1_table[rtb_Abs1];
-  611       rtb_Switch1_idx_1 = rtConstP.z_commutMap_M1_table[1 + rtb_Abs1] * rtU->r_DC;
-  612       rtb_Abs1 = rtConstP.z_commutMap_M1_table[2 + rtb_Abs1] * rtU->r_DC;
-  613     }
-  614   
-  615     /* End of Switch: '<S10>/Switch1' */
-  616   
-  617     /* Outport: '<Root>/DC_phaA' incorporates:
-  618      *  Constant: '<S10>/Constant1'
-  619      *  Product: '<S10>/Divide1'
-  620      */
-  621     rtY->DC_phaA = rtb_Abs5 / 1000;
-  622   
-  623     /* Outport: '<Root>/DC_phaB' incorporates:
-  624      *  Constant: '<S10>/Constant1'
-  625      *  Product: '<S10>/Divide1'
-  626      */
-  627     rtY->DC_phaB = rtb_Switch1_idx_1 / 1000;
-  628   
-  629     /* Update for UnitDelay: '<S11>/UnitDelay' incorporates:
-  630      *  Inport: '<Root>/b_hallA '
-  631      */
-  632     rtDW->UnitDelay_DSTATE = rtU->b_hallA;
-  633   
-  634     /* Update for UnitDelay: '<S11>/UnitDelay1' incorporates:
-  635      *  Inport: '<Root>/b_hallB'
-  636      */
-  637     rtDW->UnitDelay1_DSTATE_i = rtU->b_hallB;
-  638   
-  639     /* Update for UnitDelay: '<S11>/UnitDelay2' incorporates:
-  640      *  Inport: '<Root>/b_hallC'
-  641      */
-  642     rtDW->UnitDelay2_DSTATE_h = rtU->b_hallC;
-  643   
-  644     /* Update for UnitDelay: '<S17>/UnitDelay1' */
-  645     rtDW->UnitDelay1_DSTATE = rtb_Sum1_a;
-  646   
-  647     /* Update for UnitDelay: '<S14>/UnitDelay1' */
-  648     rtDW->UnitDelay1_DSTATE_c = rtb_Sum1_a;
-  649   
-  650     /* Update for UnitDelay: '<S16>/UnitDelay2' */
-  651     rtDW->UnitDelay2_DSTATE = rtb_Sum2;
-  652   
-  653     /* Outport: '<Root>/DC_phaC' incorporates:
-  654      *  Constant: '<S10>/Constant1'
-  655      *  Product: '<S10>/Divide1'
-  656      */
-  657     rtY->DC_phaC = rtb_Abs1 / 1000;
-  658   
-  659     /* End of Outputs for SubSystem: '<Root>/BLDC_controller' */
-  660   
-  661     /* Outport: '<Root>/n_mot' */
-  662     rtY->n_mot = rtb_Sum2;
-  663   }
-  664   
-  665   /* Model initialize function */
-  666   void BLDC_controller_initialize(RT_MODEL *const rtM)
-  667   {
-  668     P *rtP = ((P *) rtM->defaultParam);
-  669     DW *rtDW = ((DW *) rtM->dwork);
-  670   
-  671     /* Start for Atomic SubSystem: '<Root>/BLDC_controller' */
-  672     /* Start for If: '<S2>/If1' */
-  673     rtDW->If1_ActiveSubsystem = -1;
-  674   
-  675     /* End of Start for SubSystem: '<Root>/BLDC_controller' */
-  676   
-  677     /* SystemInitialize for Atomic SubSystem: '<Root>/BLDC_controller' */
-  678     /* InitializeConditions for UnitDelay: '<S17>/UnitDelay1' */
-  679     rtDW->UnitDelay1_DSTATE = rtP->z_maxCntRst;
-  680   
-  681     /* SystemInitialize for IfAction SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' */
-  682     /* InitializeConditions for UnitDelay: '<S15>/z_counter2' */
-  683     rtDW->z_counter2_DSTATE = rtP->z_maxCntRst;
-  684   
-  685     /* SystemInitialize for Outport: '<S15>/z_counter' */
-  686     rtDW->z_counterRawPrev = rtP->z_maxCntRst;
-  687   
-  688     /* End of SystemInitialize for SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' */
-  689     /* End of SystemInitialize for SubSystem: '<Root>/BLDC_controller' */
-  690   }
-  691   
-  692   /*
-  693    * File trailer for generated code.
-  694    *
-  695    * [EOF]
-  696    */
-  697   
-
-
-

- - \ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_codegen_rpt.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_codegen_rpt.html deleted file mode 100644 index 3ea6a33..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_codegen_rpt.html +++ /dev/null @@ -1,27 +0,0 @@ - - - -BLDC_controller Code Generation Report - - - - - - - - - - - - - - - - - - - - - - - diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_contents.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_contents.html deleted file mode 100644 index dcf33e3..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_contents.html +++ /dev/null @@ -1,298 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -Contents - - -
- - -
- -Summary - - -
- -Subsystem Report - - -
- -Code Interface Report - - -
- -Traceability Report - - -
- -Static Code Metrics Report - - -
- -Code Replacements Report - - -
- - - - - - - - - - - -
- - - - - - - - - - - - - - - - - - - - - -
- -Generated Code - - -
- - - - - - - - - - - - -
-[-] - -Main file -
- - - - - - - - -
- -ert_main.c - - -
- -
- -
- - - - - - - - - - - - -
-[-] - -Model files -
- - - - - - - - - - - - -
- -BLDC_controller.c - - -
- -BLDC_controller.h - - -
- -
- -
- - - - - - - - - - - - -
-[-] - -Data files -
- - - - - - - - -
- -BLDC_controller_data.c - - -
- -
- -
- - - - - - - - - - - - -
-[+] - -Utility files (1) -
- - - - - - - - - - -
- -
-
- - - diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_data_c.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_data_c.html deleted file mode 100644 index 68a2d09..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_data_c.html +++ /dev/null @@ -1,121 +0,0 @@ - - - -RTW Report - BLDC_controller_data.c - - - - - - -

-
-

File: BLDC_controller_data.c

-
-    1   /*
-    2    * Academic License - for use in teaching, academic research, and meeting
-    3    * course requirements at degree granting institutions only.  Not for
-    4    * government, commercial, or other organizational use.
-    5    *
-    6    * File: BLDC_controller_data.c
-    7    *
-    8    * Code generated for Simulink model 'BLDC_controller'.
-    9    *
-   10    * Model version                  : 1.883
-   11    * Simulink Coder version         : 8.13 (R2017b) 24-Jul-2017
-   12    * C/C++ source code generated on : Tue Jun 11 21:14:57 2019
-   13    *
-   14    * Target selection: ert.tlc
-   15    * Embedded hardware selection: ARM Compatible->ARM Cortex
-   16    * Emulation hardware selection:
-   17    *    Differs from embedded hardware (MATLAB Host)
-   18    * Code generation objectives:
-   19    *    1. Execution efficiency
-   20    *    2. RAM efficiency
-   21    * Validation result: Not run
-   22    */
-   23   
-   24   #include "BLDC_controller.h"
-   25   
-   26   /* Constant parameters (auto storage) */
-   27   const ConstP rtConstP = {
-   28     /* Computed Parameter: r_trapPhaA_M1_Table
-   29      * Referenced by: '<S18>/r_trapPhaA_M1'
-   30      */
-   31     { 1000, 1000, 1000, -1000, -1000, -1000, 1000 },
-   32   
-   33     /* Computed Parameter: r_trapPhaB_M1_Table
-   34      * Referenced by: '<S18>/r_trapPhaB_M1'
-   35      */
-   36     { -1000, -1000, 1000, 1000, 1000, -1000, -1000 },
-   37   
-   38     /* Computed Parameter: r_trapPhaC_M1_Table
-   39      * Referenced by: '<S18>/r_trapPhaC_M1'
-   40      */
-   41     { 1000, -1000, -1000, -1000, 1000, 1000, 1000 },
-   42   
-   43     /* Computed Parameter: r_sinPhaA_M1_Table
-   44      * Referenced by: '<S19>/r_sinPhaA_M1'
-   45      */
-   46     { 500, 643, 766, 866, 940, 985, 1000, 985, 940, 866, 766, 643, 500, 342, 174,
-   47       0, -174, -342, -500, -643, -766, -866, -940, -985, -1000, -985, -940, -866,
-   48       -766, -643, -500, -342, -174, 0, 174, 342, 500 },
-   49   
-   50     /* Computed Parameter: r_sinPhaB_M1_Table
-   51      * Referenced by: '<S19>/r_sinPhaB_M1'
-   52      */
-   53     { -1000, -985, -940, -866, -766, -643, -500, -342, -174, 0, 174, 342, 500, 643,
-   54       766, 866, 940, 985, 1000, 985, 940, 866, 766, 643, 500, 342, 174, 0, -174,
-   55       -342, -500, -643, -766, -866, -940, -985, -1000 },
-   56   
-   57     /* Computed Parameter: r_sinPhaC_M1_Table
-   58      * Referenced by: '<S19>/r_sinPhaC_M1'
-   59      */
-   60     { 500, 342, 174, 0, -174, -342, -500, -643, -766, -866, -940, -985, -1000,
-   61       -985, -940, -866, -766, -643, -500, -342, -174, 0, 174, 342, 500, 643, 766,
-   62       866, 940, 985, 1000, 985, 940, 866, 766, 643, 500 },
-   63   
-   64     /* Computed Parameter: r_sin3PhaA_M1_Table
-   65      * Referenced by: '<S20>/r_sin3PhaA_M1'
-   66      */
-   67     { 813, 945, 1000, 996, 962, 926, 912, 926, 962, 996, 1000, 945, 813, 599, 319,
-   68       0, -319, -599, -813, -945, -1000, -996, -962, -926, -912, -926, -962, -996,
-   69       -1000, -945, -813, -599, -319, 0, 319, 599, 813 },
-   70   
-   71     /* Computed Parameter: r_sin3PhaB_M1_Table
-   72      * Referenced by: '<S20>/r_sin3PhaB_M1'
-   73      */
-   74     { -912, -926, -962, -996, -1000, -945, -813, -599, -319, 0, 319, 599, 813, 945,
-   75       1000, 996, 962, 926, 912, 926, 962, 996, 1000, 945, 813, 599, 319, 0, -319,
-   76       -599, -813, -945, -1000, -996, -962, -926, -912 },
-   77   
-   78     /* Computed Parameter: r_sin3PhaC_M1_Table
-   79      * Referenced by: '<S20>/r_sin3PhaC_M1'
-   80      */
-   81     { 813, 599, 319, 0, -319, -599, -813, -945, -1000, -996, -962, -926, -912,
-   82       -926, -962, -996, -1000, -945, -813, -599, -319, 0, 319, 599, 813, 945, 1000,
-   83       996, 962, 926, 912, 926, 962, 996, 1000, 945, 813 },
-   84   
-   85     /* Computed Parameter: z_commutMap_M1_table
-   86      * Referenced by: '<S10>/z_commutMap_M1'
-   87      */
-   88     { 1000, -1000, 0, 1000, 0, -1000, 0, 1000, -1000, -1000, 1000, 0, -1000, 0,
-   89       1000, 0, -1000, 1000 },
-   90   
-   91     /* Computed Parameter: vec_hallToPos_Value
-   92      * Referenced by: '<S12>/vec_hallToPos'
-   93      */
-   94     { 0, 5, 3, 4, 1, 0, 2, 0 }
-   95   };
-   96   
-   97   /*
-   98    * File trailer for generated code.
-   99    *
-  100    * [EOF]
-  101    */
-  102   
-
-
-

- - \ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_h.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_h.html deleted file mode 100644 index 2a7cbfc..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_h.html +++ /dev/null @@ -1,276 +0,0 @@ - - - -RTW Report - BLDC_controller.h - - - - - - -

-
-

File: BLDC_controller.h

-
-    1   /*
-    2    * Academic License - for use in teaching, academic research, and meeting
-    3    * course requirements at degree granting institutions only.  Not for
-    4    * government, commercial, or other organizational use.
-    5    *
-    6    * File: BLDC_controller.h
-    7    *
-    8    * Code generated for Simulink model 'BLDC_controller'.
-    9    *
-   10    * Model version                  : 1.883
-   11    * Simulink Coder version         : 8.13 (R2017b) 24-Jul-2017
-   12    * C/C++ source code generated on : Tue Jun 11 21:14:57 2019
-   13    *
-   14    * Target selection: ert.tlc
-   15    * Embedded hardware selection: ARM Compatible->ARM Cortex
-   16    * Emulation hardware selection:
-   17    *    Differs from embedded hardware (MATLAB Host)
-   18    * Code generation objectives:
-   19    *    1. Execution efficiency
-   20    *    2. RAM efficiency
-   21    * Validation result: Not run
-   22    */
-   23   
-   24   #ifndef RTW_HEADER_BLDC_controller_h_
-   25   #define RTW_HEADER_BLDC_controller_h_
-   26   #include "rtwtypes.h"
-   27   #ifndef BLDC_controller_COMMON_INCLUDES_
-   28   # define BLDC_controller_COMMON_INCLUDES_
-   29   #include "rtwtypes.h"
-   30   #endif                                 /* BLDC_controller_COMMON_INCLUDES_ */
-   31   
-   32   /* Macros for accessing real-time model data structure */
-   33   
-   34   /* Forward declaration for rtModel */
-   35   typedef struct tag_RTM RT_MODEL;
-   36   
-   37   /* Block signals and states (auto storage) for system '<Root>' */
-   38   typedef struct {
-   39     int32_T Switch_PhaAdv;               /* '<S8>/Switch_PhaAdv' */
-   40     int32_T UnitDelay2_DSTATE;           /* '<S16>/UnitDelay2' */
-   41     int16_T Merge;                       /* '<S9>/Merge' */
-   42     int16_T Merge1;                      /* '<S9>/Merge1' */
-   43     int16_T Merge2;                      /* '<S9>/Merge2' */
-   44     int16_T z_counterRawPrev;            /* '<S15>/z_counterRawPrev' */
-   45     int16_T Sum4;                        /* '<S15>/Sum4' */
-   46     int16_T UnitDelay1_DSTATE;           /* '<S17>/UnitDelay1' */
-   47     int16_T UnitDelay1_DSTATE_c;         /* '<S14>/UnitDelay1' */
-   48     int16_T z_counter2_DSTATE;           /* '<S15>/z_counter2' */
-   49     int8_T UnitDelay1;                   /* '<S13>/UnitDelay1' */
-   50     int8_T Switch2;                      /* '<S13>/Switch2' */
-   51     int8_T UnitDelay2_DSTATE_i;          /* '<S13>/UnitDelay2' */
-   52     int8_T If1_ActiveSubsystem;          /* '<S2>/If1' */
-   53     uint8_T UnitDelay_DSTATE;            /* '<S11>/UnitDelay' */
-   54     uint8_T UnitDelay1_DSTATE_i;         /* '<S11>/UnitDelay1' */
-   55     uint8_T UnitDelay2_DSTATE_h;         /* '<S11>/UnitDelay2' */
-   56     boolean_T n_commDeacv_Mode;          /* '<S14>/n_commDeacv' */
-   57     boolean_T dz_counter_Mode;           /* '<S14>/dz_counter' */
-   58   } DW;
-   59   
-   60   /* Constant parameters (auto storage) */
-   61   typedef struct {
-   62     /* Computed Parameter: r_trapPhaA_M1_Table
-   63      * Referenced by: '<S18>/r_trapPhaA_M1'
-   64      */
-   65     int16_T r_trapPhaA_M1_Table[7];
-   66   
-   67     /* Computed Parameter: r_trapPhaB_M1_Table
-   68      * Referenced by: '<S18>/r_trapPhaB_M1'
-   69      */
-   70     int16_T r_trapPhaB_M1_Table[7];
-   71   
-   72     /* Computed Parameter: r_trapPhaC_M1_Table
-   73      * Referenced by: '<S18>/r_trapPhaC_M1'
-   74      */
-   75     int16_T r_trapPhaC_M1_Table[7];
-   76   
-   77     /* Computed Parameter: r_sinPhaA_M1_Table
-   78      * Referenced by: '<S19>/r_sinPhaA_M1'
-   79      */
-   80     int16_T r_sinPhaA_M1_Table[37];
-   81   
-   82     /* Computed Parameter: r_sinPhaB_M1_Table
-   83      * Referenced by: '<S19>/r_sinPhaB_M1'
-   84      */
-   85     int16_T r_sinPhaB_M1_Table[37];
-   86   
-   87     /* Computed Parameter: r_sinPhaC_M1_Table
-   88      * Referenced by: '<S19>/r_sinPhaC_M1'
-   89      */
-   90     int16_T r_sinPhaC_M1_Table[37];
-   91   
-   92     /* Computed Parameter: r_sin3PhaA_M1_Table
-   93      * Referenced by: '<S20>/r_sin3PhaA_M1'
-   94      */
-   95     int16_T r_sin3PhaA_M1_Table[37];
-   96   
-   97     /* Computed Parameter: r_sin3PhaB_M1_Table
-   98      * Referenced by: '<S20>/r_sin3PhaB_M1'
-   99      */
-  100     int16_T r_sin3PhaB_M1_Table[37];
-  101   
-  102     /* Computed Parameter: r_sin3PhaC_M1_Table
-  103      * Referenced by: '<S20>/r_sin3PhaC_M1'
-  104      */
-  105     int16_T r_sin3PhaC_M1_Table[37];
-  106   
-  107     /* Computed Parameter: z_commutMap_M1_table
-  108      * Referenced by: '<S10>/z_commutMap_M1'
-  109      */
-  110     int16_T z_commutMap_M1_table[18];
-  111   
-  112     /* Computed Parameter: vec_hallToPos_Value
-  113      * Referenced by: '<S12>/vec_hallToPos'
-  114      */
-  115     int8_T vec_hallToPos_Value[8];
-  116   } ConstP;
-  117   
-  118   /* External inputs (root inport signals with auto storage) */
-  119   typedef struct {
-  120     uint8_T b_hallA;                     /* '<Root>/b_hallA ' */
-  121     uint8_T b_hallB;                     /* '<Root>/b_hallB' */
-  122     uint8_T b_hallC;                     /* '<Root>/b_hallC' */
-  123     int32_T r_DC;                        /* '<Root>/r_DC' */
-  124   } ExtU;
-  125   
-  126   /* External outputs (root outports fed by signals with auto storage) */
-  127   typedef struct {
-  128     int32_T DC_phaA;                     /* '<Root>/DC_phaA' */
-  129     int32_T DC_phaB;                     /* '<Root>/DC_phaB' */
-  130     int32_T DC_phaC;                     /* '<Root>/DC_phaC' */
-  131     int32_T n_mot;                       /* '<Root>/n_mot' */
-  132     int32_T a_elecAngle;                 /* '<Root>/a_elecAngle' */
-  133   } ExtY;
-  134   
-  135   /* Parameters (auto storage) */
-  136   struct P_ {
-  137     int32_T cf_speedCoef;                /* Variable: cf_speedCoef
-  138                                           * Referenced by: '<S16>/cf_spdCoef'
-  139                                           */
-  140     int32_T cf_speedFilt;                /* Variable: cf_speedFilt
-  141                                           * Referenced by: '<S16>/cf_speedFilt'
-  142                                           */
-  143     int32_T n_commAcvLo;                 /* Variable: n_commAcvLo
-  144                                           * Referenced by: '<S14>/n_commDeacv'
-  145                                           */
-  146     int32_T n_commDeacvHi;               /* Variable: n_commDeacvHi
-  147                                           * Referenced by: '<S14>/n_commDeacv'
-  148                                           */
-  149     int32_T n_motPhaAdvEna;              /* Variable: n_motPhaAdvEna
-  150                                           * Referenced by: '<S8>/n_motPhaAdvEna'
-  151                                           */
-  152     int32_T r_commDCDeacv;               /* Variable: r_commDCDeacv
-  153                                           * Referenced by: '<S14>/r_commDCDeacv'
-  154                                           */
-  155     int32_T r_phaAdvDC_XA[11];           /* Variable: r_phaAdvDC_XA
-  156                                           * Referenced by: '<S8>/r_phaAdvDC_XA'
-  157                                           */
-  158     int16_T a_phaAdv_M1[11];             /* Variable: a_phaAdv_M1
-  159                                           * Referenced by: '<S8>/a_phaAdv_M2'
-  160                                           */
-  161     int16_T dz_counterHi;                /* Variable: dz_counterHi
-  162                                           * Referenced by: '<S14>/dz_counter'
-  163                                           */
-  164     int16_T dz_counterLo;                /* Variable: dz_counterLo
-  165                                           * Referenced by: '<S14>/dz_counter'
-  166                                           */
-  167     int16_T z_maxCntRst;                 /* Variable: z_maxCntRst
-  168                                           * Referenced by:
-  169                                           *   '<S15>/z_counter'
-  170                                           *   '<S15>/z_counter2'
-  171                                           *   '<S16>/z_maxCntRst'
-  172                                           *   '<S17>/Constant1'
-  173                                           *   '<S17>/UnitDelay1'
-  174                                           */
-  175     uint8_T z_ctrlTypSel;                /* Variable: z_ctrlTypSel
-  176                                           * Referenced by: '<S7>/z_ctrlTypSel1'
-  177                                           */
-  178     boolean_T b_phaAdvEna;               /* Variable: b_phaAdvEna
-  179                                           * Referenced by: '<S8>/a_elecPeriod1'
-  180                                           */
-  181   };
-  182   
-  183   /* Parameters (auto storage) */
-  184   typedef struct P_ P;
-  185   
-  186   /* Real-time Model Data Structure */
-  187   struct tag_RTM {
-  188     P *defaultParam;
-  189     ExtU *inputs;
-  190     ExtY *outputs;
-  191     DW *dwork;
-  192   };
-  193   
-  194   /* Constant parameters (auto storage) */
-  195   extern const ConstP rtConstP;
-  196   
-  197   /* Model entry point functions */
-  198   extern void BLDC_controller_initialize(RT_MODEL *const rtM);
-  199   extern void BLDC_controller_step(RT_MODEL *const rtM);
-  200   
-  201   /*-
-  202    * These blocks were eliminated from the model due to optimizations:
-  203    *
-  204    * Block '<S14>/Scope2' : Unused code path elimination
-  205    * Block '<S8>/Scope' : Unused code path elimination
-  206    */
-  207   
-  208   /*-
-  209    * The generated code includes comments that allow you to trace directly
-  210    * back to the appropriate location in the model.  The basic format
-  211    * is <system>/block_name, where system is the system number (uniquely
-  212    * assigned by Simulink) and block_name is the name of the block.
-  213    *
-  214    * Note that this particular code originates from a subsystem build,
-  215    * and has its own system numbers different from the parent model.
-  216    * Refer to the system hierarchy for this subsystem below, and use the
-  217    * MATLAB hilite_system command to trace the generated code back
-  218    * to the parent model.  For example,
-  219    *
-  220    * hilite_system('BLDCmotorControl_R2017b/BLDC_controller')    - opens subsystem BLDCmotorControl_R2017b/BLDC_controller
-  221    * hilite_system('BLDCmotorControl_R2017b/BLDC_controller/Kp') - opens and selects block Kp
-  222    *
-  223    * Here is the system hierarchy for this model
-  224    *
-  225    * '<Root>' : 'BLDCmotorControl_R2017b'
-  226    * '<S1>'   : 'BLDCmotorControl_R2017b/BLDC_controller'
-  227    * '<S2>'   : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller'
-  228    * '<S3>'   : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log1'
-  229    * '<S4>'   : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log2'
-  230    * '<S5>'   : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log3'
-  231    * '<S6>'   : 'BLDCmotorControl_R2017b/BLDC_controller/signal_log6'
-  232    * '<S7>'   : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations'
-  233    * '<S8>'   : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F02_Electrical_Angle_Calculation'
-  234    * '<S9>'   : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection'
-  235    * '<S10>'  : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F04_Control_Type_Management'
-  236    * '<S11>'  : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_01_Edge_Detector'
-  237    * '<S12>'  : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_02_Position_Calculation'
-  238    * '<S13>'  : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_03_Direction_Detection'
-  239    * '<S14>'  : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation'
-  240    * '<S15>'  : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation/Counter_Hold_and_Error_Calculation'
-  241    * '<S16>'  : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation/Motor_Speed_Calculation'
-  242    * '<S17>'  : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F01_Preliminary_Calculations/F01_04_Speed_Calculation/rst_DelayLim'
-  243    * '<S18>'  : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/F03_01_Pure_Trapezoidal_Method'
-  244    * '<S19>'  : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/F03_02_Sinusoidal_Method'
-  245    * '<S20>'  : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/F03_03_Sinusoidal3rd_Method'
-  246    * '<S21>'  : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/signal_log1'
-  247    * '<S22>'  : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/signal_log2'
-  248    * '<S23>'  : 'BLDCmotorControl_R2017b/BLDC_controller/BLDC_controller/F03_Control_Method_Selection/signal_log6'
-  249    */
-  250   #endif                                 /* RTW_HEADER_BLDC_controller_h_ */
-  251   
-  252   /*
-  253    * File trailer for generated code.
-  254    *
-  255    * [EOF]
-  256    */
-  257   
-
-
-

- - \ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_interface.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_interface.html deleted file mode 100644 index cab4ddf..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_interface.html +++ /dev/null @@ -1,788 +0,0 @@ - - - - - -Code Interface Report for BLDC_controller - - - - -

-Code Interface Report for BLDC_controller -

-

-Table of Contents -

- -

- -Entry Point Functions - - -

-

-Function: BLDC_controller_initialize -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Prototype - - -void BLDC_controller_initialize(RT_MODEL *const rtM) - - -
-Description - -Initialization entry point of generated code -
-Timing - -Must be called exactly once -
-Arguments - - - - - - - - - - - - - - - - - -
- -# - - - - -Name - - - - -Data Type - - - - -Description - - -
-1 - -rtM - -RT_MODEL *const - -RTModel -
- -
-Return value - -None -
-Header file - -BLDC_controller.h -
-

-Function: BLDC_controller_step -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Prototype - - -void BLDC_controller_step(RT_MODEL *const rtM) - - -
-Description - -Output entry point of generated code -
-Timing - -Must be called periodically, every 6e-05 seconds -
-Arguments - - - - - - - - - - - - - - - - - -
- -# - - - - -Name - - - - -Data Type - - - - -Description - - -
-1 - -rtM - -RT_MODEL *const - -RTModel -
- -
-Return value - -None -
-Header file - -BLDC_controller.h -
-

- -Inports - - -

-[-] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -Block Name - - - - -Code Identifier - - - - -Data Type - - - - -Dimension - - -
-<S1>/b_hallA - - -Defined externally - - - -uint8_T - -1 -
-<S1>/b_hallB - - -Defined externally - - - -uint8_T - -1 -
-<S1>/b_hallC - - -Defined externally - - - -uint8_T - -1 -
-<S1>/r_DC - - -Defined externally - - - -int32_T - -1 -
-

- -Outports - - -

-[-] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -Block Name - - - - -Code Identifier - - - - -Data Type - - - - -Dimension - - -
-<S1>/DC_phaA - - -Defined externally - - - -int32_T - -1 -
-<S1>/DC_phaB - - -Defined externally - - - -int32_T - -1 -
-<S1>/DC_phaC - - -Defined externally - - - -int32_T - -1 -
-<S1>/n_mot - - -Defined externally - - - -int32_T - -1 -
-<S1>/a_elecAngle - - -Defined externally - - - -int32_T - -1 -
-

- -Interface Parameters - - -

-[-] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -Parameter Source - - - - -Code Identifier - - - - -Data Type - - - - -Dimension - - -
-cf_speedCoef - - -Defined externally - - - -int32_T - -1 -
-cf_speedFilt - - -Defined externally - - - -int32_T - -1 -
-n_commAcvLo - - -Defined externally - - - -int32_T - -1 -
-n_commDeacvHi - - -Defined externally - - - -int32_T - -1 -
-n_motPhaAdvEna - - -Defined externally - - - -int32_T - -1 -
-r_commDCDeacv - - -Defined externally - - - -int32_T - -1 -
-r_phaAdvDC_XA - - -Defined externally - - - -int32_T - -[1 11] -
-a_phaAdv_M1 - - -Defined externally - - - -int16_T - -[1 11] -
-dz_counterHi - - -Defined externally - - - -int16_T - -1 -
-dz_counterLo - - -Defined externally - - - -int16_T - -1 -
-z_maxCntRst - - -Defined externally - - - -int16_T - -1 -
-z_ctrlTypSel - - -Defined externally - - - -uint8_T - -1 -
-b_phaAdvEna - - -Defined externally - - - -boolean_T - -1 -
-

- -Data Stores - - -

-

-No data stores in the model; note that this report lists only data stores with non-auto storage class and global data stores -

- - - - diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_metrics.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_metrics.html deleted file mode 100644 index 2795264..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_metrics.html +++ /dev/null @@ -1,913 +0,0 @@ - - - - -Static Code Metrics Report - - - - -

-Static Code Metrics Report -

-
-

-The static code metrics report provides statistics of the generated code. Metrics are estimated from static analysis of the generated code using the C data types specified in the 'Device details' section of the Configuration Parameter > Hardware Implementation pane: char 8, short 16, int 32, long 32, float 32, double 64, pointer 64 bits. If your model contains a Variant block, the Static Code Metrics Report does not contain data for the inactive variant. Actual object code metrics might differ due to target specific compiler and platform settings. Consult the Code Generation Advisor - - - - - - for options to improve code efficiency. -

- -
-
-

-Table of Contents -

-
    -
  1. - -File Information - - -
  2. -
  3. - -Global Variables - - -
  4. -
  5. - -Function Information - - -
  6. - -
- -
-

-1. File Information [hide] -

- - - - - - -
- - - - - - - - - - -
-

-[-] Summary (excludes ert_main.c) -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-Number of .c files - -: - -2 - -  -
-Number of .h files - -: - -2 - -  -
-Lines of code - -: - -407 - -  -
-Lines - -: - -1,165 - -  -
- -
-

-[-] File details -

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -File Name - - - - -Lines of Code - - - - -Lines - - - - -Generated On - - -
- -BLDC_controller.c - - - -255 - -697 - -06/11/2019 9:15 PM -
- -BLDC_controller.h - - - -81 - -257 - -06/11/2019 9:15 PM -
- -rtwtypes.h - - - -44 - -109 - -06/11/2019 9:15 PM -
- -BLDC_controller_data.c - - - -27 - -102 - -06/11/2019 9:15 PM -
- -
- -
-

-2. Global Variables [hide] -

- - - - - - - - - - -
-Global variables defined in the generated code. -
- - - - - - -
- - - - - - - - - - -
- - - - - - - - - -
- -Global Variable - - - - -Size (bytes) - - - - -Reads / Writes - - - - -Reads / Writes in a Function - - -
- -
- - - - - - - - - -
- -Total - - - - -0 - - - - -0  - - - - - - - -
- -
- -
- -
-

-3. Function Information [hide] -

- - - - - - - - - - -
-View function metrics in a call tree format or table format. Accumulated stack numbers include the estimated stack size of the function plus the maximum of the accumulated stack size of the subroutines that the function calls. -
- - - - - - - - - - -
- - - - - - - - - - -
-View:Call Tree | -Table - - -
- - - - - - -
- - - - - - - - - - - - - - -
- - - - - - - - - - - -
- -Function Name - - - - -Accumulated Stack Size (bytes) - - - - -Self Stack Size (bytes) - - - - -Lines of Code - - - - -Lines - - - - -Complexity - - -
- -
- - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - -
-[+]  -BLDC_controller_step - - - -69 - -60 - -181 - -514 - -24 -
- -
- - - - - - - - -
- - - - - - - - -
- - - - - - - - -
- -
- - - - - - -
- - - - - - - - - - - -
-      -BLDC_controller_initialize - - - -16 - -16 - -6 - -25 - -1 -
- -
- -
- -
- -
- -
- - - - - - - - - - - - -
- -
- - - - diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_replacements.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_replacements.html deleted file mode 100644 index a86a3b0..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_replacements.html +++ /dev/null @@ -1,37 +0,0 @@ - - - - -Code replacements in BLDC_controller - - - - -

-Code replacements in BLDC_controller -

-
- -
-
- -
-

-Code replacements for library 'C89/C90 (ANSI)'. The library comprises:

    -
  • -C89/C90 (ANSI) -
  • - -
- -

-

-To see the replacements and misses in the Code Replacement Viewer, look here. -

-

-No code replacements occurred.
-

- - - - diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_sid_map.js b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_sid_map.js deleted file mode 100644 index d530b3c..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_sid_map.js +++ /dev/null @@ -1,463 +0,0 @@ -function RTW_SidParentMap() { - this.sidParentMap = new Array(); - this.sidParentMap["BLDCmotorControl_R2017b:365"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:1277"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:1278"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:1766"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:2687"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:1759"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:2688"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:2689"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:2690"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:2691"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:1760"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:1761"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:1763"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:2462"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:1765"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:443"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:2692"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:2693"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:444"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:2694"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:2695"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:2696"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:445"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:1831"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:1834"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:1837"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:1828"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:39"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:1762"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:1764"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:628"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:2463"] = "BLDCmotorControl_R2017b:29"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:2"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:3"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:4"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:5"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1660"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:6"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:215"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:282"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:361"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:416"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:417"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1379"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1667"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:418"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:419"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:420"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:421"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:422"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:423"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:424"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:537"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:425"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:426"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:427"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:428"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:429"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:430"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:431"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:432"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:433"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1659"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:434"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:457"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:589"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:447"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:448"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:449"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:450"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:451"] = "BLDCmotorControl_R2017b:2687"; - this.sidParentMap["BLDCmotorControl_R2017b:1832"] = "BLDCmotorControl_R2017b:1831"; - this.sidParentMap["BLDCmotorControl_R2017b:1833"] = "BLDCmotorControl_R2017b:1831"; - this.sidParentMap["BLDCmotorControl_R2017b:1835"] = "BLDCmotorControl_R2017b:1834"; - this.sidParentMap["BLDCmotorControl_R2017b:1836"] = "BLDCmotorControl_R2017b:1834"; - this.sidParentMap["BLDCmotorControl_R2017b:1838"] = "BLDCmotorControl_R2017b:1837"; - this.sidParentMap["BLDCmotorControl_R2017b:1839"] = "BLDCmotorControl_R2017b:1837"; - this.sidParentMap["BLDCmotorControl_R2017b:1829"] = "BLDCmotorControl_R2017b:1828"; - this.sidParentMap["BLDCmotorControl_R2017b:1830"] = "BLDCmotorControl_R2017b:1828"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:7"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:8"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:9"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1375"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1661"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:26"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:10"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:38"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:59"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1377"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:179"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:180"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1378"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1481"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:183"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:184"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1633"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1482"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1666"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1382"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1678"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:186"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:187"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:188"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:189"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:190"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:191"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:192"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:193"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:194"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:195"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:196"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:197"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1662"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1677"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:198"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1376"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:199"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:200"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1384"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:202"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1489"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1490"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:205"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:206"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1634"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1313"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:208"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:209"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:210"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:211"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1483"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1484"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1679"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1383"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:212"] = "BLDCmotorControl_R2017b:2687:6"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:535"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:216"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:217"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1460"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1461"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1680"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:221"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1464"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1465"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1466"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1467"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1669"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:231"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:518"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:534"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:232"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:233"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:235"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1468"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1469"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1470"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1471"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1472"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:241"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:542"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:543"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:242"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:243"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1462"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1463"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1681"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:578"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1473"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:536"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:538"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1668"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:623"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:258"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:545"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1474"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1670"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1475"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:262"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1476"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1477"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:546"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1478"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:514"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1479"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:512"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:547"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:521"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1671"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:522"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:278"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:279"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:283"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:284"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:285"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:305"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:295"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:315"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:316"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:317"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:318"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:319"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:320"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:321"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:322"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:323"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:324"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:325"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:326"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:327"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:328"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:329"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:330"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:331"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:332"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:333"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:334"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:335"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:336"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:337"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:338"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:339"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:340"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:341"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:342"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:343"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:344"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:345"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:346"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:347"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:348"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:349"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:352"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:355"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:358"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:359"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:360"] = "BLDCmotorControl_R2017b:2687:282"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:362"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:364"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:365"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:366"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:367"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1385"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:370"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:372"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:373"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:374"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:375"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1389"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:376"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:377"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:378"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:379"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:380"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:381"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:382"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:385"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:386"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:387"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:388"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1386"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:389"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:391"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:393"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:394"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:395"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:396"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:398"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:401"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:411"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:412"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:413"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:414"] = "BLDCmotorControl_R2017b:2687:361"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:27"] = "BLDCmotorControl_R2017b:2687:26"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:28"] = "BLDCmotorControl_R2017b:2687:26"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:29"] = "BLDCmotorControl_R2017b:2687:26"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1535"] = "BLDCmotorControl_R2017b:2687:26"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:31"] = "BLDCmotorControl_R2017b:2687:26"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:32"] = "BLDCmotorControl_R2017b:2687:26"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:33"] = "BLDCmotorControl_R2017b:2687:26"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:37"] = "BLDCmotorControl_R2017b:2687:26"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:11"] = "BLDCmotorControl_R2017b:2687:10"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:12"] = "BLDCmotorControl_R2017b:2687:10"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:13"] = "BLDCmotorControl_R2017b:2687:10"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:14"] = "BLDCmotorControl_R2017b:2687:10"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:15"] = "BLDCmotorControl_R2017b:2687:10"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:17"] = "BLDCmotorControl_R2017b:2687:10"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:18"] = "BLDCmotorControl_R2017b:2687:10"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:22"] = "BLDCmotorControl_R2017b:2687:10"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:23"] = "BLDCmotorControl_R2017b:2687:10"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:39"] = "BLDCmotorControl_R2017b:2687:38"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1314"] = "BLDCmotorControl_R2017b:2687:38"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:42"] = "BLDCmotorControl_R2017b:2687:38"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:43"] = "BLDCmotorControl_R2017b:2687:38"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:44"] = "BLDCmotorControl_R2017b:2687:38"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:45"] = "BLDCmotorControl_R2017b:2687:38"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:48"] = "BLDCmotorControl_R2017b:2687:38"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:49"] = "BLDCmotorControl_R2017b:2687:38"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:50"] = "BLDCmotorControl_R2017b:2687:38"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:51"] = "BLDCmotorControl_R2017b:2687:38"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:52"] = "BLDCmotorControl_R2017b:2687:38"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1631"] = "BLDCmotorControl_R2017b:2687:38"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1318"] = "BLDCmotorControl_R2017b:2687:38"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:57"] = "BLDCmotorControl_R2017b:2687:38"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1632"] = "BLDCmotorControl_R2017b:2687:38"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1373"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1663"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1370"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:60"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:61"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1629"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1366"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1321"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:64"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1340"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:80"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:81"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:660"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:83"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1486"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1523"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1641"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1642"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:86"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1665"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1380"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1455"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1361"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1675"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1323"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1517"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1324"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:92"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1397"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1485"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1521"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:972"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1395"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1533"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:99"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:100"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1664"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1398"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1371"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1372"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1374"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1630"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:106"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1674"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:786"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1400"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:108"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1362"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1339"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1325"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1401"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:659"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:842"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1524"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1326"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1327"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:141"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1525"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1526"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:142"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1507"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1518"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1328"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1329"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1651"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:173"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1676"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1381"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1487"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1488"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1341"] = "BLDCmotorControl_R2017b:2687:1340"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1344"] = "BLDCmotorControl_R2017b:2687:1340"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1454"] = "BLDCmotorControl_R2017b:2687:1340"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:169"] = "BLDCmotorControl_R2017b:2687:1340"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1358"] = "BLDCmotorControl_R2017b:2687:1340"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1359"] = "BLDCmotorControl_R2017b:2687:1340"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1431"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1640"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1430"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1639"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1672"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1637"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1433"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1434"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1435"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1436"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1437"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1438"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1439"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1623"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1635"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1636"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1645"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1646"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1647"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1648"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1649"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1440"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1650"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1627"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1624"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1628"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1443"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1444"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1638"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1446"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1447"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1448"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1625"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1450"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1451"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1673"] = "BLDCmotorControl_R2017b:2687:1401"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1614"] = "BLDCmotorControl_R2017b:2687:1651"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1615"] = "BLDCmotorControl_R2017b:2687:1651"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1616"] = "BLDCmotorControl_R2017b:2687:1651"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1617"] = "BLDCmotorControl_R2017b:2687:1651"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1618"] = "BLDCmotorControl_R2017b:2687:1651"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1619"] = "BLDCmotorControl_R2017b:2687:1651"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1620"] = "BLDCmotorControl_R2017b:2687:1651"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1621"] = "BLDCmotorControl_R2017b:2687:1651"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1651:1622"] = "BLDCmotorControl_R2017b:2687:1651"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:286"] = "BLDCmotorControl_R2017b:2687:285"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:287"] = "BLDCmotorControl_R2017b:2687:285"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:288"] = "BLDCmotorControl_R2017b:2687:285"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:289"] = "BLDCmotorControl_R2017b:2687:285"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:290"] = "BLDCmotorControl_R2017b:2687:285"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:291"] = "BLDCmotorControl_R2017b:2687:285"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:292"] = "BLDCmotorControl_R2017b:2687:285"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:293"] = "BLDCmotorControl_R2017b:2687:285"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:294"] = "BLDCmotorControl_R2017b:2687:285"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:306"] = "BLDCmotorControl_R2017b:2687:305"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:307"] = "BLDCmotorControl_R2017b:2687:305"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:308"] = "BLDCmotorControl_R2017b:2687:305"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:309"] = "BLDCmotorControl_R2017b:2687:305"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:310"] = "BLDCmotorControl_R2017b:2687:305"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:311"] = "BLDCmotorControl_R2017b:2687:305"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:312"] = "BLDCmotorControl_R2017b:2687:305"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:313"] = "BLDCmotorControl_R2017b:2687:305"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:314"] = "BLDCmotorControl_R2017b:2687:305"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:296"] = "BLDCmotorControl_R2017b:2687:295"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:297"] = "BLDCmotorControl_R2017b:2687:295"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:298"] = "BLDCmotorControl_R2017b:2687:295"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:299"] = "BLDCmotorControl_R2017b:2687:295"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:300"] = "BLDCmotorControl_R2017b:2687:295"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:301"] = "BLDCmotorControl_R2017b:2687:295"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:302"] = "BLDCmotorControl_R2017b:2687:295"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:303"] = "BLDCmotorControl_R2017b:2687:295"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:304"] = "BLDCmotorControl_R2017b:2687:295"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:350"] = "BLDCmotorControl_R2017b:2687:349"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:351"] = "BLDCmotorControl_R2017b:2687:349"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:353"] = "BLDCmotorControl_R2017b:2687:352"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:354"] = "BLDCmotorControl_R2017b:2687:352"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:356"] = "BLDCmotorControl_R2017b:2687:355"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:357"] = "BLDCmotorControl_R2017b:2687:355"; - this.getParentSid = function(sid) { return this.sidParentMap[sid];} -} - RTW_SidParentMap.instance = new RTW_SidParentMap(); diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_subsystems.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_subsystems.html deleted file mode 100644 index 9a6f4de..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_subsystems.html +++ /dev/null @@ -1,220 +0,0 @@ - - - - -Non-virtual subsystems in BLDC_controller - - - - -

-Non-virtual subsystems in BLDC_controller -

-
- -
-
- -
-

-1. Code Mapping [hide] -

- - - - - - - - - - -
-

-The following table:

    -
  • -provides a mapping from the non-virtual subsystems in the model to functions or reusable functions in the generated code and -
  • -
  • -notes exceptions that caused some non-virtual subsystems to not reuse code even though they were assigned a function packaging setting ('Function packaging' entry on the Subsystem Block Dialog) of 'Auto' or 'Reusable function'. -
  • - -
- -

- -
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- -Subsystem - - - - -Reuse Setting - - - - -Reuse Outcome - - - - -Outcome Diagnostic - - -
-<S15> - -Auto - -Inline - -normal -
-<S13> - -Auto - -Inline - -normal -
-<S18> - -Auto - -Inline - -normal -
-<S19> - -Auto - -Inline - -normal -
-<S20> - -Auto - -Inline - -normal -
-<S8> - -Auto - -Inline - -normal -
-<S1> - -Inline - -Inline - -normal -
- -
-

-2. Code Reuse Exceptions [hide] -

- - - - - - - - - - -
-

-The following section provides details on each exception that caused a non-virtual subsystem with a function packaging setting of

    -
  • -'Auto' to become an inlined code segment, -
  • -
  • -'Auto' to become a non-reusable function without arguments, or -
  • -
  • -'Reusable function' to become a non-reusable function without arguments. -
  • - -
-Note:This section does not report graphically identical non-virtual subsystems marked as 'Auto' that were not reused due to differences in their functional properties (such as dimensions, datatypes, work vectors, parameters, etc.). You may identify reasons for non-reuse in such cases by inspecting the differences in the functional attributes of the subsystems in the model or in the inlined generated code. -

- -
-
No reuse exception in model -
- - - - diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_survey.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_survey.html deleted file mode 100644 index 82b1d69..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_survey.html +++ /dev/null @@ -1,189 +0,0 @@ - - - - - - -Code Generation Report for 'BLDC_controller' - - - - -

-Code Generation Report for 'BLDC_controller' -

-
- -
-
- -
-

-Model Information -

- - - - - - -
-

- - - - - - - - - - - - - - - - - -
-Author - -MathWorks -
-Model Version - -1.883 -
-Tasking Mode - -MultiTasking -
-
- -Configuration settings at time of code generation - - -

- -
-

-Code Information -

- - - - - - -
-

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
-System Target File - -ert.tlc -
-Hardware Device Type - -ARM Compatible->ARM Cortex -
-Simulink Coder Version - -8.13 (R2017b) 24-Jul-2017 -
-Timestamp of Generated Source Code - -Tue Jun 11 21:14:57 2019 -
- - - -
-Type of Build - -Subsystem -
- Memory Information - - -
-Objectives Specified - -Execution efficiency, RAM efficiency -
- -

- -
-

-Additional Information -

- - - - - - -
- - - - - - - -
-Code Generation Advisor - -Not run -
- -
- - - - diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_trace.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_trace.html deleted file mode 100644 index 76b0a2f..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_trace.html +++ /dev/null @@ -1,39 +0,0 @@ -Traceability Report for BLDC_controller - - -

Traceability Report for BLDC_controller

Table of Contents

  1. Eliminated / Virtual Blocks
  2. Traceable Simulink Blocks / Stateflow Objects / MATLAB Functions

Eliminated / Virtual Blocks

Block NameComment
<S1>/b_hallA -

Inport

<S1>/b_hallB

Inport

<S1>/b_hallC

Inport

<S1>/r_DC

Inport

<S1>/BLDC_controller

Virtual SubSystem

<S1>/From1

From

<S1>/From18

From

<S1>/From19

From

<S1>/From20

From

<S1>/From21

From

<S1>/From5

From

<S1>/From6

From

<S1>/From7

From

<S1>/From8

From

<S1>/Goto

Goto

<S1>/Goto1

Goto

<S1>/Goto18

Goto

<S1>/Goto19

Goto

<S1>/Goto2

Goto

<S1>/Goto20

Goto

<S1>/Goto21

Goto

<S1>/Goto22

Goto

<S1>/Goto3

Goto

<S1>/signal_log1

Virtual SubSystem

<S1>/signal_log2

Virtual SubSystem

<S1>/signal_log3

Virtual SubSystem

<S1>/signal_log6

Virtual SubSystem

<S1>/DC_phaA

Outport

<S1>/DC_phaB

Outport

<S1>/DC_phaC

Outport

<S1>/n_mot

Outport

<S1>/a_elecAngle

Outport

<S2>/b_hallA -

Inport

<S2>/b_hallB

Inport

<S2>/b_hallC

Inport

<S2>/r_DC

Inport

<S2>/F01_Preliminary_Calculations

Virtual SubSystem

<S2>/F03_Control_Method_Selection

Virtual SubSystem

<S2>/F04_Control_Type_Management

Virtual SubSystem

<S2>/From

From

<S2>/From1

From

<S2>/From10

From

<S2>/From11

From

<S2>/From2

From

<S2>/From3

From

<S2>/From4

From

<S2>/From5

From

<S2>/From6

From

<S2>/From7

From

<S2>/From8

From

<S2>/From9

From

<S2>/Goto

Goto

<S2>/Goto1

Goto

<S2>/Goto2

Goto

<S2>/Goto3

Goto

<S2>/Goto4

Goto

<S2>/Goto5

Goto

<S2>/Goto6

Goto

<S2>/Goto7

Goto

<S2>/Goto8

Goto

<S2>/Goto9

Goto

<S2>/Implemented_control_methods

Empty SubSystem

<S2>/Model_Info

Empty SubSystem

<S2>/DC_phaA

Outport

<S2>/DC_phaB

Outport

<S2>/DC_phaC

Outport

<S2>/n_mot

Outport

<S2>/a_elecAngle

Outport

<S3>/b_hallB

Inport

<S3>/Terminator_1

Terminator

<S4>/b_hallC

Inport

<S4>/Terminator_1

Terminator

<S5>/r_DC

Inport

<S5>/Terminator_1

Terminator

<S6>/b_hallA

Inport

<S6>/Terminator_1

Terminator

<S7>/b_hallA

Inport

<S7>/b_hallB

Inport

<S7>/b_hallC

Inport

<S7>/r_DC

Inport

<S7>/r_DCabs

Inport

<S7>/F01_01_Edge_Detector

Virtual SubSystem

<S7>/F01_02_Position_Calculation

Virtual SubSystem

<S7>/F01_04_Speed_Calculation

Virtual SubSystem

<S7>/From

From

<S7>/From1

From

<S7>/From10

From

<S7>/From11

From

<S7>/From12

From

<S7>/From13

From

<S7>/From14

From

<S7>/From15

From

<S7>/From16

From

<S7>/From17

From

<S7>/From18

From

<S7>/From19

From

<S7>/From2

From

<S7>/From3

From

<S7>/From36

From

<S7>/From38

From

<S7>/From4

From

<S7>/From5

From

<S7>/From6

From

<S7>/From7

From

<S7>/From8

From

<S7>/From9

From

<S7>/Goto

Goto

<S7>/Goto1

Goto

<S7>/Goto10

Goto

<S7>/Goto11

Goto

<S7>/Goto16

Goto

<S7>/Goto18

Goto

<S7>/Goto2

Goto

<S7>/Goto21

Goto

<S7>/Goto3

Goto

<S7>/Goto4

Goto

<S7>/Goto5

Goto

<S7>/Goto6

Goto

<S7>/Goto7

Goto

<S7>/Goto8

Goto

<S7>/Goto9

Goto

<S7>/z_ctrlTypSel

Outport

<S7>/z_pos

Outport

<S7>/z_dir

Outport

<S7>/z_counter

Outport

<S7>/z_counterRaw

Outport

<S7>/n_motAbs

Outport

<S7>/b_advCtrlEna

Outport

<S7>/n_mot

Outport

<S8>/r_DCabs

Inport

<S8>/z_pos

Inport

<S8>/z_dir

Inport

<S8>/z_counter

Inport

<S8>/z_counterRaw

Inport

<S8>/n_motAbs

Inport

<S8>/Constant2

Eliminated by code generation optimization

<S8>/From1

From

<S8>/From10

From

<S8>/From11

From

<S8>/From12

From

<S8>/From2

From

<S8>/From3

From

<S8>/From5

From

<S8>/From51

From

<S8>/From52

From

<S8>/From53

From

<S8>/From54

From

<S8>/From59

From

<S8>/From6

From

<S8>/From7

From

<S8>/From9

From

<S8>/Goto

Goto

<S8>/Goto1

Goto

<S8>/Goto2

Goto

<S8>/Goto3

Goto

<S8>/Goto4

Goto

<S8>/Goto5

Goto

<S8>/Goto7

Goto

<S8>/Goto8

Goto

<S8>/Goto9

Goto

<S8>/Mux

Mux

<S8>/Scope

Unused code path elimination

<S8>/a_elecPeriod2

Eliminated by code generation optimization

<S9>/z_ctrlTypSel

Inport

<S9>/a_elecAngleAdv

Inport

<S9>/From

From

<S9>/From10

From

<S9>/From13

From

<S9>/From14

From

<S9>/From15

From

<S9>/From16

From

<S9>/From17

From

<S9>/From18

From

<S9>/From19

From

<S9>/From20

From

<S9>/From4

From

<S9>/From5

From

<S9>/From6

From

<S9>/From7

From

<S9>/From8

From

<S9>/From9

From

<S9>/Goto

Goto

<S9>/Goto1

Goto

<S9>/Goto10

Goto

<S9>/Goto11

Goto

<S9>/Goto12

Goto

<S9>/Goto14

Goto

<S9>/Goto2

Goto

<S9>/Goto3

Goto

<S9>/Goto4

Goto

<S9>/Goto5

Goto

<S9>/Goto6

Goto

<S9>/Goto7

Goto

<S9>/Goto8

Goto

<S9>/Goto9

Goto

<S9>/signal_log1

Virtual SubSystem

<S9>/signal_log2

Virtual SubSystem

<S9>/signal_log6

Virtual SubSystem

<S9>/r_phaA

Outport

<S9>/r_phaB

Outport

<S9>/r_phaC

Outport

<S10>/r_DC

Inport

<S10>/r_phaA

Inport

<S10>/r_phaB

Inport

<S10>/r_phaC

Inport

<S10>/z_pos

Inport

<S10>/b_advCtrlEna

Inport

<S10>/Demux

Demux

<S10>/From

From

<S10>/From1

From

<S10>/From10

From

<S10>/From2

From

<S10>/From27

From

<S10>/From39

From

<S10>/From40

From

<S10>/From41

From

<S10>/From8

From

<S10>/From9

From

<S10>/Goto

Goto

<S10>/Goto1

Goto

<S10>/Goto10

Goto

<S10>/Goto2

Goto

<S10>/Goto4

Goto

<S10>/Goto6

Goto

<S10>/Goto7

Goto

<S10>/Goto8

Goto

<S10>/Goto9

Goto

<S10>/Mux2

Mux

<S10>/DC_phaA

Outport

<S10>/DC_phaB

Outport

<S10>/DC_phaC

Outport

<S11>/b_hallA

Inport

<S11>/b_hallB

Inport

<S11>/b_hallC

Inport

<S11>/b_edge

Outport

<S12>/b_hallA

Inport

<S12>/b_hallB

Inport

<S12>/b_hallC

Inport

<S12>/z_pos

Outport

<S13>/z_pos

Inport

<S13>/z_dir

Outport

<S13>/z_dirPrev

Outport

<S14>/r_DC

Inport

<S14>/r_DCabs

Inport

<S14>/z_ctrlTypSel

Inport

<S14>/b_edge

Inport

<S14>/z_dir

Inport

<S14>/z_dirPrev

Inport

<S14>/From

From

<S14>/From1

From

<S14>/From10

From

<S14>/From11

From

<S14>/From12

From

<S14>/From13

From

<S14>/From14

From

<S14>/From15

From

<S14>/From16

From

<S14>/From17

From

<S14>/From18

From

<S14>/From19

From

<S14>/From2

From

<S14>/From20

From

<S14>/From29

From

<S14>/From3

From

<S14>/From30

From

<S14>/From4

From

<S14>/From42

From

<S14>/From5

From

<S14>/From6

From

<S14>/From7

From

<S14>/From8

From

<S14>/From9

From

<S14>/Goto

Goto

<S14>/Goto1

Goto

<S14>/Goto10

Goto

<S14>/Goto15

Goto

<S14>/Goto16

Goto

<S14>/Goto17

Goto

<S14>/Goto18

Goto

<S14>/Goto2

Goto

<S14>/Goto22

Goto

<S14>/Goto3

Goto

<S14>/Goto5

Goto

<S14>/Goto6

Goto

<S14>/Goto8

Goto

<S14>/Goto9

Goto

<S14>/Motor_Speed_Calculation

Virtual SubSystem

<S14>/Mux1

Mux

<S14>/Mux2

Mux

<S14>/Scope2

Unused code path elimination

<S14>/rst_DelayLim

Masked SubSystem

<S14>/n_mot

Outport

<S14>/n_motAbs

Outport

<S14>/b_advCtrlEna

Outport

<S14>/z_counter

Outport

<S14>/z_counterRaw

Outport

<S15>/dz_counter

Outport

<S16>/z_dir

Inport

<S16>/z_dirPrev

Inport

<S16>/z_counter

Inport

<S16>/z_counterRaw

Inport

<S16>/From1

From

<S16>/From14

From

<S16>/From15

From

<S16>/From17

From

<S16>/From42

From

<S16>/From8

From

<S16>/Goto

Goto

<S16>/Goto1

Goto

<S16>/Goto2

Goto

<S16>/Goto22

Goto

<S16>/Goto3

Goto

<S16>/n_motRaw

Outport

<S16>/n_mot

Outport

<S16>/n_motAbs

Outport

<S17>/u

Inport

<S17>/rst

Inport

<S17>/y

Outport

<S18>/a_elecAngleAdv

Inport

<S18>/r_phaA_Trap

Outport

<S18>/r_phaB_Trap

Outport

<S18>/r_phaC_Trap

Outport

<S19>/a_elecAngleAdv

Inport

<S19>/r_phaA_Sin

Outport

<S19>/r_phaB_Sin

Outport

<S19>/r_phaC_Sin

Outport

<S20>/a_elecAngleAdv

Inport

<S20>/r_phaA_Sin3

Outport

<S20>/r_phaB_Sin3

Outport

<S20>/r_phaC_Sin3

Outport

<S21>/r_phaB

Inport

<S21>/Terminator_1

Terminator

<S22>/r_phaC

Inport

<S22>/Terminator_1

Terminator

<S23>/r_phaA

Inport

<S23>/Terminator_1

Terminator

Traceable Simulink Blocks / Stateflow Objects / MATLAB Functions

Subsystem: BLDCmotorControl_R2017b/BLDC_controller

No traceable objects in this Subsystem.

Subsystem: BLDCmotorControl_R2017b/BLDC_controller/signal_log1

No traceable objects in this Subsystem.

Subsystem: BLDCmotorControl_R2017b/BLDC_controller/signal_log2

No traceable objects in this Subsystem.

Subsystem: BLDCmotorControl_R2017b/BLDC_controller/signal_log3

No traceable objects in this Subsystem.

Subsystem: BLDCmotorControl_R2017b/BLDC_controller/signal_log6

No traceable objects in this Subsystem.

\ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_traceInfo.js b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_traceInfo.js deleted file mode 100644 index d20fd5f..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_traceInfo.js +++ /dev/null @@ -1,1244 +0,0 @@ -function RTW_Sid2UrlHash() { - this.urlHashMap = new Array(); - /* /Abs1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1660"] = "BLDC_controller.c:179,182,183,185,188"; - /* /F02_Electrical_Angle_Calculation */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:215"] = "BLDC_controller.c:384,450"; - /* /If1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:434"] = "BLDC_controller.c:363,366,367,368,369,372,373,383,453,672,673&BLDC_controller.h:52"; - /* /F01_03_Direction_Detection */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:38"] = "BLDC_controller.c:216,253"; - /* /If2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1313"] = "BLDC_controller.c:206,215"; - /* /z_ctrlTypSel1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:208"] = "BLDC_controller.c:364,368,456,458,555,571&BLDC_controller.h:176&ert_main.c:93"; - /* /Action Port */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:221"] = "BLDC_controller.c:385"; - /* /Constant16 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1464"] = "BLDC_controller.c:389,400"; - /* /Constant2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1465"] = "msg=rtwMsg_CodeGenerationReducedBlock&block=BLDCmotorControl_R2017b:2687:1465"; - /* /Divide4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1466"] = "BLDC_controller.c:412,417"; - /* /Divide5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1467"] = "BLDC_controller.c:413,418"; - /* /Logical -Operator2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1668"] = "BLDC_controller.c:423,427"; - /* /Math -Function */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:623"] = "BLDC_controller.c:443,444"; - /* /Product2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:545"] = "BLDC_controller.c:439,441"; - /* /Product6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1474"] = "BLDC_controller.c:414,417"; - /* /Relational -Operator4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1670"] = "BLDC_controller.c:425,427"; - /* /Relational -Operator7 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1475"] = "BLDC_controller.c:395,400"; - /* /Scope */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:262"] = "msg=rtwMsg_reducedBlock&block=BLDCmotorControl_R2017b:2687:262"; - /* /Sum1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1476"] = "BLDC_controller.c:398,403,405"; - /* /Sum2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1477"] = "BLDC_controller.c:415,417,418"; - /* /Sum3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:546"] = "BLDC_controller.c:437,441"; - /* /Switch3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1478"] = "BLDC_controller.c:387,400,401,403,408"; - /* /Switch_PhaAdv */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:514"] = "BLDC_controller.c:420,427,444,446,449&BLDC_controller.h:39"; - /* /a_elecAngle1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1479"] = "BLDC_controller.c:411,417,418"; - /* /a_elecPeriod1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:512"] = "BLDC_controller.c:421,427&BLDC_controller.h:179&ert_main.c:98"; - /* /a_elecPeriod2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:547"] = "msg=rtwMsg_CodeGenerationReducedBlock&block=BLDCmotorControl_R2017b:2687:547"; - /* /a_phaAdv_M2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:521"] = "BLDC_controller.c:433,434,435&BLDC_controller.h:159&ert_main.c:68"; - /* /n_motPhaAdvEna */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1671"] = "BLDC_controller.c:422,427&BLDC_controller.h:150&ert_main.c:53"; - /* /r_phaAdvDC_XA */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:522"] = "BLDC_controller.c:428,429,430,431&BLDC_controller.h:156&ert_main.c:63"; - /* /a_elecAngleAdv */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:278"] = "BLDC_controller.c:374,375"; - /* /a_elecAngle */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:279"] = "BLDC_controller.c:378,380"; - /* /F03_01_Pure_Trapezoidal_Method */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:285"] = "BLDC_controller.c:460,479"; - /* /F03_02_Sinusoidal_Method */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:305"] = "BLDC_controller.c:483,502"; - /* /F03_03_Sinusoidal3rd_Method */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:295"] = "BLDC_controller.c:506,525"; - /* /Merge */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:345"] = "BLDC_controller.h:41"; - /* /Merge1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:346"] = "BLDC_controller.h:42"; - /* /Merge2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:347"] = "BLDC_controller.h:43"; - /* /Switch Case */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:348"] = "BLDC_controller.c:455,458,459,482,505,529"; - /* /Constant1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:370"] = "BLDC_controller.c:618,621,624,627,654,657"; - /* /Divide1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:373"] = "BLDC_controller.c:619,621,625,627,655,657"; - /* /Divide2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:374"] = "BLDC_controller.c:559,610,611,612"; - /* /Divide4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:375"] = "BLDC_controller.c:560,573,574,575"; - /* /Switch1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:401"] = "BLDC_controller.c:551,571,573,574,575,610,611,612,615"; - /* /z_commutMap_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:411"] = "BLDC_controller.c:558,568,577,578,580,583,584,585,587,590,592,596,599,602,606,609,610,611,612&BLDC_controller.h:108&BLDC_controller_data.c:86"; - /* /Bitwise -Operator */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1535"] = "BLDC_controller.c:190,198,199"; - /* /UnitDelay */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:31"] = "BLDC_controller.c:194,199,629,632&BLDC_controller.h:53"; - /* /UnitDelay1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:32"] = "BLDC_controller.c:195,199,634,637&BLDC_controller.h:54"; - /* /UnitDelay2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:33"] = "BLDC_controller.c:196,200,639,642&BLDC_controller.h:55"; - /* /Selector */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:14"] = "BLDC_controller.c:224,227,249,251,396,401,403,404,405,566,577,584,594,599,604"; - /* /Sum */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:15"] = "BLDC_controller.c:169,176,177,397,403,404,405"; - /* /g_Ha */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:17"] = "BLDC_controller.c:170,176,390,404"; - /* /g_Hb */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:18"] = "BLDC_controller.c:171,177,391,404,405"; - /* /vec_hallToPos */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:22"] = "BLDC_controller.c:223,227,248,251,388,401,403,552,577,584,593,599,603&BLDC_controller.h:113&BLDC_controller_data.c:92"; - /* /Action Port */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1314"] = "BLDC_controller.c:217"; - /* /Constant20 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:42"] = "BLDC_controller.c:231,239"; - /* /Constant23 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:43"] = "BLDC_controller.c:232,242"; - /* /Constant24 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:44"] = "BLDC_controller.c:233,240"; - /* /Constant8 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:45"] = "BLDC_controller.c:234,239"; - /* /Logical -Operator3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:48"] = "BLDC_controller.c:235,239"; - /* /Relational -Operator1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:49"] = "BLDC_controller.c:236,239"; - /* /Relational -Operator6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:50"] = "BLDC_controller.c:237,239"; - /* /Sum2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:51"] = "BLDC_controller.c:222,227"; - /* /Switch2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:52"] = "BLDC_controller.c:230,239,240,242,245&BLDC_controller.h:50"; - /* /UnitDelay1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1631"] = "BLDC_controller.c:219,220&BLDC_controller.h:49"; - /* /UnitDelay2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1318"] = "BLDC_controller.c:225,228,247,251&BLDC_controller.h:51"; - /* /Abs2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1366"] = "BLDC_controller.c:345,346,347,349,352"; - /* /CTRL_COMM */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1321"] = "BLDC_controller.c:553,571"; - /* /Constant6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:64"] = "BLDC_controller.c:203,254,262"; - /* /Counter_Hold_and_Error_Calculation */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1340"] = "BLDC_controller.c:256,274,681,688"; - /* /If1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1339"] = "BLDC_controller.c:202,215,291"; - /* /Logical -Operator2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1325"] = "BLDC_controller.c:557,571,572"; - /* /Relational -Operator1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1524"] = "BLDC_controller.c:561,571,572"; - /* /Relational -Operator3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1326"] = "BLDC_controller.c:562,571"; - /* /Relational -Operator4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1327"] = "BLDC_controller.c:563,571"; - /* /Scope2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:141"] = "msg=rtwMsg_reducedBlock&block=BLDCmotorControl_R2017b:2687:141"; - /* /Sign */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1525"] = "BLDC_controller.c:531,532,533,535,538"; - /* /Sign1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1526"] = "BLDC_controller.c:540,543,544,546,549"; - /* /Sum1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:142"] = "BLDC_controller.c:209,254,265,288,293,294,304,306"; - /* /UnitDelay1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1507"] = "BLDC_controller.c:212,259,266,647,648&BLDC_controller.h:47"; - /* /dz_counter */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1518"] = "BLDC_controller.c:354,355,356,358,359,564,572&BLDC_controller.h:57,162,165&ert_main.c:73,78"; - /* /n_commDeacv */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1328"] = "BLDC_controller.c:336,337,338,340,341,565,572&BLDC_controller.h:56,144,147&ert_main.c:43,48"; - /* /r_commDCDeacv */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1329"] = "BLDC_controller.c:554,571&BLDC_controller.h:153&ert_main.c:58"; - /* /z_counterRawPrev */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1341"] = "BLDC_controller.c:207,259,264&BLDC_controller.h:44"; - /* /Action Port */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1344"] = "BLDC_controller.c:257"; - /* /Sum4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1454"] = "BLDC_controller.c:261,269&BLDC_controller.h:45"; - /* /z_counter2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:169"] = "BLDC_controller.c:267,269,271,272,682,683&BLDC_controller.h:48,170&ert_main.c:85"; - /* /z_counter */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1358"] = "BLDC_controller.c:685,686&BLDC_controller.h:169&ert_main.c:84"; - /* /Abs5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1672"] = "BLDC_controller.c:327,328,329,331,334"; - /* /Constant1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1637"] = "BLDC_controller.c:297,307"; - /* /Constant2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1433"] = "BLDC_controller.c:315,324"; - /* /Constant3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1434"] = "BLDC_controller.c:316,325"; - /* /Divide1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1435"] = "BLDC_controller.c:318,324,325"; - /* /Divide2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1436"] = "BLDC_controller.c:314,324,325"; - /* /Divide3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1437"] = "BLDC_controller.c:319,324"; - /* /Divide4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1438"] = "BLDC_controller.c:301,309"; - /* /Logical -Operator1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1627"] = "BLDC_controller.c:300,306"; - /* /Relational -Operator2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1624"] = "BLDC_controller.c:302,306"; - /* /Relational -Operator5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1628"] = "BLDC_controller.c:303,306"; - /* /Sum1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1443"] = "BLDC_controller.c:320,324"; - /* /Sum2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1444"] = "BLDC_controller.c:321,324"; - /* /Switch1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1638"] = "BLDC_controller.c:296,306,307,309,312"; - /* /UnitDelay2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1446"] = "BLDC_controller.c:322,324,650,651&BLDC_controller.h:40"; - /* /cf_spdCoef */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1447"] = "BLDC_controller.c:298,309&BLDC_controller.h:138&ert_main.c:33"; - /* /cf_speedFilt */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1448"] = "BLDC_controller.c:317,324,325&BLDC_controller.h:141&ert_main.c:38"; - /* /z_maxCntRst */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1625"] = "BLDC_controller.c:299,306&BLDC_controller.h:171&ert_main.c:86"; - /* /Constant1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1616"] = "BLDC_controller.c:204,276,283,285&BLDC_controller.h:172&ert_main.c:87"; - /* /Constant23 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1617"] = "BLDC_controller.c:205,254,263"; - /* /Relational -Operator1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1618"] = "BLDC_controller.c:208,276"; - /* /Switch1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1619"] = "BLDC_controller.c:210,215,254,288"; - /* /Switch2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1620"] = "BLDC_controller.c:211,276,277,280,282,285"; - /* /UnitDelay1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1621"] = "BLDC_controller.c:213,276,278,280,644,645,678,679&BLDC_controller.h:46,173&ert_main.c:88"; - /* /Action Port */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:287"] = "BLDC_controller.c:461"; - /* /a_trapElecAngle_XA */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:288"] = "BLDC_controller.c:463,464,465"; - /* /r_trapPhaA_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:289"] = "BLDC_controller.c:467,468,469&BLDC_controller.h:63&BLDC_controller_data.c:29"; - /* /r_trapPhaB_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:290"] = "BLDC_controller.c:471,472,473&BLDC_controller.h:68&BLDC_controller_data.c:34"; - /* /r_trapPhaC_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:291"] = "BLDC_controller.c:475,476,477&BLDC_controller.h:73&BLDC_controller_data.c:39"; - /* /Action Port */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:307"] = "BLDC_controller.c:484"; - /* /a_sinElecAngle_XA */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:308"] = "BLDC_controller.c:486,487,488"; - /* /r_sinPhaA_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:309"] = "BLDC_controller.c:490,491,492&BLDC_controller.h:78&BLDC_controller_data.c:44"; - /* /r_sinPhaB_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:310"] = "BLDC_controller.c:494,495,496&BLDC_controller.h:83&BLDC_controller_data.c:51"; - /* /r_sinPhaC_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:311"] = "BLDC_controller.c:498,499,500&BLDC_controller.h:88&BLDC_controller_data.c:58"; - /* /Action Port */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:297"] = "BLDC_controller.c:507"; - /* /a_sinElecAngle_XA */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:298"] = "BLDC_controller.c:509,510,511"; - /* /r_sin3PhaA_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:299"] = "BLDC_controller.c:513,514,515&BLDC_controller.h:93&BLDC_controller_data.c:65"; - /* /r_sin3PhaB_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:300"] = "BLDC_controller.c:517,518,519&BLDC_controller.h:98&BLDC_controller_data.c:72"; - /* /r_sin3PhaC_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:301"] = "BLDC_controller.c:521,522,523&BLDC_controller.h:103&BLDC_controller_data.c:79"; - this.getUrlHash = function(sid) { return this.urlHashMap[sid];} -} -RTW_Sid2UrlHash.instance = new RTW_Sid2UrlHash(); -function RTW_rtwnameSIDMap() { - this.rtwnameHashMap = new Array(); - this.sidHashMap = new Array(); - this.rtwnameHashMap[""] = {sid: "BLDC_controller"}; - this.sidHashMap["BLDC_controller"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:29"}; - this.sidHashMap["BLDCmotorControl_R2017b:29"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:1831"}; - this.sidHashMap["BLDCmotorControl_R2017b:1831"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:1834"}; - this.sidHashMap["BLDCmotorControl_R2017b:1834"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:1837"}; - this.sidHashMap["BLDCmotorControl_R2017b:1837"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:1828"}; - this.sidHashMap["BLDCmotorControl_R2017b:1828"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:6"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:6"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:215"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:215"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:282"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:282"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:361"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:361"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:26"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:26"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:10"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:10"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:38"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:38"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:59"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:59"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:1340"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1340"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:1401"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1401"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:1651"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1651"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:285"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:285"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:305"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:305"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:295"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:295"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:349"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:349"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:352"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:352"] = {rtwname: ""}; - this.rtwnameHashMap[""] = {sid: "BLDCmotorControl_R2017b:2687:355"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:355"] = {rtwname: ""}; - this.rtwnameHashMap["/b_hallA "] = {sid: "BLDCmotorControl_R2017b:365"}; - this.sidHashMap["BLDCmotorControl_R2017b:365"] = {rtwname: "/b_hallA "}; - this.rtwnameHashMap["/b_hallB"] = {sid: "BLDCmotorControl_R2017b:1277"}; - this.sidHashMap["BLDCmotorControl_R2017b:1277"] = {rtwname: "/b_hallB"}; - this.rtwnameHashMap["/b_hallC"] = {sid: "BLDCmotorControl_R2017b:1278"}; - this.sidHashMap["BLDCmotorControl_R2017b:1278"] = {rtwname: "/b_hallC"}; - this.rtwnameHashMap["/r_DC"] = {sid: "BLDCmotorControl_R2017b:1766"}; - this.sidHashMap["BLDCmotorControl_R2017b:1766"] = {rtwname: "/r_DC"}; - this.rtwnameHashMap["/BLDC_controller"] = {sid: "BLDCmotorControl_R2017b:2687"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687"] = {rtwname: "/BLDC_controller"}; - this.rtwnameHashMap["/From1"] = {sid: "BLDCmotorControl_R2017b:1759"}; - this.sidHashMap["BLDCmotorControl_R2017b:1759"] = {rtwname: "/From1"}; - this.rtwnameHashMap["/From18"] = {sid: "BLDCmotorControl_R2017b:2688"}; - this.sidHashMap["BLDCmotorControl_R2017b:2688"] = {rtwname: "/From18"}; - this.rtwnameHashMap["/From19"] = {sid: "BLDCmotorControl_R2017b:2689"}; - this.sidHashMap["BLDCmotorControl_R2017b:2689"] = {rtwname: "/From19"}; - this.rtwnameHashMap["/From20"] = {sid: "BLDCmotorControl_R2017b:2690"}; - this.sidHashMap["BLDCmotorControl_R2017b:2690"] = {rtwname: "/From20"}; - this.rtwnameHashMap["/From21"] = {sid: "BLDCmotorControl_R2017b:2691"}; - this.sidHashMap["BLDCmotorControl_R2017b:2691"] = {rtwname: "/From21"}; - this.rtwnameHashMap["/From5"] = {sid: "BLDCmotorControl_R2017b:1760"}; - this.sidHashMap["BLDCmotorControl_R2017b:1760"] = {rtwname: "/From5"}; - this.rtwnameHashMap["/From6"] = {sid: "BLDCmotorControl_R2017b:1761"}; - this.sidHashMap["BLDCmotorControl_R2017b:1761"] = {rtwname: "/From6"}; - this.rtwnameHashMap["/From7"] = {sid: "BLDCmotorControl_R2017b:1763"}; - this.sidHashMap["BLDCmotorControl_R2017b:1763"] = {rtwname: "/From7"}; - this.rtwnameHashMap["/From8"] = {sid: "BLDCmotorControl_R2017b:2462"}; - this.sidHashMap["BLDCmotorControl_R2017b:2462"] = {rtwname: "/From8"}; - this.rtwnameHashMap["/Goto"] = {sid: "BLDCmotorControl_R2017b:1765"}; - this.sidHashMap["BLDCmotorControl_R2017b:1765"] = {rtwname: "/Goto"}; - this.rtwnameHashMap["/Goto1"] = {sid: "BLDCmotorControl_R2017b:443"}; - this.sidHashMap["BLDCmotorControl_R2017b:443"] = {rtwname: "/Goto1"}; - this.rtwnameHashMap["/Goto18"] = {sid: "BLDCmotorControl_R2017b:2692"}; - this.sidHashMap["BLDCmotorControl_R2017b:2692"] = {rtwname: "/Goto18"}; - this.rtwnameHashMap["/Goto19"] = {sid: "BLDCmotorControl_R2017b:2693"}; - this.sidHashMap["BLDCmotorControl_R2017b:2693"] = {rtwname: "/Goto19"}; - this.rtwnameHashMap["/Goto2"] = {sid: "BLDCmotorControl_R2017b:444"}; - this.sidHashMap["BLDCmotorControl_R2017b:444"] = {rtwname: "/Goto2"}; - this.rtwnameHashMap["/Goto20"] = {sid: "BLDCmotorControl_R2017b:2694"}; - this.sidHashMap["BLDCmotorControl_R2017b:2694"] = {rtwname: "/Goto20"}; - this.rtwnameHashMap["/Goto21"] = {sid: "BLDCmotorControl_R2017b:2695"}; - this.sidHashMap["BLDCmotorControl_R2017b:2695"] = {rtwname: "/Goto21"}; - this.rtwnameHashMap["/Goto22"] = {sid: "BLDCmotorControl_R2017b:2696"}; - this.sidHashMap["BLDCmotorControl_R2017b:2696"] = {rtwname: "/Goto22"}; - this.rtwnameHashMap["/Goto3"] = {sid: "BLDCmotorControl_R2017b:445"}; - this.sidHashMap["BLDCmotorControl_R2017b:445"] = {rtwname: "/Goto3"}; - this.rtwnameHashMap["/signal_log1"] = {sid: "BLDCmotorControl_R2017b:1831"}; - this.sidHashMap["BLDCmotorControl_R2017b:1831"] = {rtwname: "/signal_log1"}; - this.rtwnameHashMap["/signal_log2"] = {sid: "BLDCmotorControl_R2017b:1834"}; - this.sidHashMap["BLDCmotorControl_R2017b:1834"] = {rtwname: "/signal_log2"}; - this.rtwnameHashMap["/signal_log3"] = {sid: "BLDCmotorControl_R2017b:1837"}; - this.sidHashMap["BLDCmotorControl_R2017b:1837"] = {rtwname: "/signal_log3"}; - this.rtwnameHashMap["/signal_log6"] = {sid: "BLDCmotorControl_R2017b:1828"}; - this.sidHashMap["BLDCmotorControl_R2017b:1828"] = {rtwname: "/signal_log6"}; - this.rtwnameHashMap["/DC_phaA"] = {sid: "BLDCmotorControl_R2017b:39"}; - this.sidHashMap["BLDCmotorControl_R2017b:39"] = {rtwname: "/DC_phaA"}; - this.rtwnameHashMap["/DC_phaB"] = {sid: "BLDCmotorControl_R2017b:1762"}; - this.sidHashMap["BLDCmotorControl_R2017b:1762"] = {rtwname: "/DC_phaB"}; - this.rtwnameHashMap["/DC_phaC"] = {sid: "BLDCmotorControl_R2017b:1764"}; - this.sidHashMap["BLDCmotorControl_R2017b:1764"] = {rtwname: "/DC_phaC"}; - this.rtwnameHashMap["/n_mot"] = {sid: "BLDCmotorControl_R2017b:628"}; - this.sidHashMap["BLDCmotorControl_R2017b:628"] = {rtwname: "/n_mot"}; - this.rtwnameHashMap["/a_elecAngle"] = {sid: "BLDCmotorControl_R2017b:2463"}; - this.sidHashMap["BLDCmotorControl_R2017b:2463"] = {rtwname: "/a_elecAngle"}; - this.rtwnameHashMap["/b_hallA "] = {sid: "BLDCmotorControl_R2017b:2687:2"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:2"] = {rtwname: "/b_hallA "}; - this.rtwnameHashMap["/b_hallB"] = {sid: "BLDCmotorControl_R2017b:2687:3"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:3"] = {rtwname: "/b_hallB"}; - this.rtwnameHashMap["/b_hallC"] = {sid: "BLDCmotorControl_R2017b:2687:4"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:4"] = {rtwname: "/b_hallC"}; - this.rtwnameHashMap["/r_DC"] = {sid: "BLDCmotorControl_R2017b:2687:5"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:5"] = {rtwname: "/r_DC"}; - this.rtwnameHashMap["/Abs1"] = {sid: "BLDCmotorControl_R2017b:2687:1660"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1660"] = {rtwname: "/Abs1"}; - this.rtwnameHashMap["/F01_Preliminary_Calculations"] = {sid: "BLDCmotorControl_R2017b:2687:6"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:6"] = {rtwname: "/F01_Preliminary_Calculations"}; - this.rtwnameHashMap["/F02_Electrical_Angle_Calculation"] = {sid: "BLDCmotorControl_R2017b:2687:215"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:215"] = {rtwname: "/F02_Electrical_Angle_Calculation"}; - this.rtwnameHashMap["/F03_Control_Method_Selection"] = {sid: "BLDCmotorControl_R2017b:2687:282"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:282"] = {rtwname: "/F03_Control_Method_Selection"}; - this.rtwnameHashMap["/F04_Control_Type_Management"] = {sid: "BLDCmotorControl_R2017b:2687:361"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:361"] = {rtwname: "/F04_Control_Type_Management"}; - this.rtwnameHashMap["/From"] = {sid: "BLDCmotorControl_R2017b:2687:416"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:416"] = {rtwname: "/From"}; - this.rtwnameHashMap["/From1"] = {sid: "BLDCmotorControl_R2017b:2687:417"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:417"] = {rtwname: "/From1"}; - this.rtwnameHashMap["/From10"] = {sid: "BLDCmotorControl_R2017b:2687:1379"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1379"] = {rtwname: "/From10"}; - this.rtwnameHashMap["/From11"] = {sid: "BLDCmotorControl_R2017b:2687:1667"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1667"] = {rtwname: "/From11"}; - this.rtwnameHashMap["/From2"] = {sid: "BLDCmotorControl_R2017b:2687:418"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:418"] = {rtwname: "/From2"}; - this.rtwnameHashMap["/From3"] = {sid: "BLDCmotorControl_R2017b:2687:419"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:419"] = {rtwname: "/From3"}; - this.rtwnameHashMap["/From4"] = {sid: "BLDCmotorControl_R2017b:2687:420"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:420"] = {rtwname: "/From4"}; - this.rtwnameHashMap["/From5"] = {sid: "BLDCmotorControl_R2017b:2687:421"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:421"] = {rtwname: "/From5"}; - this.rtwnameHashMap["/From6"] = {sid: "BLDCmotorControl_R2017b:2687:422"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:422"] = {rtwname: "/From6"}; - this.rtwnameHashMap["/From7"] = {sid: "BLDCmotorControl_R2017b:2687:423"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:423"] = {rtwname: "/From7"}; - this.rtwnameHashMap["/From8"] = {sid: "BLDCmotorControl_R2017b:2687:424"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:424"] = {rtwname: "/From8"}; - this.rtwnameHashMap["/From9"] = {sid: "BLDCmotorControl_R2017b:2687:537"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:537"] = {rtwname: "/From9"}; - this.rtwnameHashMap["/Goto"] = {sid: "BLDCmotorControl_R2017b:2687:425"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:425"] = {rtwname: "/Goto"}; - this.rtwnameHashMap["/Goto1"] = {sid: "BLDCmotorControl_R2017b:2687:426"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:426"] = {rtwname: "/Goto1"}; - this.rtwnameHashMap["/Goto2"] = {sid: "BLDCmotorControl_R2017b:2687:427"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:427"] = {rtwname: "/Goto2"}; - this.rtwnameHashMap["/Goto3"] = {sid: "BLDCmotorControl_R2017b:2687:428"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:428"] = {rtwname: "/Goto3"}; - this.rtwnameHashMap["/Goto4"] = {sid: "BLDCmotorControl_R2017b:2687:429"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:429"] = {rtwname: "/Goto4"}; - this.rtwnameHashMap["/Goto5"] = {sid: "BLDCmotorControl_R2017b:2687:430"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:430"] = {rtwname: "/Goto5"}; - this.rtwnameHashMap["/Goto6"] = {sid: "BLDCmotorControl_R2017b:2687:431"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:431"] = {rtwname: "/Goto6"}; - this.rtwnameHashMap["/Goto7"] = {sid: "BLDCmotorControl_R2017b:2687:432"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:432"] = {rtwname: "/Goto7"}; - this.rtwnameHashMap["/Goto8"] = {sid: "BLDCmotorControl_R2017b:2687:433"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:433"] = {rtwname: "/Goto8"}; - this.rtwnameHashMap["/Goto9"] = {sid: "BLDCmotorControl_R2017b:2687:1659"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1659"] = {rtwname: "/Goto9"}; - this.rtwnameHashMap["/If1"] = {sid: "BLDCmotorControl_R2017b:2687:434"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:434"] = {rtwname: "/If1"}; - this.rtwnameHashMap["/Implemented_control_methods"] = {sid: "BLDCmotorControl_R2017b:2687:457"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:457"] = {rtwname: "/Implemented_control_methods"}; - this.rtwnameHashMap["/Model_Info"] = {sid: "BLDCmotorControl_R2017b:2687:589"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:589"] = {rtwname: "/Model_Info"}; - this.rtwnameHashMap["/DC_phaA"] = {sid: "BLDCmotorControl_R2017b:2687:447"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:447"] = {rtwname: "/DC_phaA"}; - this.rtwnameHashMap["/DC_phaB"] = {sid: "BLDCmotorControl_R2017b:2687:448"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:448"] = {rtwname: "/DC_phaB"}; - this.rtwnameHashMap["/DC_phaC"] = {sid: "BLDCmotorControl_R2017b:2687:449"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:449"] = {rtwname: "/DC_phaC"}; - this.rtwnameHashMap["/n_mot"] = {sid: "BLDCmotorControl_R2017b:2687:450"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:450"] = {rtwname: "/n_mot"}; - this.rtwnameHashMap["/a_elecAngle"] = {sid: "BLDCmotorControl_R2017b:2687:451"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:451"] = {rtwname: "/a_elecAngle"}; - this.rtwnameHashMap["/b_hallB"] = {sid: "BLDCmotorControl_R2017b:1832"}; - this.sidHashMap["BLDCmotorControl_R2017b:1832"] = {rtwname: "/b_hallB"}; - this.rtwnameHashMap["/Terminator_1"] = {sid: "BLDCmotorControl_R2017b:1833"}; - this.sidHashMap["BLDCmotorControl_R2017b:1833"] = {rtwname: "/Terminator_1"}; - this.rtwnameHashMap["/b_hallC"] = {sid: "BLDCmotorControl_R2017b:1835"}; - this.sidHashMap["BLDCmotorControl_R2017b:1835"] = {rtwname: "/b_hallC"}; - this.rtwnameHashMap["/Terminator_1"] = {sid: "BLDCmotorControl_R2017b:1836"}; - this.sidHashMap["BLDCmotorControl_R2017b:1836"] = {rtwname: "/Terminator_1"}; - this.rtwnameHashMap["/r_DC"] = {sid: "BLDCmotorControl_R2017b:1838"}; - this.sidHashMap["BLDCmotorControl_R2017b:1838"] = {rtwname: "/r_DC"}; - this.rtwnameHashMap["/Terminator_1"] = {sid: "BLDCmotorControl_R2017b:1839"}; - this.sidHashMap["BLDCmotorControl_R2017b:1839"] = {rtwname: "/Terminator_1"}; - this.rtwnameHashMap["/b_hallA"] = {sid: "BLDCmotorControl_R2017b:1829"}; - this.sidHashMap["BLDCmotorControl_R2017b:1829"] = {rtwname: "/b_hallA"}; - this.rtwnameHashMap["/Terminator_1"] = {sid: "BLDCmotorControl_R2017b:1830"}; - this.sidHashMap["BLDCmotorControl_R2017b:1830"] = {rtwname: "/Terminator_1"}; - this.rtwnameHashMap["/b_hallA"] = {sid: "BLDCmotorControl_R2017b:2687:7"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:7"] = {rtwname: "/b_hallA"}; - this.rtwnameHashMap["/b_hallB"] = {sid: "BLDCmotorControl_R2017b:2687:8"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:8"] = {rtwname: "/b_hallB"}; - this.rtwnameHashMap["/b_hallC"] = {sid: "BLDCmotorControl_R2017b:2687:9"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:9"] = {rtwname: "/b_hallC"}; - this.rtwnameHashMap["/r_DC"] = {sid: "BLDCmotorControl_R2017b:2687:1375"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1375"] = {rtwname: "/r_DC"}; - this.rtwnameHashMap["/r_DCabs"] = {sid: "BLDCmotorControl_R2017b:2687:1661"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1661"] = {rtwname: "/r_DCabs"}; - this.rtwnameHashMap["/F01_01_Edge_Detector"] = {sid: "BLDCmotorControl_R2017b:2687:26"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:26"] = {rtwname: "/F01_01_Edge_Detector"}; - this.rtwnameHashMap["/F01_02_Position_Calculation"] = {sid: "BLDCmotorControl_R2017b:2687:10"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:10"] = {rtwname: "/F01_02_Position_Calculation"}; - this.rtwnameHashMap["/F01_03_Direction_Detection"] = {sid: "BLDCmotorControl_R2017b:2687:38"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:38"] = {rtwname: "/F01_03_Direction_Detection"}; - this.rtwnameHashMap["/F01_04_Speed_Calculation"] = {sid: "BLDCmotorControl_R2017b:2687:59"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:59"] = {rtwname: "/F01_04_Speed_Calculation"}; - this.rtwnameHashMap["/From"] = {sid: "BLDCmotorControl_R2017b:2687:1377"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1377"] = {rtwname: "/From"}; - this.rtwnameHashMap["/From1"] = {sid: "BLDCmotorControl_R2017b:2687:179"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:179"] = {rtwname: "/From1"}; - this.rtwnameHashMap["/From10"] = {sid: "BLDCmotorControl_R2017b:2687:180"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:180"] = {rtwname: "/From10"}; - this.rtwnameHashMap["/From11"] = {sid: "BLDCmotorControl_R2017b:2687:1378"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1378"] = {rtwname: "/From11"}; - this.rtwnameHashMap["/From12"] = {sid: "BLDCmotorControl_R2017b:2687:1481"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1481"] = {rtwname: "/From12"}; - this.rtwnameHashMap["/From13"] = {sid: "BLDCmotorControl_R2017b:2687:183"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:183"] = {rtwname: "/From13"}; - this.rtwnameHashMap["/From14"] = {sid: "BLDCmotorControl_R2017b:2687:184"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:184"] = {rtwname: "/From14"}; - this.rtwnameHashMap["/From15"] = {sid: "BLDCmotorControl_R2017b:2687:1633"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1633"] = {rtwname: "/From15"}; - this.rtwnameHashMap["/From16"] = {sid: "BLDCmotorControl_R2017b:2687:1482"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1482"] = {rtwname: "/From16"}; - this.rtwnameHashMap["/From17"] = {sid: "BLDCmotorControl_R2017b:2687:1666"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1666"] = {rtwname: "/From17"}; - this.rtwnameHashMap["/From18"] = {sid: "BLDCmotorControl_R2017b:2687:1382"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1382"] = {rtwname: "/From18"}; - this.rtwnameHashMap["/From19"] = {sid: "BLDCmotorControl_R2017b:2687:1678"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1678"] = {rtwname: "/From19"}; - this.rtwnameHashMap["/From2"] = {sid: "BLDCmotorControl_R2017b:2687:186"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:186"] = {rtwname: "/From2"}; - this.rtwnameHashMap["/From3"] = {sid: "BLDCmotorControl_R2017b:2687:187"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:187"] = {rtwname: "/From3"}; - this.rtwnameHashMap["/From36"] = {sid: "BLDCmotorControl_R2017b:2687:188"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:188"] = {rtwname: "/From36"}; - this.rtwnameHashMap["/From38"] = {sid: "BLDCmotorControl_R2017b:2687:189"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:189"] = {rtwname: "/From38"}; - this.rtwnameHashMap["/From4"] = {sid: "BLDCmotorControl_R2017b:2687:190"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:190"] = {rtwname: "/From4"}; - this.rtwnameHashMap["/From5"] = {sid: "BLDCmotorControl_R2017b:2687:191"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:191"] = {rtwname: "/From5"}; - this.rtwnameHashMap["/From6"] = {sid: "BLDCmotorControl_R2017b:2687:192"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:192"] = {rtwname: "/From6"}; - this.rtwnameHashMap["/From7"] = {sid: "BLDCmotorControl_R2017b:2687:193"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:193"] = {rtwname: "/From7"}; - this.rtwnameHashMap["/From8"] = {sid: "BLDCmotorControl_R2017b:2687:194"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:194"] = {rtwname: "/From8"}; - this.rtwnameHashMap["/From9"] = {sid: "BLDCmotorControl_R2017b:2687:195"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:195"] = {rtwname: "/From9"}; - this.rtwnameHashMap["/Goto"] = {sid: "BLDCmotorControl_R2017b:2687:196"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:196"] = {rtwname: "/Goto"}; - this.rtwnameHashMap["/Goto1"] = {sid: "BLDCmotorControl_R2017b:2687:197"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:197"] = {rtwname: "/Goto1"}; - this.rtwnameHashMap["/Goto10"] = {sid: "BLDCmotorControl_R2017b:2687:1662"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1662"] = {rtwname: "/Goto10"}; - this.rtwnameHashMap["/Goto11"] = {sid: "BLDCmotorControl_R2017b:2687:1677"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1677"] = {rtwname: "/Goto11"}; - this.rtwnameHashMap["/Goto16"] = {sid: "BLDCmotorControl_R2017b:2687:198"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:198"] = {rtwname: "/Goto16"}; - this.rtwnameHashMap["/Goto18"] = {sid: "BLDCmotorControl_R2017b:2687:1376"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1376"] = {rtwname: "/Goto18"}; - this.rtwnameHashMap["/Goto2"] = {sid: "BLDCmotorControl_R2017b:2687:199"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:199"] = {rtwname: "/Goto2"}; - this.rtwnameHashMap["/Goto21"] = {sid: "BLDCmotorControl_R2017b:2687:200"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:200"] = {rtwname: "/Goto21"}; - this.rtwnameHashMap["/Goto3"] = {sid: "BLDCmotorControl_R2017b:2687:1384"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1384"] = {rtwname: "/Goto3"}; - this.rtwnameHashMap["/Goto4"] = {sid: "BLDCmotorControl_R2017b:2687:202"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:202"] = {rtwname: "/Goto4"}; - this.rtwnameHashMap["/Goto5"] = {sid: "BLDCmotorControl_R2017b:2687:1489"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1489"] = {rtwname: "/Goto5"}; - this.rtwnameHashMap["/Goto6"] = {sid: "BLDCmotorControl_R2017b:2687:1490"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1490"] = {rtwname: "/Goto6"}; - this.rtwnameHashMap["/Goto7"] = {sid: "BLDCmotorControl_R2017b:2687:205"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:205"] = {rtwname: "/Goto7"}; - this.rtwnameHashMap["/Goto8"] = {sid: "BLDCmotorControl_R2017b:2687:206"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:206"] = {rtwname: "/Goto8"}; - this.rtwnameHashMap["/Goto9"] = {sid: "BLDCmotorControl_R2017b:2687:1634"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1634"] = {rtwname: "/Goto9"}; - this.rtwnameHashMap["/If2"] = {sid: "BLDCmotorControl_R2017b:2687:1313"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1313"] = {rtwname: "/If2"}; - this.rtwnameHashMap["/z_ctrlTypSel1"] = {sid: "BLDCmotorControl_R2017b:2687:208"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:208"] = {rtwname: "/z_ctrlTypSel1"}; - this.rtwnameHashMap["/z_ctrlTypSel"] = {sid: "BLDCmotorControl_R2017b:2687:209"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:209"] = {rtwname: "/z_ctrlTypSel"}; - this.rtwnameHashMap["/z_pos"] = {sid: "BLDCmotorControl_R2017b:2687:210"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:210"] = {rtwname: "/z_pos"}; - this.rtwnameHashMap["/z_dir"] = {sid: "BLDCmotorControl_R2017b:2687:211"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:211"] = {rtwname: "/z_dir"}; - this.rtwnameHashMap["/z_counter"] = {sid: "BLDCmotorControl_R2017b:2687:1483"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1483"] = {rtwname: "/z_counter"}; - this.rtwnameHashMap["/z_counterRaw"] = {sid: "BLDCmotorControl_R2017b:2687:1484"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1484"] = {rtwname: "/z_counterRaw"}; - this.rtwnameHashMap["/n_motAbs"] = {sid: "BLDCmotorControl_R2017b:2687:1679"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1679"] = {rtwname: "/n_motAbs"}; - this.rtwnameHashMap["/b_advCtrlEna"] = {sid: "BLDCmotorControl_R2017b:2687:1383"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1383"] = {rtwname: "/b_advCtrlEna"}; - this.rtwnameHashMap["/n_mot "] = {sid: "BLDCmotorControl_R2017b:2687:212"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:212"] = {rtwname: "/n_mot "}; - this.rtwnameHashMap["/r_DCabs"] = {sid: "BLDCmotorControl_R2017b:2687:535"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:535"] = {rtwname: "/r_DCabs"}; - this.rtwnameHashMap["/z_pos"] = {sid: "BLDCmotorControl_R2017b:2687:216"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:216"] = {rtwname: "/z_pos"}; - this.rtwnameHashMap["/z_dir"] = {sid: "BLDCmotorControl_R2017b:2687:217"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:217"] = {rtwname: "/z_dir"}; - this.rtwnameHashMap["/z_counter"] = {sid: "BLDCmotorControl_R2017b:2687:1460"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1460"] = {rtwname: "/z_counter"}; - this.rtwnameHashMap["/z_counterRaw"] = {sid: "BLDCmotorControl_R2017b:2687:1461"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1461"] = {rtwname: "/z_counterRaw"}; - this.rtwnameHashMap["/n_motAbs"] = {sid: "BLDCmotorControl_R2017b:2687:1680"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1680"] = {rtwname: "/n_motAbs"}; - this.rtwnameHashMap["/Action Port"] = {sid: "BLDCmotorControl_R2017b:2687:221"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:221"] = {rtwname: "/Action Port"}; - this.rtwnameHashMap["/Constant16"] = {sid: "BLDCmotorControl_R2017b:2687:1464"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1464"] = {rtwname: "/Constant16"}; - this.rtwnameHashMap["/Constant2"] = {sid: "BLDCmotorControl_R2017b:2687:1465"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1465"] = {rtwname: "/Constant2"}; - this.rtwnameHashMap["/Divide4"] = {sid: "BLDCmotorControl_R2017b:2687:1466"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1466"] = {rtwname: "/Divide4"}; - this.rtwnameHashMap["/Divide5"] = {sid: "BLDCmotorControl_R2017b:2687:1467"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1467"] = {rtwname: "/Divide5"}; - this.rtwnameHashMap["/From1"] = {sid: "BLDCmotorControl_R2017b:2687:1669"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1669"] = {rtwname: "/From1"}; - this.rtwnameHashMap["/From10"] = {sid: "BLDCmotorControl_R2017b:2687:231"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:231"] = {rtwname: "/From10"}; - this.rtwnameHashMap["/From11"] = {sid: "BLDCmotorControl_R2017b:2687:518"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:518"] = {rtwname: "/From11"}; - this.rtwnameHashMap["/From12"] = {sid: "BLDCmotorControl_R2017b:2687:534"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:534"] = {rtwname: "/From12"}; - this.rtwnameHashMap["/From2"] = {sid: "BLDCmotorControl_R2017b:2687:232"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:232"] = {rtwname: "/From2"}; - this.rtwnameHashMap["/From3"] = {sid: "BLDCmotorControl_R2017b:2687:233"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:233"] = {rtwname: "/From3"}; - this.rtwnameHashMap["/From5"] = {sid: "BLDCmotorControl_R2017b:2687:235"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:235"] = {rtwname: "/From5"}; - this.rtwnameHashMap["/From51"] = {sid: "BLDCmotorControl_R2017b:2687:1468"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1468"] = {rtwname: "/From51"}; - this.rtwnameHashMap["/From52"] = {sid: "BLDCmotorControl_R2017b:2687:1469"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1469"] = {rtwname: "/From52"}; - this.rtwnameHashMap["/From53"] = {sid: "BLDCmotorControl_R2017b:2687:1470"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1470"] = {rtwname: "/From53"}; - this.rtwnameHashMap["/From54"] = {sid: "BLDCmotorControl_R2017b:2687:1471"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1471"] = {rtwname: "/From54"}; - this.rtwnameHashMap["/From59"] = {sid: "BLDCmotorControl_R2017b:2687:1472"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1472"] = {rtwname: "/From59"}; - this.rtwnameHashMap["/From6"] = {sid: "BLDCmotorControl_R2017b:2687:241"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:241"] = {rtwname: "/From6"}; - this.rtwnameHashMap["/From7"] = {sid: "BLDCmotorControl_R2017b:2687:542"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:542"] = {rtwname: "/From7"}; - this.rtwnameHashMap["/From9"] = {sid: "BLDCmotorControl_R2017b:2687:543"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:543"] = {rtwname: "/From9"}; - this.rtwnameHashMap["/Goto"] = {sid: "BLDCmotorControl_R2017b:2687:242"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:242"] = {rtwname: "/Goto"}; - this.rtwnameHashMap["/Goto1"] = {sid: "BLDCmotorControl_R2017b:2687:243"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:243"] = {rtwname: "/Goto1"}; - this.rtwnameHashMap["/Goto2"] = {sid: "BLDCmotorControl_R2017b:2687:1462"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1462"] = {rtwname: "/Goto2"}; - this.rtwnameHashMap["/Goto3"] = {sid: "BLDCmotorControl_R2017b:2687:1463"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1463"] = {rtwname: "/Goto3"}; - this.rtwnameHashMap["/Goto4"] = {sid: "BLDCmotorControl_R2017b:2687:1681"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1681"] = {rtwname: "/Goto4"}; - this.rtwnameHashMap["/Goto5"] = {sid: "BLDCmotorControl_R2017b:2687:578"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:578"] = {rtwname: "/Goto5"}; - this.rtwnameHashMap["/Goto7"] = {sid: "BLDCmotorControl_R2017b:2687:1473"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1473"] = {rtwname: "/Goto7"}; - this.rtwnameHashMap["/Goto8"] = {sid: "BLDCmotorControl_R2017b:2687:536"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:536"] = {rtwname: "/Goto8"}; - this.rtwnameHashMap["/Goto9"] = {sid: "BLDCmotorControl_R2017b:2687:538"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:538"] = {rtwname: "/Goto9"}; - this.rtwnameHashMap["/Logical Operator2"] = {sid: "BLDCmotorControl_R2017b:2687:1668"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1668"] = {rtwname: "/Logical Operator2"}; - this.rtwnameHashMap["/Math Function"] = {sid: "BLDCmotorControl_R2017b:2687:623"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:623"] = {rtwname: "/Math Function"}; - this.rtwnameHashMap["/Mux"] = {sid: "BLDCmotorControl_R2017b:2687:258"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:258"] = {rtwname: "/Mux"}; - this.rtwnameHashMap["/Product2"] = {sid: "BLDCmotorControl_R2017b:2687:545"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:545"] = {rtwname: "/Product2"}; - this.rtwnameHashMap["/Product6"] = {sid: "BLDCmotorControl_R2017b:2687:1474"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1474"] = {rtwname: "/Product6"}; - this.rtwnameHashMap["/Relational Operator4"] = {sid: "BLDCmotorControl_R2017b:2687:1670"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1670"] = {rtwname: "/Relational Operator4"}; - this.rtwnameHashMap["/Relational Operator7"] = {sid: "BLDCmotorControl_R2017b:2687:1475"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1475"] = {rtwname: "/Relational Operator7"}; - this.rtwnameHashMap["/Scope"] = {sid: "BLDCmotorControl_R2017b:2687:262"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:262"] = {rtwname: "/Scope"}; - this.rtwnameHashMap["/Sum1"] = {sid: "BLDCmotorControl_R2017b:2687:1476"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1476"] = {rtwname: "/Sum1"}; - this.rtwnameHashMap["/Sum2"] = {sid: "BLDCmotorControl_R2017b:2687:1477"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1477"] = {rtwname: "/Sum2"}; - this.rtwnameHashMap["/Sum3"] = {sid: "BLDCmotorControl_R2017b:2687:546"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:546"] = {rtwname: "/Sum3"}; - this.rtwnameHashMap["/Switch3"] = {sid: "BLDCmotorControl_R2017b:2687:1478"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1478"] = {rtwname: "/Switch3"}; - this.rtwnameHashMap["/Switch_PhaAdv"] = {sid: "BLDCmotorControl_R2017b:2687:514"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:514"] = {rtwname: "/Switch_PhaAdv"}; - this.rtwnameHashMap["/a_elecAngle1"] = {sid: "BLDCmotorControl_R2017b:2687:1479"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1479"] = {rtwname: "/a_elecAngle1"}; - this.rtwnameHashMap["/a_elecPeriod1"] = {sid: "BLDCmotorControl_R2017b:2687:512"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:512"] = {rtwname: "/a_elecPeriod1"}; - this.rtwnameHashMap["/a_elecPeriod2"] = {sid: "BLDCmotorControl_R2017b:2687:547"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:547"] = {rtwname: "/a_elecPeriod2"}; - this.rtwnameHashMap["/a_phaAdv_M2"] = {sid: "BLDCmotorControl_R2017b:2687:521"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:521"] = {rtwname: "/a_phaAdv_M2"}; - this.rtwnameHashMap["/n_motPhaAdvEna"] = {sid: "BLDCmotorControl_R2017b:2687:1671"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1671"] = {rtwname: "/n_motPhaAdvEna"}; - this.rtwnameHashMap["/r_phaAdvDC_XA"] = {sid: "BLDCmotorControl_R2017b:2687:522"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:522"] = {rtwname: "/r_phaAdvDC_XA"}; - this.rtwnameHashMap["/a_elecAngleAdv"] = {sid: "BLDCmotorControl_R2017b:2687:278"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:278"] = {rtwname: "/a_elecAngleAdv"}; - this.rtwnameHashMap["/a_elecAngle"] = {sid: "BLDCmotorControl_R2017b:2687:279"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:279"] = {rtwname: "/a_elecAngle"}; - this.rtwnameHashMap["/z_ctrlTypSel"] = {sid: "BLDCmotorControl_R2017b:2687:283"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:283"] = {rtwname: "/z_ctrlTypSel"}; - this.rtwnameHashMap["/a_elecAngleAdv"] = {sid: "BLDCmotorControl_R2017b:2687:284"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:284"] = {rtwname: "/a_elecAngleAdv"}; - this.rtwnameHashMap["/F03_01_Pure_Trapezoidal_Method"] = {sid: "BLDCmotorControl_R2017b:2687:285"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:285"] = {rtwname: "/F03_01_Pure_Trapezoidal_Method"}; - this.rtwnameHashMap["/F03_02_Sinusoidal_Method"] = {sid: "BLDCmotorControl_R2017b:2687:305"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:305"] = {rtwname: "/F03_02_Sinusoidal_Method"}; - this.rtwnameHashMap["/F03_03_Sinusoidal3rd_Method"] = {sid: "BLDCmotorControl_R2017b:2687:295"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:295"] = {rtwname: "/F03_03_Sinusoidal3rd_Method"}; - this.rtwnameHashMap["/From"] = {sid: "BLDCmotorControl_R2017b:2687:315"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:315"] = {rtwname: "/From"}; - this.rtwnameHashMap["/From10"] = {sid: "BLDCmotorControl_R2017b:2687:316"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:316"] = {rtwname: "/From10"}; - this.rtwnameHashMap["/From13"] = {sid: "BLDCmotorControl_R2017b:2687:317"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:317"] = {rtwname: "/From13"}; - this.rtwnameHashMap["/From14"] = {sid: "BLDCmotorControl_R2017b:2687:318"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:318"] = {rtwname: "/From14"}; - this.rtwnameHashMap["/From15"] = {sid: "BLDCmotorControl_R2017b:2687:319"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:319"] = {rtwname: "/From15"}; - this.rtwnameHashMap["/From16"] = {sid: "BLDCmotorControl_R2017b:2687:320"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:320"] = {rtwname: "/From16"}; - this.rtwnameHashMap["/From17"] = {sid: "BLDCmotorControl_R2017b:2687:321"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:321"] = {rtwname: "/From17"}; - this.rtwnameHashMap["/From18"] = {sid: "BLDCmotorControl_R2017b:2687:322"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:322"] = {rtwname: "/From18"}; - this.rtwnameHashMap["/From19"] = {sid: "BLDCmotorControl_R2017b:2687:323"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:323"] = {rtwname: "/From19"}; - this.rtwnameHashMap["/From20"] = {sid: "BLDCmotorControl_R2017b:2687:324"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:324"] = {rtwname: "/From20"}; - this.rtwnameHashMap["/From4"] = {sid: "BLDCmotorControl_R2017b:2687:325"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:325"] = {rtwname: "/From4"}; - this.rtwnameHashMap["/From5"] = {sid: "BLDCmotorControl_R2017b:2687:326"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:326"] = {rtwname: "/From5"}; - this.rtwnameHashMap["/From6"] = {sid: "BLDCmotorControl_R2017b:2687:327"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:327"] = {rtwname: "/From6"}; - this.rtwnameHashMap["/From7"] = {sid: "BLDCmotorControl_R2017b:2687:328"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:328"] = {rtwname: "/From7"}; - this.rtwnameHashMap["/From8"] = {sid: "BLDCmotorControl_R2017b:2687:329"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:329"] = {rtwname: "/From8"}; - this.rtwnameHashMap["/From9"] = {sid: "BLDCmotorControl_R2017b:2687:330"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:330"] = {rtwname: "/From9"}; - this.rtwnameHashMap["/Goto"] = {sid: "BLDCmotorControl_R2017b:2687:331"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:331"] = {rtwname: "/Goto"}; - this.rtwnameHashMap["/Goto1"] = {sid: "BLDCmotorControl_R2017b:2687:332"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:332"] = {rtwname: "/Goto1"}; - this.rtwnameHashMap["/Goto10"] = {sid: "BLDCmotorControl_R2017b:2687:333"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:333"] = {rtwname: "/Goto10"}; - this.rtwnameHashMap["/Goto11"] = {sid: "BLDCmotorControl_R2017b:2687:334"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:334"] = {rtwname: "/Goto11"}; - this.rtwnameHashMap["/Goto12"] = {sid: "BLDCmotorControl_R2017b:2687:335"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:335"] = {rtwname: "/Goto12"}; - this.rtwnameHashMap["/Goto14"] = {sid: "BLDCmotorControl_R2017b:2687:336"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:336"] = {rtwname: "/Goto14"}; - this.rtwnameHashMap["/Goto2"] = {sid: "BLDCmotorControl_R2017b:2687:337"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:337"] = {rtwname: "/Goto2"}; - this.rtwnameHashMap["/Goto3"] = {sid: "BLDCmotorControl_R2017b:2687:338"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:338"] = {rtwname: "/Goto3"}; - this.rtwnameHashMap["/Goto4"] = {sid: "BLDCmotorControl_R2017b:2687:339"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:339"] = {rtwname: "/Goto4"}; - this.rtwnameHashMap["/Goto5"] = {sid: "BLDCmotorControl_R2017b:2687:340"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:340"] = {rtwname: "/Goto5"}; - this.rtwnameHashMap["/Goto6"] = {sid: "BLDCmotorControl_R2017b:2687:341"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:341"] = {rtwname: "/Goto6"}; - this.rtwnameHashMap["/Goto7"] = {sid: "BLDCmotorControl_R2017b:2687:342"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:342"] = {rtwname: "/Goto7"}; - this.rtwnameHashMap["/Goto8"] = {sid: "BLDCmotorControl_R2017b:2687:343"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:343"] = {rtwname: "/Goto8"}; - this.rtwnameHashMap["/Goto9"] = {sid: "BLDCmotorControl_R2017b:2687:344"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:344"] = {rtwname: "/Goto9"}; - this.rtwnameHashMap["/Merge"] = {sid: "BLDCmotorControl_R2017b:2687:345"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:345"] = {rtwname: "/Merge"}; - this.rtwnameHashMap["/Merge1"] = {sid: "BLDCmotorControl_R2017b:2687:346"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:346"] = {rtwname: "/Merge1"}; - this.rtwnameHashMap["/Merge2"] = {sid: "BLDCmotorControl_R2017b:2687:347"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:347"] = {rtwname: "/Merge2"}; - this.rtwnameHashMap["/Switch Case"] = {sid: "BLDCmotorControl_R2017b:2687:348"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:348"] = {rtwname: "/Switch Case"}; - this.rtwnameHashMap["/signal_log1"] = {sid: "BLDCmotorControl_R2017b:2687:349"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:349"] = {rtwname: "/signal_log1"}; - this.rtwnameHashMap["/signal_log2"] = {sid: "BLDCmotorControl_R2017b:2687:352"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:352"] = {rtwname: "/signal_log2"}; - this.rtwnameHashMap["/signal_log6"] = {sid: "BLDCmotorControl_R2017b:2687:355"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:355"] = {rtwname: "/signal_log6"}; - this.rtwnameHashMap["/r_phaA"] = {sid: "BLDCmotorControl_R2017b:2687:358"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:358"] = {rtwname: "/r_phaA"}; - this.rtwnameHashMap["/r_phaB"] = {sid: "BLDCmotorControl_R2017b:2687:359"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:359"] = {rtwname: "/r_phaB"}; - this.rtwnameHashMap["/r_phaC "] = {sid: "BLDCmotorControl_R2017b:2687:360"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:360"] = {rtwname: "/r_phaC "}; - this.rtwnameHashMap["/r_DC"] = {sid: "BLDCmotorControl_R2017b:2687:362"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:362"] = {rtwname: "/r_DC"}; - this.rtwnameHashMap["/r_phaA"] = {sid: "BLDCmotorControl_R2017b:2687:364"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:364"] = {rtwname: "/r_phaA"}; - this.rtwnameHashMap["/r_phaB"] = {sid: "BLDCmotorControl_R2017b:2687:365"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:365"] = {rtwname: "/r_phaB"}; - this.rtwnameHashMap["/r_phaC"] = {sid: "BLDCmotorControl_R2017b:2687:366"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:366"] = {rtwname: "/r_phaC"}; - this.rtwnameHashMap["/z_pos"] = {sid: "BLDCmotorControl_R2017b:2687:367"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:367"] = {rtwname: "/z_pos"}; - this.rtwnameHashMap["/b_advCtrlEna"] = {sid: "BLDCmotorControl_R2017b:2687:1385"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1385"] = {rtwname: "/b_advCtrlEna"}; - this.rtwnameHashMap["/Constant1"] = {sid: "BLDCmotorControl_R2017b:2687:370"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:370"] = {rtwname: "/Constant1"}; - this.rtwnameHashMap["/Demux"] = {sid: "BLDCmotorControl_R2017b:2687:372"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:372"] = {rtwname: "/Demux"}; - this.rtwnameHashMap["/Divide1"] = {sid: "BLDCmotorControl_R2017b:2687:373"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:373"] = {rtwname: "/Divide1"}; - this.rtwnameHashMap["/Divide2"] = {sid: "BLDCmotorControl_R2017b:2687:374"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:374"] = {rtwname: "/Divide2"}; - this.rtwnameHashMap["/Divide4"] = {sid: "BLDCmotorControl_R2017b:2687:375"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:375"] = {rtwname: "/Divide4"}; - this.rtwnameHashMap["/From"] = {sid: "BLDCmotorControl_R2017b:2687:1389"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1389"] = {rtwname: "/From"}; - this.rtwnameHashMap["/From1"] = {sid: "BLDCmotorControl_R2017b:2687:376"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:376"] = {rtwname: "/From1"}; - this.rtwnameHashMap["/From10"] = {sid: "BLDCmotorControl_R2017b:2687:377"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:377"] = {rtwname: "/From10"}; - this.rtwnameHashMap["/From2"] = {sid: "BLDCmotorControl_R2017b:2687:378"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:378"] = {rtwname: "/From2"}; - this.rtwnameHashMap["/From27"] = {sid: "BLDCmotorControl_R2017b:2687:379"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:379"] = {rtwname: "/From27"}; - this.rtwnameHashMap["/From39"] = {sid: "BLDCmotorControl_R2017b:2687:380"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:380"] = {rtwname: "/From39"}; - this.rtwnameHashMap["/From40"] = {sid: "BLDCmotorControl_R2017b:2687:381"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:381"] = {rtwname: "/From40"}; - this.rtwnameHashMap["/From41"] = {sid: "BLDCmotorControl_R2017b:2687:382"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:382"] = {rtwname: "/From41"}; - this.rtwnameHashMap["/From8"] = {sid: "BLDCmotorControl_R2017b:2687:385"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:385"] = {rtwname: "/From8"}; - this.rtwnameHashMap["/From9"] = {sid: "BLDCmotorControl_R2017b:2687:386"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:386"] = {rtwname: "/From9"}; - this.rtwnameHashMap["/Goto"] = {sid: "BLDCmotorControl_R2017b:2687:387"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:387"] = {rtwname: "/Goto"}; - this.rtwnameHashMap["/Goto1"] = {sid: "BLDCmotorControl_R2017b:2687:388"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:388"] = {rtwname: "/Goto1"}; - this.rtwnameHashMap["/Goto10"] = {sid: "BLDCmotorControl_R2017b:2687:1386"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1386"] = {rtwname: "/Goto10"}; - this.rtwnameHashMap["/Goto2"] = {sid: "BLDCmotorControl_R2017b:2687:389"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:389"] = {rtwname: "/Goto2"}; - this.rtwnameHashMap["/Goto4"] = {sid: "BLDCmotorControl_R2017b:2687:391"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:391"] = {rtwname: "/Goto4"}; - this.rtwnameHashMap["/Goto6"] = {sid: "BLDCmotorControl_R2017b:2687:393"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:393"] = {rtwname: "/Goto6"}; - this.rtwnameHashMap["/Goto7"] = {sid: "BLDCmotorControl_R2017b:2687:394"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:394"] = {rtwname: "/Goto7"}; - this.rtwnameHashMap["/Goto8"] = {sid: "BLDCmotorControl_R2017b:2687:395"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:395"] = {rtwname: "/Goto8"}; - this.rtwnameHashMap["/Goto9"] = {sid: "BLDCmotorControl_R2017b:2687:396"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:396"] = {rtwname: "/Goto9"}; - this.rtwnameHashMap["/Mux2"] = {sid: "BLDCmotorControl_R2017b:2687:398"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:398"] = {rtwname: "/Mux2"}; - this.rtwnameHashMap["/Switch1"] = {sid: "BLDCmotorControl_R2017b:2687:401"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:401"] = {rtwname: "/Switch1"}; - this.rtwnameHashMap["/z_commutMap_M1"] = {sid: "BLDCmotorControl_R2017b:2687:411"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:411"] = {rtwname: "/z_commutMap_M1"}; - this.rtwnameHashMap["/DC_phaA"] = {sid: "BLDCmotorControl_R2017b:2687:412"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:412"] = {rtwname: "/DC_phaA"}; - this.rtwnameHashMap["/DC_phaB"] = {sid: "BLDCmotorControl_R2017b:2687:413"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:413"] = {rtwname: "/DC_phaB"}; - this.rtwnameHashMap["/DC_phaC "] = {sid: "BLDCmotorControl_R2017b:2687:414"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:414"] = {rtwname: "/DC_phaC "}; - this.rtwnameHashMap["/b_hallA"] = {sid: "BLDCmotorControl_R2017b:2687:27"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:27"] = {rtwname: "/b_hallA"}; - this.rtwnameHashMap["/b_hallB"] = {sid: "BLDCmotorControl_R2017b:2687:28"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:28"] = {rtwname: "/b_hallB"}; - this.rtwnameHashMap["/b_hallC"] = {sid: "BLDCmotorControl_R2017b:2687:29"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:29"] = {rtwname: "/b_hallC"}; - this.rtwnameHashMap["/Bitwise Operator"] = {sid: "BLDCmotorControl_R2017b:2687:1535"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1535"] = {rtwname: "/Bitwise Operator"}; - this.rtwnameHashMap["/UnitDelay"] = {sid: "BLDCmotorControl_R2017b:2687:31"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:31"] = {rtwname: "/UnitDelay"}; - this.rtwnameHashMap["/UnitDelay1"] = {sid: "BLDCmotorControl_R2017b:2687:32"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:32"] = {rtwname: "/UnitDelay1"}; - this.rtwnameHashMap["/UnitDelay2"] = {sid: "BLDCmotorControl_R2017b:2687:33"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:33"] = {rtwname: "/UnitDelay2"}; - this.rtwnameHashMap["/b_edge "] = {sid: "BLDCmotorControl_R2017b:2687:37"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:37"] = {rtwname: "/b_edge "}; - this.rtwnameHashMap["/b_hallA"] = {sid: "BLDCmotorControl_R2017b:2687:11"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:11"] = {rtwname: "/b_hallA"}; - this.rtwnameHashMap["/b_hallB"] = {sid: "BLDCmotorControl_R2017b:2687:12"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:12"] = {rtwname: "/b_hallB"}; - this.rtwnameHashMap["/b_hallC"] = {sid: "BLDCmotorControl_R2017b:2687:13"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:13"] = {rtwname: "/b_hallC"}; - this.rtwnameHashMap["/Selector"] = {sid: "BLDCmotorControl_R2017b:2687:14"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:14"] = {rtwname: "/Selector"}; - this.rtwnameHashMap["/Sum"] = {sid: "BLDCmotorControl_R2017b:2687:15"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:15"] = {rtwname: "/Sum"}; - this.rtwnameHashMap["/g_Ha"] = {sid: "BLDCmotorControl_R2017b:2687:17"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:17"] = {rtwname: "/g_Ha"}; - this.rtwnameHashMap["/g_Hb"] = {sid: "BLDCmotorControl_R2017b:2687:18"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:18"] = {rtwname: "/g_Hb"}; - this.rtwnameHashMap["/vec_hallToPos"] = {sid: "BLDCmotorControl_R2017b:2687:22"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:22"] = {rtwname: "/vec_hallToPos"}; - this.rtwnameHashMap["/z_pos "] = {sid: "BLDCmotorControl_R2017b:2687:23"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:23"] = {rtwname: "/z_pos "}; - this.rtwnameHashMap["/z_pos"] = {sid: "BLDCmotorControl_R2017b:2687:39"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:39"] = {rtwname: "/z_pos"}; - this.rtwnameHashMap["/Action Port"] = {sid: "BLDCmotorControl_R2017b:2687:1314"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1314"] = {rtwname: "/Action Port"}; - this.rtwnameHashMap["/Constant20"] = {sid: "BLDCmotorControl_R2017b:2687:42"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:42"] = {rtwname: "/Constant20"}; - this.rtwnameHashMap["/Constant23"] = {sid: "BLDCmotorControl_R2017b:2687:43"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:43"] = {rtwname: "/Constant23"}; - this.rtwnameHashMap["/Constant24"] = {sid: "BLDCmotorControl_R2017b:2687:44"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:44"] = {rtwname: "/Constant24"}; - this.rtwnameHashMap["/Constant8"] = {sid: "BLDCmotorControl_R2017b:2687:45"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:45"] = {rtwname: "/Constant8"}; - this.rtwnameHashMap["/Logical Operator3"] = {sid: "BLDCmotorControl_R2017b:2687:48"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:48"] = {rtwname: "/Logical Operator3"}; - this.rtwnameHashMap["/Relational Operator1"] = {sid: "BLDCmotorControl_R2017b:2687:49"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:49"] = {rtwname: "/Relational Operator1"}; - this.rtwnameHashMap["/Relational Operator6"] = {sid: "BLDCmotorControl_R2017b:2687:50"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:50"] = {rtwname: "/Relational Operator6"}; - this.rtwnameHashMap["/Sum2"] = {sid: "BLDCmotorControl_R2017b:2687:51"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:51"] = {rtwname: "/Sum2"}; - this.rtwnameHashMap["/Switch2"] = {sid: "BLDCmotorControl_R2017b:2687:52"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:52"] = {rtwname: "/Switch2"}; - this.rtwnameHashMap["/UnitDelay1"] = {sid: "BLDCmotorControl_R2017b:2687:1631"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1631"] = {rtwname: "/UnitDelay1"}; - this.rtwnameHashMap["/UnitDelay2"] = {sid: "BLDCmotorControl_R2017b:2687:1318"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1318"] = {rtwname: "/UnitDelay2"}; - this.rtwnameHashMap["/z_dir"] = {sid: "BLDCmotorControl_R2017b:2687:57"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:57"] = {rtwname: "/z_dir"}; - this.rtwnameHashMap["/z_dirPrev"] = {sid: "BLDCmotorControl_R2017b:2687:1632"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1632"] = {rtwname: "/z_dirPrev"}; - this.rtwnameHashMap["/r_DC"] = {sid: "BLDCmotorControl_R2017b:2687:1373"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1373"] = {rtwname: "/r_DC"}; - this.rtwnameHashMap["/r_DCabs"] = {sid: "BLDCmotorControl_R2017b:2687:1663"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1663"] = {rtwname: "/r_DCabs"}; - this.rtwnameHashMap["/z_ctrlTypSel"] = {sid: "BLDCmotorControl_R2017b:2687:1370"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1370"] = {rtwname: "/z_ctrlTypSel"}; - this.rtwnameHashMap["/b_edge"] = {sid: "BLDCmotorControl_R2017b:2687:60"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:60"] = {rtwname: "/b_edge"}; - this.rtwnameHashMap["/z_dir"] = {sid: "BLDCmotorControl_R2017b:2687:61"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:61"] = {rtwname: "/z_dir"}; - this.rtwnameHashMap["/z_dirPrev"] = {sid: "BLDCmotorControl_R2017b:2687:1629"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1629"] = {rtwname: "/z_dirPrev"}; - this.rtwnameHashMap["/Abs2"] = {sid: "BLDCmotorControl_R2017b:2687:1366"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1366"] = {rtwname: "/Abs2"}; - this.rtwnameHashMap["/CTRL_COMM"] = {sid: "BLDCmotorControl_R2017b:2687:1321"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1321"] = {rtwname: "/CTRL_COMM"}; - this.rtwnameHashMap["/Constant6"] = {sid: "BLDCmotorControl_R2017b:2687:64"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:64"] = {rtwname: "/Constant6"}; - this.rtwnameHashMap["/Counter_Hold_and_Error_Calculation"] = {sid: "BLDCmotorControl_R2017b:2687:1340"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1340"] = {rtwname: "/Counter_Hold_and_Error_Calculation"}; - this.rtwnameHashMap["/From"] = {sid: "BLDCmotorControl_R2017b:2687:80"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:80"] = {rtwname: "/From"}; - this.rtwnameHashMap["/From1"] = {sid: "BLDCmotorControl_R2017b:2687:81"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:81"] = {rtwname: "/From1"}; - this.rtwnameHashMap["/From10"] = {sid: "BLDCmotorControl_R2017b:2687:660"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:660"] = {rtwname: "/From10"}; - this.rtwnameHashMap["/From11"] = {sid: "BLDCmotorControl_R2017b:2687:83"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:83"] = {rtwname: "/From11"}; - this.rtwnameHashMap["/From12"] = {sid: "BLDCmotorControl_R2017b:2687:1486"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1486"] = {rtwname: "/From12"}; - this.rtwnameHashMap["/From13"] = {sid: "BLDCmotorControl_R2017b:2687:1523"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1523"] = {rtwname: "/From13"}; - this.rtwnameHashMap["/From14"] = {sid: "BLDCmotorControl_R2017b:2687:1641"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1641"] = {rtwname: "/From14"}; - this.rtwnameHashMap["/From15"] = {sid: "BLDCmotorControl_R2017b:2687:1642"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1642"] = {rtwname: "/From15"}; - this.rtwnameHashMap["/From16"] = {sid: "BLDCmotorControl_R2017b:2687:86"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:86"] = {rtwname: "/From16"}; - this.rtwnameHashMap["/From17"] = {sid: "BLDCmotorControl_R2017b:2687:1665"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1665"] = {rtwname: "/From17"}; - this.rtwnameHashMap["/From18"] = {sid: "BLDCmotorControl_R2017b:2687:1380"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1380"] = {rtwname: "/From18"}; - this.rtwnameHashMap["/From19"] = {sid: "BLDCmotorControl_R2017b:2687:1455"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1455"] = {rtwname: "/From19"}; - this.rtwnameHashMap["/From2"] = {sid: "BLDCmotorControl_R2017b:2687:1361"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1361"] = {rtwname: "/From2"}; - this.rtwnameHashMap["/From20"] = {sid: "BLDCmotorControl_R2017b:2687:1675"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1675"] = {rtwname: "/From20"}; - this.rtwnameHashMap["/From29"] = {sid: "BLDCmotorControl_R2017b:2687:1323"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1323"] = {rtwname: "/From29"}; - this.rtwnameHashMap["/From3"] = {sid: "BLDCmotorControl_R2017b:2687:1517"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1517"] = {rtwname: "/From3"}; - this.rtwnameHashMap["/From30"] = {sid: "BLDCmotorControl_R2017b:2687:1324"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1324"] = {rtwname: "/From30"}; - this.rtwnameHashMap["/From4"] = {sid: "BLDCmotorControl_R2017b:2687:92"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:92"] = {rtwname: "/From4"}; - this.rtwnameHashMap["/From42"] = {sid: "BLDCmotorControl_R2017b:2687:1397"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1397"] = {rtwname: "/From42"}; - this.rtwnameHashMap["/From5"] = {sid: "BLDCmotorControl_R2017b:2687:1485"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1485"] = {rtwname: "/From5"}; - this.rtwnameHashMap["/From6"] = {sid: "BLDCmotorControl_R2017b:2687:1521"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1521"] = {rtwname: "/From6"}; - this.rtwnameHashMap["/From7"] = {sid: "BLDCmotorControl_R2017b:2687:972"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:972"] = {rtwname: "/From7"}; - this.rtwnameHashMap["/From8"] = {sid: "BLDCmotorControl_R2017b:2687:1395"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1395"] = {rtwname: "/From8"}; - this.rtwnameHashMap["/From9"] = {sid: "BLDCmotorControl_R2017b:2687:1533"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1533"] = {rtwname: "/From9"}; - this.rtwnameHashMap["/Goto"] = {sid: "BLDCmotorControl_R2017b:2687:99"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:99"] = {rtwname: "/Goto"}; - this.rtwnameHashMap["/Goto1"] = {sid: "BLDCmotorControl_R2017b:2687:100"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:100"] = {rtwname: "/Goto1"}; - this.rtwnameHashMap["/Goto10"] = {sid: "BLDCmotorControl_R2017b:2687:1664"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1664"] = {rtwname: "/Goto10"}; - this.rtwnameHashMap["/Goto15"] = {sid: "BLDCmotorControl_R2017b:2687:1398"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1398"] = {rtwname: "/Goto15"}; - this.rtwnameHashMap["/Goto16"] = {sid: "BLDCmotorControl_R2017b:2687:1371"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1371"] = {rtwname: "/Goto16"}; - this.rtwnameHashMap["/Goto17"] = {sid: "BLDCmotorControl_R2017b:2687:1372"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1372"] = {rtwname: "/Goto17"}; - this.rtwnameHashMap["/Goto18"] = {sid: "BLDCmotorControl_R2017b:2687:1374"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1374"] = {rtwname: "/Goto18"}; - this.rtwnameHashMap["/Goto2"] = {sid: "BLDCmotorControl_R2017b:2687:1630"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1630"] = {rtwname: "/Goto2"}; - this.rtwnameHashMap["/Goto22"] = {sid: "BLDCmotorControl_R2017b:2687:106"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:106"] = {rtwname: "/Goto22"}; - this.rtwnameHashMap["/Goto3"] = {sid: "BLDCmotorControl_R2017b:2687:1674"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1674"] = {rtwname: "/Goto3"}; - this.rtwnameHashMap["/Goto5"] = {sid: "BLDCmotorControl_R2017b:2687:786"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:786"] = {rtwname: "/Goto5"}; - this.rtwnameHashMap["/Goto6"] = {sid: "BLDCmotorControl_R2017b:2687:1400"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1400"] = {rtwname: "/Goto6"}; - this.rtwnameHashMap["/Goto8"] = {sid: "BLDCmotorControl_R2017b:2687:108"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:108"] = {rtwname: "/Goto8"}; - this.rtwnameHashMap["/Goto9"] = {sid: "BLDCmotorControl_R2017b:2687:1362"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1362"] = {rtwname: "/Goto9"}; - this.rtwnameHashMap["/If1"] = {sid: "BLDCmotorControl_R2017b:2687:1339"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1339"] = {rtwname: "/If1"}; - this.rtwnameHashMap["/Logical Operator2"] = {sid: "BLDCmotorControl_R2017b:2687:1325"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1325"] = {rtwname: "/Logical Operator2"}; - this.rtwnameHashMap["/Motor_Speed_Calculation"] = {sid: "BLDCmotorControl_R2017b:2687:1401"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1401"] = {rtwname: "/Motor_Speed_Calculation"}; - this.rtwnameHashMap["/Mux1"] = {sid: "BLDCmotorControl_R2017b:2687:659"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:659"] = {rtwname: "/Mux1"}; - this.rtwnameHashMap["/Mux2"] = {sid: "BLDCmotorControl_R2017b:2687:842"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:842"] = {rtwname: "/Mux2"}; - this.rtwnameHashMap["/Relational Operator1"] = {sid: "BLDCmotorControl_R2017b:2687:1524"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1524"] = {rtwname: "/Relational Operator1"}; - this.rtwnameHashMap["/Relational Operator3"] = {sid: "BLDCmotorControl_R2017b:2687:1326"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1326"] = {rtwname: "/Relational Operator3"}; - this.rtwnameHashMap["/Relational Operator4"] = {sid: "BLDCmotorControl_R2017b:2687:1327"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1327"] = {rtwname: "/Relational Operator4"}; - this.rtwnameHashMap["/Scope2"] = {sid: "BLDCmotorControl_R2017b:2687:141"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:141"] = {rtwname: "/Scope2"}; - this.rtwnameHashMap["/Sign"] = {sid: "BLDCmotorControl_R2017b:2687:1525"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1525"] = {rtwname: "/Sign"}; - this.rtwnameHashMap["/Sign1"] = {sid: "BLDCmotorControl_R2017b:2687:1526"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1526"] = {rtwname: "/Sign1"}; - this.rtwnameHashMap["/Sum1"] = {sid: "BLDCmotorControl_R2017b:2687:142"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:142"] = {rtwname: "/Sum1"}; - this.rtwnameHashMap["/UnitDelay1"] = {sid: "BLDCmotorControl_R2017b:2687:1507"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1507"] = {rtwname: "/UnitDelay1"}; - this.rtwnameHashMap["/dz_counter"] = {sid: "BLDCmotorControl_R2017b:2687:1518"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1518"] = {rtwname: "/dz_counter"}; - this.rtwnameHashMap["/n_commDeacv"] = {sid: "BLDCmotorControl_R2017b:2687:1328"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1328"] = {rtwname: "/n_commDeacv"}; - this.rtwnameHashMap["/r_commDCDeacv"] = {sid: "BLDCmotorControl_R2017b:2687:1329"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1329"] = {rtwname: "/r_commDCDeacv"}; - this.rtwnameHashMap["/rst_DelayLim"] = {sid: "BLDCmotorControl_R2017b:2687:1651"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1651"] = {rtwname: "/rst_DelayLim"}; - this.rtwnameHashMap["/n_mot"] = {sid: "BLDCmotorControl_R2017b:2687:173"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:173"] = {rtwname: "/n_mot"}; - this.rtwnameHashMap["/n_motAbs"] = {sid: "BLDCmotorControl_R2017b:2687:1676"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1676"] = {rtwname: "/n_motAbs"}; - this.rtwnameHashMap["/b_advCtrlEna"] = {sid: "BLDCmotorControl_R2017b:2687:1381"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1381"] = {rtwname: "/b_advCtrlEna"}; - this.rtwnameHashMap["/z_counter"] = {sid: "BLDCmotorControl_R2017b:2687:1487"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1487"] = {rtwname: "/z_counter"}; - this.rtwnameHashMap["/z_counterRaw"] = {sid: "BLDCmotorControl_R2017b:2687:1488"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1488"] = {rtwname: "/z_counterRaw"}; - this.rtwnameHashMap["/z_counterRawPrev"] = {sid: "BLDCmotorControl_R2017b:2687:1341"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1341"] = {rtwname: "/z_counterRawPrev"}; - this.rtwnameHashMap["/Action Port"] = {sid: "BLDCmotorControl_R2017b:2687:1344"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1344"] = {rtwname: "/Action Port"}; - this.rtwnameHashMap["/Sum4"] = {sid: "BLDCmotorControl_R2017b:2687:1454"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1454"] = {rtwname: "/Sum4"}; - this.rtwnameHashMap["/z_counter2"] = {sid: "BLDCmotorControl_R2017b:2687:169"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:169"] = {rtwname: "/z_counter2"}; - this.rtwnameHashMap["/z_counter"] = {sid: "BLDCmotorControl_R2017b:2687:1358"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1358"] = {rtwname: "/z_counter"}; - this.rtwnameHashMap["/dz_counter"] = {sid: "BLDCmotorControl_R2017b:2687:1359"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1359"] = {rtwname: "/dz_counter"}; - this.rtwnameHashMap["/z_dir"] = {sid: "BLDCmotorControl_R2017b:2687:1431"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1431"] = {rtwname: "/z_dir"}; - this.rtwnameHashMap["/z_dirPrev"] = {sid: "BLDCmotorControl_R2017b:2687:1640"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1640"] = {rtwname: "/z_dirPrev"}; - this.rtwnameHashMap["/z_counter"] = {sid: "BLDCmotorControl_R2017b:2687:1430"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1430"] = {rtwname: "/z_counter"}; - this.rtwnameHashMap["/z_counterRaw"] = {sid: "BLDCmotorControl_R2017b:2687:1639"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1639"] = {rtwname: "/z_counterRaw"}; - this.rtwnameHashMap["/Abs5"] = {sid: "BLDCmotorControl_R2017b:2687:1672"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1672"] = {rtwname: "/Abs5"}; - this.rtwnameHashMap["/Constant1"] = {sid: "BLDCmotorControl_R2017b:2687:1637"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1637"] = {rtwname: "/Constant1"}; - this.rtwnameHashMap["/Constant2"] = {sid: "BLDCmotorControl_R2017b:2687:1433"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1433"] = {rtwname: "/Constant2"}; - this.rtwnameHashMap["/Constant3"] = {sid: "BLDCmotorControl_R2017b:2687:1434"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1434"] = {rtwname: "/Constant3"}; - this.rtwnameHashMap["/Divide1"] = {sid: "BLDCmotorControl_R2017b:2687:1435"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1435"] = {rtwname: "/Divide1"}; - this.rtwnameHashMap["/Divide2"] = {sid: "BLDCmotorControl_R2017b:2687:1436"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1436"] = {rtwname: "/Divide2"}; - this.rtwnameHashMap["/Divide3"] = {sid: "BLDCmotorControl_R2017b:2687:1437"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1437"] = {rtwname: "/Divide3"}; - this.rtwnameHashMap["/Divide4"] = {sid: "BLDCmotorControl_R2017b:2687:1438"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1438"] = {rtwname: "/Divide4"}; - this.rtwnameHashMap["/From1"] = {sid: "BLDCmotorControl_R2017b:2687:1439"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1439"] = {rtwname: "/From1"}; - this.rtwnameHashMap["/From14"] = {sid: "BLDCmotorControl_R2017b:2687:1623"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1623"] = {rtwname: "/From14"}; - this.rtwnameHashMap["/From15"] = {sid: "BLDCmotorControl_R2017b:2687:1635"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1635"] = {rtwname: "/From15"}; - this.rtwnameHashMap["/From17"] = {sid: "BLDCmotorControl_R2017b:2687:1636"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1636"] = {rtwname: "/From17"}; - this.rtwnameHashMap["/From42"] = {sid: "BLDCmotorControl_R2017b:2687:1645"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1645"] = {rtwname: "/From42"}; - this.rtwnameHashMap["/From8"] = {sid: "BLDCmotorControl_R2017b:2687:1646"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1646"] = {rtwname: "/From8"}; - this.rtwnameHashMap["/Goto"] = {sid: "BLDCmotorControl_R2017b:2687:1647"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1647"] = {rtwname: "/Goto"}; - this.rtwnameHashMap["/Goto1"] = {sid: "BLDCmotorControl_R2017b:2687:1648"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1648"] = {rtwname: "/Goto1"}; - this.rtwnameHashMap["/Goto2"] = {sid: "BLDCmotorControl_R2017b:2687:1649"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1649"] = {rtwname: "/Goto2"}; - this.rtwnameHashMap["/Goto22"] = {sid: "BLDCmotorControl_R2017b:2687:1440"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1440"] = {rtwname: "/Goto22"}; - this.rtwnameHashMap["/Goto3"] = {sid: "BLDCmotorControl_R2017b:2687:1650"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1650"] = {rtwname: "/Goto3"}; - this.rtwnameHashMap["/Logical Operator1"] = {sid: "BLDCmotorControl_R2017b:2687:1627"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1627"] = {rtwname: "/Logical Operator1"}; - this.rtwnameHashMap["/Relational Operator2"] = {sid: "BLDCmotorControl_R2017b:2687:1624"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1624"] = {rtwname: "/Relational Operator2"}; - this.rtwnameHashMap["/Relational Operator5"] = {sid: "BLDCmotorControl_R2017b:2687:1628"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1628"] = {rtwname: "/Relational Operator5"}; - this.rtwnameHashMap["/Sum1"] = {sid: "BLDCmotorControl_R2017b:2687:1443"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1443"] = {rtwname: "/Sum1"}; - this.rtwnameHashMap["/Sum2"] = {sid: "BLDCmotorControl_R2017b:2687:1444"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1444"] = {rtwname: "/Sum2"}; - this.rtwnameHashMap["/Switch1"] = {sid: "BLDCmotorControl_R2017b:2687:1638"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1638"] = {rtwname: "/Switch1"}; - this.rtwnameHashMap["/UnitDelay2"] = {sid: "BLDCmotorControl_R2017b:2687:1446"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1446"] = {rtwname: "/UnitDelay2"}; - this.rtwnameHashMap["/cf_spdCoef"] = {sid: "BLDCmotorControl_R2017b:2687:1447"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1447"] = {rtwname: "/cf_spdCoef"}; - this.rtwnameHashMap["/cf_speedFilt"] = {sid: "BLDCmotorControl_R2017b:2687:1448"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1448"] = {rtwname: "/cf_speedFilt"}; - this.rtwnameHashMap["/z_maxCntRst"] = {sid: "BLDCmotorControl_R2017b:2687:1625"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1625"] = {rtwname: "/z_maxCntRst"}; - this.rtwnameHashMap["/n_motRaw"] = {sid: "BLDCmotorControl_R2017b:2687:1450"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1450"] = {rtwname: "/n_motRaw"}; - this.rtwnameHashMap["/n_mot"] = {sid: "BLDCmotorControl_R2017b:2687:1451"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1451"] = {rtwname: "/n_mot"}; - this.rtwnameHashMap["/n_motAbs"] = {sid: "BLDCmotorControl_R2017b:2687:1673"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1673"] = {rtwname: "/n_motAbs"}; - this.rtwnameHashMap["/u"] = {sid: "BLDCmotorControl_R2017b:2687:1651:1614"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1651:1614"] = {rtwname: "/u"}; - this.rtwnameHashMap["/rst"] = {sid: "BLDCmotorControl_R2017b:2687:1651:1615"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1651:1615"] = {rtwname: "/rst"}; - this.rtwnameHashMap["/Constant1"] = {sid: "BLDCmotorControl_R2017b:2687:1651:1616"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1651:1616"] = {rtwname: "/Constant1"}; - this.rtwnameHashMap["/Constant23"] = {sid: "BLDCmotorControl_R2017b:2687:1651:1617"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1651:1617"] = {rtwname: "/Constant23"}; - this.rtwnameHashMap["/Relational Operator1"] = {sid: "BLDCmotorControl_R2017b:2687:1651:1618"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1651:1618"] = {rtwname: "/Relational Operator1"}; - this.rtwnameHashMap["/Switch1"] = {sid: "BLDCmotorControl_R2017b:2687:1651:1619"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1651:1619"] = {rtwname: "/Switch1"}; - this.rtwnameHashMap["/Switch2"] = {sid: "BLDCmotorControl_R2017b:2687:1651:1620"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1651:1620"] = {rtwname: "/Switch2"}; - this.rtwnameHashMap["/UnitDelay1"] = {sid: "BLDCmotorControl_R2017b:2687:1651:1621"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1651:1621"] = {rtwname: "/UnitDelay1"}; - this.rtwnameHashMap["/y"] = {sid: "BLDCmotorControl_R2017b:2687:1651:1622"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1651:1622"] = {rtwname: "/y"}; - this.rtwnameHashMap["/a_elecAngleAdv"] = {sid: "BLDCmotorControl_R2017b:2687:286"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:286"] = {rtwname: "/a_elecAngleAdv"}; - this.rtwnameHashMap["/Action Port"] = {sid: "BLDCmotorControl_R2017b:2687:287"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:287"] = {rtwname: "/Action Port"}; - this.rtwnameHashMap["/a_trapElecAngle_XA"] = {sid: "BLDCmotorControl_R2017b:2687:288"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:288"] = {rtwname: "/a_trapElecAngle_XA"}; - this.rtwnameHashMap["/r_trapPhaA_M1"] = {sid: "BLDCmotorControl_R2017b:2687:289"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:289"] = {rtwname: "/r_trapPhaA_M1"}; - this.rtwnameHashMap["/r_trapPhaB_M1"] = {sid: "BLDCmotorControl_R2017b:2687:290"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:290"] = {rtwname: "/r_trapPhaB_M1"}; - this.rtwnameHashMap["/r_trapPhaC_M1"] = {sid: "BLDCmotorControl_R2017b:2687:291"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:291"] = {rtwname: "/r_trapPhaC_M1"}; - this.rtwnameHashMap["/r_phaA_Trap"] = {sid: "BLDCmotorControl_R2017b:2687:292"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:292"] = {rtwname: "/r_phaA_Trap"}; - this.rtwnameHashMap["/r_phaB_Trap"] = {sid: "BLDCmotorControl_R2017b:2687:293"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:293"] = {rtwname: "/r_phaB_Trap"}; - this.rtwnameHashMap["/r_phaC_Trap"] = {sid: "BLDCmotorControl_R2017b:2687:294"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:294"] = {rtwname: "/r_phaC_Trap"}; - this.rtwnameHashMap["/a_elecAngleAdv"] = {sid: "BLDCmotorControl_R2017b:2687:306"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:306"] = {rtwname: "/a_elecAngleAdv"}; - this.rtwnameHashMap["/Action Port"] = {sid: "BLDCmotorControl_R2017b:2687:307"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:307"] = {rtwname: "/Action Port"}; - this.rtwnameHashMap["/a_sinElecAngle_XA"] = {sid: "BLDCmotorControl_R2017b:2687:308"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:308"] = {rtwname: "/a_sinElecAngle_XA"}; - this.rtwnameHashMap["/r_sinPhaA_M1"] = {sid: "BLDCmotorControl_R2017b:2687:309"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:309"] = {rtwname: "/r_sinPhaA_M1"}; - this.rtwnameHashMap["/r_sinPhaB_M1"] = {sid: "BLDCmotorControl_R2017b:2687:310"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:310"] = {rtwname: "/r_sinPhaB_M1"}; - this.rtwnameHashMap["/r_sinPhaC_M1"] = {sid: "BLDCmotorControl_R2017b:2687:311"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:311"] = {rtwname: "/r_sinPhaC_M1"}; - this.rtwnameHashMap["/r_phaA_Sin"] = {sid: "BLDCmotorControl_R2017b:2687:312"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:312"] = {rtwname: "/r_phaA_Sin"}; - this.rtwnameHashMap["/r_phaB_Sin"] = {sid: "BLDCmotorControl_R2017b:2687:313"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:313"] = {rtwname: "/r_phaB_Sin"}; - this.rtwnameHashMap["/r_phaC_Sin"] = {sid: "BLDCmotorControl_R2017b:2687:314"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:314"] = {rtwname: "/r_phaC_Sin"}; - this.rtwnameHashMap["/a_elecAngleAdv"] = {sid: "BLDCmotorControl_R2017b:2687:296"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:296"] = {rtwname: "/a_elecAngleAdv"}; - this.rtwnameHashMap["/Action Port"] = {sid: "BLDCmotorControl_R2017b:2687:297"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:297"] = {rtwname: "/Action Port"}; - this.rtwnameHashMap["/a_sinElecAngle_XA"] = {sid: "BLDCmotorControl_R2017b:2687:298"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:298"] = {rtwname: "/a_sinElecAngle_XA"}; - this.rtwnameHashMap["/r_sin3PhaA_M1"] = {sid: "BLDCmotorControl_R2017b:2687:299"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:299"] = {rtwname: "/r_sin3PhaA_M1"}; - this.rtwnameHashMap["/r_sin3PhaB_M1"] = {sid: "BLDCmotorControl_R2017b:2687:300"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:300"] = {rtwname: "/r_sin3PhaB_M1"}; - this.rtwnameHashMap["/r_sin3PhaC_M1"] = {sid: "BLDCmotorControl_R2017b:2687:301"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:301"] = {rtwname: "/r_sin3PhaC_M1"}; - this.rtwnameHashMap["/r_phaA_Sin3"] = {sid: "BLDCmotorControl_R2017b:2687:302"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:302"] = {rtwname: "/r_phaA_Sin3"}; - this.rtwnameHashMap["/r_phaB_Sin3"] = {sid: "BLDCmotorControl_R2017b:2687:303"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:303"] = {rtwname: "/r_phaB_Sin3"}; - this.rtwnameHashMap["/r_phaC_Sin3"] = {sid: "BLDCmotorControl_R2017b:2687:304"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:304"] = {rtwname: "/r_phaC_Sin3"}; - this.rtwnameHashMap["/r_phaB"] = {sid: "BLDCmotorControl_R2017b:2687:350"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:350"] = {rtwname: "/r_phaB"}; - this.rtwnameHashMap["/Terminator_1"] = {sid: "BLDCmotorControl_R2017b:2687:351"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:351"] = {rtwname: "/Terminator_1"}; - this.rtwnameHashMap["/r_phaC"] = {sid: "BLDCmotorControl_R2017b:2687:353"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:353"] = {rtwname: "/r_phaC"}; - this.rtwnameHashMap["/Terminator_1"] = {sid: "BLDCmotorControl_R2017b:2687:354"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:354"] = {rtwname: "/Terminator_1"}; - this.rtwnameHashMap["/r_phaA"] = {sid: "BLDCmotorControl_R2017b:2687:356"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:356"] = {rtwname: "/r_phaA"}; - this.rtwnameHashMap["/Terminator_1"] = {sid: "BLDCmotorControl_R2017b:2687:357"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:357"] = {rtwname: "/Terminator_1"}; - this.getSID = function(rtwname) { return this.rtwnameHashMap[rtwname];} - this.getRtwname = function(sid) { return this.sidHashMap[sid];} -} -RTW_rtwnameSIDMap.instance = new RTW_rtwnameSIDMap(); diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/codeMetrics.mat b/01_Matlab/BLDC_controller_ert_rtw/html/codeMetrics.mat deleted file mode 100644 index 3420198..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/codeMetrics.mat and /dev/null differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/contents_file.tmp b/01_Matlab/BLDC_controller_ert_rtw/html/contents_file.tmp deleted file mode 100644 index 4b0fed5..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/contents_file.tmp +++ /dev/null @@ -1,9 +0,0 @@ - - - - - - -
-Generated Source Files -
ert_main.c
BLDC_controller.c
BLDC_controller.h
BLDC_controller_data.c
rtwtypes.h
diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/define.js b/01_Matlab/BLDC_controller_ert_rtw/html/define.js deleted file mode 100644 index 7a7882d..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/define.js +++ /dev/null @@ -1,78 +0,0 @@ -function CodeDefine() { -this.def = new Array(); -this.def["rtM_"] = {file: "ert_main_c.html",line:29,type:"var"}; -this.def["rtMPtr"] = {file: "ert_main_c.html",line:30,type:"var"}; -this.def["rtP"] = {file: "ert_main_c.html",line:31,type:"var"}; -this.def["rtDW"] = {file: "ert_main_c.html",line:103,type:"var"}; -this.def["rtU"] = {file: "ert_main_c.html",line:104,type:"var"}; -this.def["rtY"] = {file: "ert_main_c.html",line:105,type:"var"}; -this.def["rt_OneStep"] = {file: "ert_main_c.html",line:119,type:"fcn"}; -this.def["main"] = {file: "ert_main_c.html",line:155,type:"fcn"}; -this.def["plook_u8s32u32n31_evenc_s"] = {file: "BLDC_controller_c.html",line:93,type:"fcn"}; -this.def["intrp1d_s16s32s32u8u32n31l_s"] = {file: "BLDC_controller_c.html",line:127,type:"fcn"}; -this.def["div_nde_s32_floor"] = {file: "BLDC_controller_c.html",line:143,type:"fcn"}; -this.def["BLDC_controller_step"] = {file: "BLDC_controller_c.html",line:150,type:"fcn"}; -this.def["BLDC_controller_initialize"] = {file: "BLDC_controller_c.html",line:666,type:"fcn"}; -this.def["RT_MODEL"] = {file: "BLDC_controller_h.html",line:35,type:"type"}; -this.def["DW"] = {file: "BLDC_controller_h.html",line:58,type:"type"}; -this.def["ConstP"] = {file: "BLDC_controller_h.html",line:116,type:"type"}; -this.def["ExtU"] = {file: "BLDC_controller_h.html",line:124,type:"type"}; -this.def["ExtY"] = {file: "BLDC_controller_h.html",line:133,type:"type"}; -this.def["P"] = {file: "BLDC_controller_h.html",line:184,type:"type"}; -this.def["rtConstP"] = {file: "BLDC_controller_data_c.html",line:27,type:"var"}; -this.def["int8_T"] = {file: "rtwtypes_h.html",line:55,type:"type"}; -this.def["uint8_T"] = {file: "rtwtypes_h.html",line:56,type:"type"}; -this.def["int16_T"] = {file: "rtwtypes_h.html",line:57,type:"type"}; -this.def["uint16_T"] = {file: "rtwtypes_h.html",line:58,type:"type"}; -this.def["int32_T"] = {file: "rtwtypes_h.html",line:59,type:"type"}; -this.def["uint32_T"] = {file: "rtwtypes_h.html",line:60,type:"type"}; -this.def["int64_T"] = {file: "rtwtypes_h.html",line:61,type:"type"}; -this.def["uint64_T"] = {file: "rtwtypes_h.html",line:62,type:"type"}; -this.def["real32_T"] = {file: "rtwtypes_h.html",line:63,type:"type"}; -this.def["real64_T"] = {file: "rtwtypes_h.html",line:64,type:"type"}; -this.def["real_T"] = {file: "rtwtypes_h.html",line:70,type:"type"}; -this.def["time_T"] = {file: "rtwtypes_h.html",line:71,type:"type"}; -this.def["boolean_T"] = {file: "rtwtypes_h.html",line:72,type:"type"}; -this.def["int_T"] = {file: "rtwtypes_h.html",line:73,type:"type"}; -this.def["uint_T"] = {file: "rtwtypes_h.html",line:74,type:"type"}; -this.def["ulong_T"] = {file: "rtwtypes_h.html",line:75,type:"type"}; -this.def["ulonglong_T"] = {file: "rtwtypes_h.html",line:76,type:"type"}; -this.def["char_T"] = {file: "rtwtypes_h.html",line:77,type:"type"}; -this.def["uchar_T"] = {file: "rtwtypes_h.html",line:78,type:"type"}; -this.def["byte_T"] = {file: "rtwtypes_h.html",line:79,type:"type"}; -this.def["pointer_T"] = {file: "rtwtypes_h.html",line:100,type:"type"}; -} -CodeDefine.instance = new CodeDefine(); -var testHarnessInfo = {OwnerFileName: "", HarnessOwner: "", HarnessName: "", IsTestHarness: "0"}; -var relPathToBuildDir = "../ert_main.c"; -var fileSep = "\\"; -var isPC = true; -function Html2SrcLink() { - this.html2SrcPath = new Array; - this.html2Root = new Array; - this.html2SrcPath["ert_main_c.html"] = "../ert_main.c"; - this.html2Root["ert_main_c.html"] = "ert_main_c.html"; - this.html2SrcPath["BLDC_controller_c.html"] = "../BLDC_controller.c"; - this.html2Root["BLDC_controller_c.html"] = "BLDC_controller_c.html"; - this.html2SrcPath["BLDC_controller_h.html"] = "../BLDC_controller.h"; - this.html2Root["BLDC_controller_h.html"] = "BLDC_controller_h.html"; - this.html2SrcPath["BLDC_controller_data_c.html"] = "../BLDC_controller_data.c"; - this.html2Root["BLDC_controller_data_c.html"] = "BLDC_controller_data_c.html"; - this.html2SrcPath["rtwtypes_h.html"] = "../rtwtypes.h"; - this.html2Root["rtwtypes_h.html"] = "rtwtypes_h.html"; - this.getLink2Src = function (htmlFileName) { - if (this.html2SrcPath[htmlFileName]) - return this.html2SrcPath[htmlFileName]; - else - return null; - } - this.getLinkFromRoot = function (htmlFileName) { - if (this.html2Root[htmlFileName]) - return this.html2Root[htmlFileName]; - else - return null; - } -} -Html2SrcLink.instance = new Html2SrcLink(); -var fileList = [ -"ert_main_c.html","BLDC_controller_c.html","BLDC_controller_h.html","BLDC_controller_data_c.html","rtwtypes_h.html"]; diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/ert_main_c.html b/01_Matlab/BLDC_controller_ert_rtw/html/ert_main_c.html deleted file mode 100644 index 393a5c1..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/ert_main_c.html +++ /dev/null @@ -1,221 +0,0 @@ - - - -RTW Report - ert_main.c - - - - - - -

-
-

File: ert_main.c

-
-    1   /*
-    2    * Academic License - for use in teaching, academic research, and meeting
-    3    * course requirements at degree granting institutions only.  Not for
-    4    * government, commercial, or other organizational use.
-    5    *
-    6    * File: ert_main.c
-    7    *
-    8    * Code generated for Simulink model 'BLDC_controller'.
-    9    *
-   10    * Model version                  : 1.883
-   11    * Simulink Coder version         : 8.13 (R2017b) 24-Jul-2017
-   12    * C/C++ source code generated on : Tue Jun 11 21:14:57 2019
-   13    *
-   14    * Target selection: ert.tlc
-   15    * Embedded hardware selection: ARM Compatible->ARM Cortex
-   16    * Emulation hardware selection:
-   17    *    Differs from embedded hardware (MATLAB Host)
-   18    * Code generation objectives:
-   19    *    1. Execution efficiency
-   20    *    2. RAM efficiency
-   21    * Validation result: Not run
-   22    */
-   23   
-   24   #include <stddef.h>
-   25   #include <stdio.h>                     /* This ert_main.c example uses printf/fflush */
-   26   #include "BLDC_controller.h"           /* Model's header file */
-   27   #include "rtwtypes.h"
-   28   
-   29   static RT_MODEL rtM_;
-   30   static RT_MODEL *const rtMPtr = &rtM_; /* Real-time model */
-   31   static P rtP = {
-   32     /* Variable: cf_speedCoef
-   33      * Referenced by: '<S16>/cf_spdCoef'
-   34      */
-   35     11111,
-   36   
-   37     /* Variable: cf_speedFilt
-   38      * Referenced by: '<S16>/cf_speedFilt'
-   39      */
-   40     10,
-   41   
-   42     /* Variable: n_commAcvLo
-   43      * Referenced by: '<S14>/n_commDeacv'
-   44      */
-   45     15,
-   46   
-   47     /* Variable: n_commDeacvHi
-   48      * Referenced by: '<S14>/n_commDeacv'
-   49      */
-   50     30,
-   51   
-   52     /* Variable: n_motPhaAdvEna
-   53      * Referenced by: '<S8>/n_motPhaAdvEna'
-   54      */
-   55     400,
-   56   
-   57     /* Variable: r_commDCDeacv
-   58      * Referenced by: '<S14>/r_commDCDeacv'
-   59      */
-   60     70,
-   61   
-   62     /* Variable: r_phaAdvDC_XA
-   63      * Referenced by: '<S8>/r_phaAdvDC_XA'
-   64      */
-   65     { 0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000 },
-   66   
-   67     /* Variable: a_phaAdv_M1
-   68      * Referenced by: '<S8>/a_phaAdv_M2'
-   69      */
-   70     { 0, 0, 0, 0, 0, 2, 3, 5, 9, 16, 25 },
-   71   
-   72     /* Variable: dz_counterHi
-   73      * Referenced by: '<S14>/dz_counter'
-   74      */
-   75     50,
-   76   
-   77     /* Variable: dz_counterLo
-   78      * Referenced by: '<S14>/dz_counter'
-   79      */
-   80     20,
-   81   
-   82     /* Variable: z_maxCntRst
-   83      * Referenced by:
-   84      *   '<S15>/z_counter'
-   85      *   '<S15>/z_counter2'
-   86      *   '<S16>/z_maxCntRst'
-   87      *   '<S17>/Constant1'
-   88      *   '<S17>/UnitDelay1'
-   89      */
-   90     1500,
-   91   
-   92     /* Variable: z_ctrlTypSel
-   93      * Referenced by: '<S7>/z_ctrlTypSel1'
-   94      */
-   95     3U,
-   96   
-   97     /* Variable: b_phaAdvEna
-   98      * Referenced by: '<S8>/a_elecPeriod1'
-   99      */
-  100     1
-  101   };                                     /* Modifiable parameters */
-  102   
-  103   static DW rtDW;                        /* Observable states */
-  104   static ExtU rtU;                       /* External inputs */
-  105   static ExtY rtY;                       /* External outputs */
-  106   
-  107   /*
-  108    * Associating rt_OneStep with a real-time clock or interrupt service routine
-  109    * is what makes the generated code "real-time".  The function rt_OneStep is
-  110    * always associated with the base rate of the model.  Subrates are managed
-  111    * by the base rate from inside the generated code.  Enabling/disabling
-  112    * interrupts and floating point context switches are target specific.  This
-  113    * example code indicates where these should take place relative to executing
-  114    * the generated code step function.  Overrun behavior should be tailored to
-  115    * your application needs.  This example simply sets an error status in the
-  116    * real-time model and returns from rt_OneStep.
-  117    */
-  118   void rt_OneStep(RT_MODEL *const rtM);
-  119   void rt_OneStep(RT_MODEL *const rtM)
-  120   {
-  121     static boolean_T OverrunFlag = false;
-  122   
-  123     /* Disable interrupts here */
-  124   
-  125     /* Check for overrun */
-  126     if (OverrunFlag) {
-  127       return;
-  128     }
-  129   
-  130     OverrunFlag = true;
-  131   
-  132     /* Save FPU context here (if necessary) */
-  133     /* Re-enable timer or interrupt here */
-  134     /* Set model inputs here */
-  135   
-  136     /* Step the model */
-  137     BLDC_controller_step(rtM);
-  138   
-  139     /* Get model outputs here */
-  140   
-  141     /* Indicate task complete */
-  142     OverrunFlag = false;
-  143   
-  144     /* Disable interrupts here */
-  145     /* Restore FPU context here (if necessary) */
-  146     /* Enable interrupts here */
-  147   }
-  148   
-  149   /*
-  150    * The example "main" function illustrates what is required by your
-  151    * application code to initialize, execute, and terminate the generated code.
-  152    * Attaching rt_OneStep to a real-time clock is target specific.  This example
-  153    * illustrates how you do this relative to initializing the model.
-  154    */
-  155   int_T main(int_T argc, const char *argv[])
-  156   {
-  157     RT_MODEL *const rtM = rtMPtr;
-  158   
-  159     /* Unused arguments */
-  160     (void)(argc);
-  161     (void)(argv);
-  162   
-  163     /* Pack model data into RTM */
-  164     rtM->defaultParam = &rtP;
-  165     rtM->dwork = &rtDW;
-  166     rtM->inputs = &rtU;
-  167     rtM->outputs = &rtY;
-  168   
-  169     /* Initialize model */
-  170     BLDC_controller_initialize(rtM);
-  171   
-  172     /* Attach rt_OneStep to a timer or interrupt service routine with
-  173      * period 6.0E-5 seconds (the model's base sample time) here.  The
-  174      * call syntax for rt_OneStep is
-  175      *
-  176      *  rt_OneStep(rtM);
-  177      */
-  178     printf("Warning: The simulation will run forever. "
-  179            "Generated ERT main won't simulate model step behavior. "
-  180            "To change this behavior select the 'MAT-file logging' option.\n");
-  181     fflush((NULL));
-  182     while (1) {
-  183       /*  Perform other application tasks here */
-  184     }
-  185   
-  186     /* The option 'Remove error status field in real-time model data structure'
-  187      * is selected, therefore the following code does not need to execute.
-  188      */
-  189   #if 0
-  190   
-  191     /* Disable rt_OneStep() here */
-  192   #endif
-  193   
-  194     return 0;
-  195   }
-  196   
-  197   /*
-  198    * File trailer for generated code.
-  199    *
-  200    * [EOF]
-  201    */
-  202   
-
-
-

- - \ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/help.png b/01_Matlab/BLDC_controller_ert_rtw/html/help.png deleted file mode 100644 index 4c4192e..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/help.png and /dev/null differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/hilite_warning.png b/01_Matlab/BLDC_controller_ert_rtw/html/hilite_warning.png deleted file mode 100644 index f013f81..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/hilite_warning.png and /dev/null differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/inspect.html b/01_Matlab/BLDC_controller_ert_rtw/html/inspect.html deleted file mode 100644 index b628c7a..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/inspect.html +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - - - - - - - -
- - diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/metrics.js b/01_Matlab/BLDC_controller_ert_rtw/html/metrics.js deleted file mode 100644 index e14989a..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/metrics.js +++ /dev/null @@ -1,32 +0,0 @@ -function CodeMetrics() { - this.metricsArray = {}; - this.metricsArray.var = new Array(); - this.metricsArray.fcn = new Array(); - this.metricsArray.fcn["BLDC_controller_initialize"] = {file: "D:\\git\\hoverboard-firmware-hack\\01_Matlab\\BLDC_controller_ert_rtw\\BLDC_controller.c", - stack: 16, - stackTotal: 16}; - this.metricsArray.fcn["BLDC_controller_step"] = {file: "D:\\git\\hoverboard-firmware-hack\\01_Matlab\\BLDC_controller_ert_rtw\\BLDC_controller.c", - stack: 60, - stackTotal: 69}; - this.metricsArray.fcn["div_nde_s32_floor"] = {file: "D:\\git\\hoverboard-firmware-hack\\01_Matlab\\BLDC_controller_ert_rtw\\BLDC_controller.c", - stack: 0, - stackTotal: 0}; - this.metricsArray.fcn["intrp1d_s16s32s32u8u32n31l_s"] = {file: "D:\\git\\hoverboard-firmware-hack\\01_Matlab\\BLDC_controller_ert_rtw\\BLDC_controller.c", - stack: 4, - stackTotal: 4}; - this.metricsArray.fcn["plook_u8s32u32n31_evenc_s"] = {file: "D:\\git\\hoverboard-firmware-hack\\01_Matlab\\BLDC_controller_ert_rtw\\BLDC_controller.c", - stack: 9, - stackTotal: 9}; - this.getMetrics = function(token) { - var data; - data = this.metricsArray.var[token]; - if (!data) { - data = this.metricsArray.fcn[token]; - if (data) data.type = "fcn"; - } else { - data.type = "var"; - } - return data; }; - this.codeMetricsSummary = 'Global Memory: 0(bytes) Maximum Stack: 60(bytes)'; - } -CodeMetrics.instance = new CodeMetrics(); diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/nav.html b/01_Matlab/BLDC_controller_ert_rtw/html/nav.html deleted file mode 100644 index 64f68db..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/nav.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/navToolbar.html b/01_Matlab/BLDC_controller_ert_rtw/html/navToolbar.html deleted file mode 100644 index d07c72e..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/navToolbar.html +++ /dev/null @@ -1,69 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/rtwcodemetricsreport_utils.js b/01_Matlab/BLDC_controller_ert_rtw/html/rtwcodemetricsreport_utils.js deleted file mode 100644 index 6142263..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/rtwcodemetricsreport_utils.js +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright 2016 The MathWorks, Inc. - -//Poll for metrics.js on 5 second intervals -function getCodeMetricsByPolling(ctThreshold, intervalPeriod){ - if(ctThreshold === undefined){ - ctThreshold = 1000; - } - if(intervalPeriod === undefined){ - intervalPeriod = 5000; - } - var intervalId; - var ct=0; - //function to get code metrics - function getCodeMetrics(){ - cm = CodeMetrics.instance; - var alink = document.getElementById("metricsLocation"); - alink.innerHTML = cm.codeMetricsSummary; - } - if (typeof CodeMetrics !== "undefined"){ - getCodeMetrics(); - } - else{ - intervalId = window.setInterval(function(){ - //Try reinclude metrics to check if CodeMetrics are available - ct = ct + 1; - if (ct > ctThreshold){ - // Clear if elapsed time is 1000x5 seconds - clearInterval(intervalId); - var alink = document.getElementById("metricsLocation"); - alink.innerHTML = 'Error generating code metrics'; - } - else{ - var metricsScript = document.getElementById('metrics'); - if(metricsScript !== null){ - metricsScript.parentNode.removeChild(metricsScript); - } - var jsElm = document.createElement("script"); - jsElm.type = "application/javascript"; - jsElm.src = "metrics.js"; - jsElm.id = "metrics"; - document.getElementsByTagName('head')[0].appendChild(jsElm); - if (typeof CodeMetrics !== "undefined"){ - clearInterval(intervalId); - getCodeMetrics(); - } - } - }, intervalPeriod); - } - } \ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/rtwhilite.js b/01_Matlab/BLDC_controller_ert_rtw/html/rtwhilite.js deleted file mode 100644 index 0328a3b..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/rtwhilite.js +++ /dev/null @@ -1,2049 +0,0 @@ -// Copyright 2007-2016 The MathWorks, Inc. - -// Class RTW_Hash ------------------------------------------------------------ -// Internal web browser doesn't change window.location.hash if the link points -// to the same page. -// RTW_Hash remembers the hash value when the page is loaded in the first time -// or a link is clicked. -// removeHiliteByHash cleans the high lighted elements according to the stored -// hash value -function RTW_Hash(aHash) { - if (aHash == null) { - this.fHash = ""; - } else { - this.fHash = aHash; - }; - - this.getHash = function() { - return this.fHash; - } - - this.setHash = function(aHash) { - this.fHash = aHash; - } -} - -RTW_Hash.instance = null; - -// Class RTW_TraceInfo -------------------------------------------------------- -function RTW_TraceInfo(aFileLinks) { - this.fFileLinks = aFileLinks; - this.fLines = new Array(); - this.fTotalLines = 0; // total number of highlighted lines - this.fNumLines = new Array(); - this.fFileIdxCache = new Array(); - this.fDisablePanel = false; - this.fCurrFileIdx = -1; - this.fCurrLineIdx = -1; - this.fCurrCodeNode = null; - this.getHtmlFileName = function(aIndex) { - if (aIndex < this.fFileLinks.length) { - var href = this.fFileLinks[aIndex].href; - return href.substring(href.lastIndexOf('/')+1); - } - } - this.getSrcFileName = function(aIndex) { - var name = this.getHtmlFileName(aIndex); - if (name) - name = RTW_TraceInfo.toSrcFileName(name); - return name; - } - this.getNumFileLinks = function() { - return this.fFileLinks.length; - } - this.setFileLinkColor = function(aIndex, aColor) { - var link = this.fFileLinks[aIndex]; - if (link && link.parentNode && link.parentNode.style) - link.parentNode.style.backgroundColor = aColor; - } - this.highlightFileLink = function(aIndex, aColor) { - for (var i = 0; i < this.fFileLinks.length; ++i) { - this.setFileLinkColor(i, i == aIndex ? aColor : ""); - } - } - this.highlightCurrFileLink = function(aColor) { - this.highlightFileLink(this.fCurrFileIdx); - } - this.highlightLines = function(aCodeNode,aColor) { - this.fCurrCodeNode = aCodeNode; - var lines = this.fLines[this.getHtmlFileName(this.fCurrFileIdx)]; - if (lines && aCodeNode) { - for (var i = 0; i < lines.length; ++i) { - var lineObj = aCodeNode.childNodes[lines[i]-1]; - if (lineObj) - lineObj.style.backgroundColor=aColor; - } - } - } - this.getFileIdx = function(aFile) { - if (this.fFileIdxCache[aFile] != null) - return this.fFileIdxCache[aFile]; - for (var i = 0; i < this.fFileLinks.length; ++i) { - if (this.getHtmlFileName(i) == aFile) { - this.fFileIdxCache[aFile] = i; - return i; - } - } - return null; - } - this.getCurrFileIdx = function() { return this.fCurrFileIdx; } - this.setNumHighlightedLines = function(aFileIdx, aNumLines) { - this.fNumLines[aFileIdx] = aNumLines; - updateNumHighlightedLines(this.fFileLinks[aFileIdx], aNumLines); - } - this.getNumLines = function(aFileIdx) { - return this.fNumLines[aFileIdx] != null ? this.fNumLines[aFileIdx] : 0; - } - this.getNumLinesAll = function() { - var sum = 0; - var len = this.fNumLines.length; - for (var i = 0; i < len; ++i) { - sum += this.getNumLines(i); - } - return sum; - } - this.getPrevButton = function() { - var aFrame = getNavFrame(); - if (typeof aFrame !== "undefined" && aFrame !== null) - return aFrame.document.getElementById("rtwIdButtonPrev"); - else - return document.getElementById("rtwIdButtonPrev"); - } - this.getNextButton = function() { - var aFrame = getNavFrame(); - if (typeof aFrame !== "undefined" && aFrame !== null) - return aFrame.document.getElementById("rtwIdButtonNext"); - else - return document.getElementById("rtwIdButtonNext"); - } - this.getPanel = function() { - var aFrame = getNavFrame(); - if (typeof aFrame !== "undefined" && aFrame !== null) - return aFrame.document.getElementById("rtwIdTracePanel"); - else - return document.getElementById("rtwIdTracePanel"); - } - this.removeHighlighting = function() { - for (var i = 0; i < this.fFileLinks.length; ++i) { - this.setFileLinkColor(i, ""); - this.setNumHighlightedLines(i, 0); - } - // remove highlight and reset current code node - try { - if (this.fCurrCodeNode != null) - this.highlightLines(getCodeNode(),""); - } catch (e) {}; - this.fCurrCodeNode = null; - if (this.getPrevButton()) { this.getPrevButton().disabled = true; } - if (this.getNextButton()) { this.getNextButton().disabled = true; } - if (this.getPanel()) { this.getPanel().style.display = "none"; } - this.fCurrFileIdx = -1; - this.fCurrLineIdx = -1; - } - this.setCurrLineIdx = function(aLineIdx) { - this.fCurrLineIdx = aLineIdx; - } - this.getCurrLineIdx = function() { return this.fCurrLineIdx; } - this.setCurrent = function(aFileIdx, aLineIdx) { - this.fCurrFileIdx = aFileIdx; - var numLines = this.getNumLines(aFileIdx); - if (!numLines || aLineIdx >= numLines) - this.fCurrLineIdx = -1; - else - this.fCurrLineIdx = aLineIdx; - var allNumLines = this.getNumLinesAll(); - if (this.getPrevButton()) { - this.getPrevButton().disabled = (allNumLines <= 1 || !this.hasPrev()); - } - if (this.getNextButton()) { - this.getNextButton().disabled = (allNumLines <= 1 || !this.hasNext()); - } - if (this.getPanel() && !this.fDisablePanel) { - this.getPanel().style.display = 'block'; - } - } - this.setDisablePanel = function(aDisable) { - this.fDisablePanel = aDisable; - } - this.getPrevFileIdx = function() { - if (this.fCurrLineIdx > 0) - return this.fCurrFileIdx; - for (var i = this.fCurrFileIdx - 1; i >= 0; --i) - if (this.fNumLines[i] > 0) - return i; - return null; - } - // update the navigation bar state - this.updateNavState = function() { - if (this.getPrevButton()) - this.getPrevButton().disabled = !this.hasPrev(); - if (this.getNextButton()) - this.getNextButton().disabled = !this.hasNext(); - setTraceNumber(); - } - this.hasPrev = function() { - return this.getPrevFileIdx() != null; - } - this.getFirstFileIdx = function() { - for (var i = 0; i < this.getNumFileLinks(); ++i) - if (this.fNumLines[i] > 0) - return i; - } - this.getLastFileIdx = function() { - for (var i = this.getNumFileLinks(); i >= 0; --i) - if (this.fNumLines[i] > 0) - return i; - } - this.goFirst = function() { - this.fCurrFileIdx = this.getFirstFileIdx(); - this.fCurrLineIdx = 0; - this.updateNavState(); - } - this.goLast = function() { - this.fCurrFileIdx = this.getLastFileIdx();; - this.fCurrLineIdx = this.getNumLines(this.fCurrFileIdx) - 1; - this.updateNavState(); - } - this.goPrev = function() { - var fileIdx = this.getPrevFileIdx(); - if (fileIdx == null) - return; - if (fileIdx == this.fCurrFileIdx) - --this.fCurrLineIdx; - else { - this.fCurrFileIdx = fileIdx; - this.fCurrLineIdx = this.getNumLines(fileIdx) - 1; - } - this.updateNavState(); - } - this.getNextFileIdx = function() { - if (this.fCurrLineIdx < this.getNumLines(this.fCurrFileIdx) - 1 && this.getNumLines(this.fCurrFileIdx) > 0) - return this.fCurrFileIdx; - for (var i = this.fCurrFileIdx + 1; i < this.getNumFileLinks(); ++i) - if (this.fNumLines[i] > 0) - return i; - return null; - } - this.hasNext = function() { - return this.getNextFileIdx() != null; - } - this.goNext = function() { - var fileIdx = this.getNextFileIdx(); - if (fileIdx == null) - return; - if (fileIdx == this.fCurrFileIdx) - ++this.fCurrLineIdx; - else { - this.fCurrFileIdx = fileIdx; - this.fCurrLineIdx = 0; - } - this.updateNavState(); - } - this.setTotalLines = function(num) { - this.fTotalLines = num; - } - this.getTotalLines = function() { return this.fTotalLines;} - this.setLines = function(aFile, aLines) { - this.fLines[aFile] = aLines; - var index = this.getFileIdx(aFile); - if (index != null) - this.setNumHighlightedLines(index,aLines.length); - } - this.getLines = function(aFile) { - return this.fLines[aFile]; - } - // get current on focus line number - this.getCurrLine = function() { - var file = this.getHtmlFileName(this.getCurrFileIdx()); - var lines = this.fLines[file]; - var line = null; - if (lines) { - var line = lines[this.fCurrLineIdx]; - } - return line; - } - this.getHRef = function(aFileIdx, aLineIdx, offset) { - var file = this.getHtmlFileName(aFileIdx); - var lines = this.fLines[file]; - if (lines) { - var line = lines[aLineIdx]; - line = offset_line(line, offset); - file = file+"#"+line; - } - return file; - } - - this.getCurrentHRef = function(offset) { - return this.getHRef(this.fCurrFileIdx, this.fCurrLineIdx, offset); - } - this.setInitLocation = function(aFile, aLine) { - var fileIdx = this.getFileIdx(aFile); - var lineIdx = null; - if (fileIdx != null && aLine) { - var lines = this.getLines(aFile); - for (var i = 0; i < lines.length; ++i) { - if (lines[i] == aLine) { - lineIdx = i; - break; - } - } - } - if (fileIdx == null || lineIdx == null) - this.setCurrent(-1,-1); - else - this.setCurrent(fileIdx,lineIdx); - } -} - -// Static methods in RTW_TraceInfo - -RTW_TraceInfo.getFileLinks = function(docObj) { - var links; - if (docObj && docObj.getElementsByName) - links = docObj.getElementsByName("rtwIdGenFileLinks"); - return links ? links : new Array(); -} - -RTW_TraceInfo.toSrcFileName = function(aHtmlFileName) { - aHtmlFileName = aHtmlFileName.replace(/_c.html$/,".c"); - aHtmlFileName = aHtmlFileName.replace(/_h.html$/,".h"); - aHtmlFileName = aHtmlFileName.replace(/_cpp.html$/,".cpp"); - aHtmlFileName = aHtmlFileName.replace(/_hpp.html$/,".hpp"); - aHtmlFileName = aHtmlFileName.replace(/_cc.html$/,".hpp"); - return aHtmlFileName; -} - -RTW_TraceInfo.instance = null; - -// Class RTW_TraceArgs -------------------------------------------------------- -// file.c:10,20,30&file.h:10,20,30[&color=value] or -// sid=model:1[&color=value] -RTW_TraceArgs = function(aHash) { - this.fColor = null; - this.fFontSize = null; - this.fInitFile = null; - this.fInitLine = null; - this.fSID = null; - this.fFiles = new Array(); - this.fLines = new Array(); - this.fMessage = null; - this.fBlock = null; - this.fNumBlocks = 0; - this.fUseExternalBrowser = true; - this.fInStudio = false; - this.fModel2CodeSrc = null; - this.fInCodeTrace = false; - this.fTraceData = null; - this.fFileIdx = []; // filename to fileId - this.fRows = []; // highlighted rows indexed by fileId - this.fIDs = []; // highlighted IDs indexed by fileId - - this.hasSid = function() { - return !(this.fSID == null); - } - this.parseCommand = function(aHash) { - var args = new Array(); - args = aHash.split('&'); - for (var i = 0; i < args.length; ++i) { - var arg = args[i]; - sep = arg.indexOf('='); - if (sep != -1) { - var cmd = arg.substring(0,sep); - var opt = arg.substring(sep+1); - switch (cmd.toLowerCase()) { - case "color": - this.fColor = opt; - break; - case "fontsize": - this.fFontSize = opt; - break; - case "initfile": - this.fInitFile = RTW_TraceArgs.toHtmlFileName(opt); - break; - case "initline": - this.fInitLine = opt; - break; - case "msg": - this.fMessage = opt; - break; - case "block": - this.fBlock = unescape(opt); - break; - case "numblocks": - this.fNumBlocks = parseInt(opt); - break; - case "sid": - this.fSID = opt; - // convert sid to code location - break; - case "model2code_src": - // model2code_src from model or webview - this.fModel2CodeSrc = opt; - break; - case "useexternalbrowser": - this.fUseExternalBrowser = (opt=="true"); - break; - case "instudio": - this.fInStudio = (opt=="true"); - break; - case "incodetrace": - this.fInCodeTrace = (opt=="true"); - break; - case "tracedata": - this.fTraceData = decodeURI(opt); - break; - } - } - } - } - this.parseUrlHash = function(aHash) { - var rows, sep, assignSep; - if (aHash) { - args = aHash.split('&'); - for (var i = 0; i < args.length; ++i) { - var arg = args[i]; - sep = arg.indexOf(':'); - assignSep = arg.indexOf('='); - if (sep !== -1 && assignSep === -1) { - var fileLines = arg.split(':'); - var htmlFileName = RTW_TraceArgs.toHtmlFileName(fileLines[0]); - this.fFileIdx[htmlFileName] = i; - this.fFiles.push(htmlFileName); - if (fileLines[1]) { - rows = fileLines[1].split(','); - rows = uniqueRows(rows); - this.fLines.push(rows); - this.fRows[i] = rows; - } - } - } - if (this.fInitFile == null && this.fFiles.length > 0) { - this.fInitFile = this.fFiles[0]; - this.fInitLine = (this.fLines[0] == null ? -1 : this.fLines[0][0]); - } - } - } - this.parseUrlHash2 = function(aHash) { - aHash = decodeURI(aHash); - var rows; - var ids; - if (aHash && aHash.length > 0 && aHash[0] === "[") { - var input = eval(aHash); - var i; - var j; - // set highlight files from url - for (i=0; i 0 - && top.rtwreport_document_frame.location.href !== "about:blank" && forceReload !== true) { - updateHyperlinks(); - return; - } - - // modify modelref links - update_modelref_report_link(top.rtwreport_contents_frame.document); - try { - // ignore browser security error - update_modelref_report_link(top.rtwreport_document_frame.document); - } catch(e) {}; - - // redirect the page based on the url - var initPage = null; - if (RTW_TraceArgs.instance.getNumFiles()) { - var fileLinks = RTW_TraceInfo.getFileLinks(tocDocObj); - RTW_TraceInfo.instance = new RTW_TraceInfo(fileLinks); - RTW_TraceInfo.instance.removeHighlighting() - var numFiles = RTW_TraceArgs.instance.getNumFiles(); - var tLines = 0; - for (var i = 0; i < numFiles; ++i) { - RTW_TraceInfo.instance.setLines(RTW_TraceArgs.instance.getFile(i),RTW_TraceArgs.instance.getLines(i)); - tLines += RTW_TraceArgs.instance.getLines(i).length; - } - RTW_TraceInfo.instance.setTotalLines(tLines); - if (aPanel == false) { - RTW_TraceInfo.instance.setDisablePanel(true); - } - var initFile = RTW_TraceArgs.instance.getInitFile(); - RTW_TraceInfo.instance.setInitLocation(initFile,RTW_TraceArgs.instance.getInitLine()); - if (!hasInCodeTrace()) { - initPage = RTW_TraceInfo.instance.getCurrentHRef(); - } else { - initPage = initFile; - } - } else { - // catch error that document frame is in another domain - try { - var fileDocObj = top.rtwreport_document_frame.document; - if (fileDocObj.location && (!fileDocObj.location.href || fileDocObj.location.href == "about:blank")) { - var summaryPage = tocDocObj.getElementById("rtwIdSummaryPage"); - var tracePage = tocDocObj.getElementById("rtwIdTraceability"); - if (summaryPage) { - initPage = summaryPage.href; - } else if (tracePage) { - initPage = tracePage; - } - } - } catch(e) {}; - } - if (RTW_TraceArgs.instance && RTW_TraceArgs.instance.fMessage) { - // display diagnostic message - var linkId = "rtwIdMsgFileLink"; - var msgFile = tocDocObj.getElementById(linkId); - if (msgFile && msgFile.style) { - msgFile.style.display = "block"; - // Highlight the background of msg link - tocHiliteById(linkId); - } - initPage = "rtwmsg.html"; - } - if (initPage) { - var is_same_page = false; - try { - var fileDocObj = top.rtwreport_document_frame.document; - is_same_page = isSamePage(fileDocObj.location.href, initPage); - } catch(e) {}; - if (document.getElementById("rtwreport_document_frame")) { - document.getElementById("rtwreport_document_frame").setAttribute("src", initPage); - } else { - top.rtwreport_document_frame.location.href = initPage; - } - - if (is_same_page) { - // Goto the same page won't trigger onload function. - // Call it manuelly to highligh new code location. - rtwFileOnLoad(top.rtwreport_document_frame.document); - } - } -} - -// Compare if href1(i.e. file:///path/file1.html#222) and href2(i.e.file2.html) are same pages. -// isSamePage return true if file1 == file2. -function isSamePage(href1, href2) { - var page1 = href1.substring(href1.lastIndexOf('/')+1,href1.lastIndexOf('.html')); - var page2 = href2.substring(href2.lastIndexOf('/')+1,href2.lastIndexOf('.html')); - return (page1 == page2); -} - -// Callback for main document loading -function rtwMainOnLoad() { - rtwMainOnLoadFcn(document,null,true, false); - var newUrl; - // modify history state to avoid reload from pressing back - if (RTW_TraceArgs.instance && !RTW_TraceArgs.instance.getUseExternalBrowser() && - typeof window.history.replaceState === "function") { - if (window.location.search.length > 0) { - if (window.location.search.indexOf("loaded=true") === -1) { - newUrl = document.location.pathname + window.location.search + '&loaded=true'; - } else { - newUrl = document.location.pathname + window.location.search; - } - } else { - newUrl = document.location.pathname + window.location.search + '?loaded=true'; - } - window.history.replaceState("","",newUrl); - } -} - -// Helper function for traceability report -function rtwMainReload(location) { - // remove highlight filename and lines before reloading the page - if (RTW_TraceInfo.instance) - RTW_TraceInfo.instance.removeHighlighting(); - rtwMainOnLoadFcn(document,location,true,true); -} - -function rtwMainReloadNoPanel(location) { - rtwMainOnLoadFcn(document,location,false,true); -} - -// Callback for hyperlink "Remove Highlighting" -function rtwRemoveHighlighting() { - if (RTW_TraceInfo.instance) - RTW_TraceInfo.instance.removeHighlighting(); - if (rtwSrcFrame()) { - rtwSrcFrame().focus(); - } - if (hasInCodeTrace()) { - removeInCodeTraceHighlight(); - } -} - -// Display diagnostic message in document frame -function rtwDisplayMessage() { - var docObj = top.rtwreport_document_frame.document; - var msg = docObj.getElementById(RTW_TraceArgs.instance.fMessage); - if (!msg) { - msg = docObj.getElementById("rtwMsg_notTraceable"); - } - if (msg && msg.style) { - msg.style.display = "block"; // make message visible - var msgstr = msg.innerHTML; - // replace '%s' in message with block name - if (top.RTW_TraceArgs.instance) { - var sid = top.RTW_TraceArgs.instance.getBlock(); - if (sid) { - var block = sid; - if (top.RTW_rtwnameSIDMap && top.RTW_rtwnameSIDMap.instance && top.RTW_rtwnameSIDMap.instance.getRtwname(sid)) { - block = top.RTW_rtwnameSIDMap.instance.getRtwname(sid).rtwname; - block = block.replace("<", "<").replace(">", ">"); - } else { - block = sid; - } - if (block) { - msgstr = msgstr.replace("%s", block); - } - } - } - msg.innerHTML = msgstr; - } -} - -function updateHyperlinks() { - docObj = top.rtwreport_document_frame; - if (docObj && docObj.document) { - if (RTW_TraceArgs.instance === null || !RTW_TraceArgs.instance.getUseExternalBrowser()) { - var plain_link = docObj.document.getElementById("linkToText_plain"); - if (plain_link && plain_link.href && plain_link.href.indexOf("matlab:coder.internal.editUrlTextFile") === -1 ) { - plain_link.href = "matlab:coder.internal.editUrlTextFile('" + str2StrVar(plain_link.href) + "')"; - } - var alink = docObj.document.getElementById("linkToCS"); - var linkCmd = "matlab:coder.internal.viewCodeConfigsetFromReport"; - if (alink && alink.href && alink.href.indexOf(linkCmd) === -1) { - alink.href = linkCmd+ "('" + str2StrVar(alink.href) + "');"; - if(alink.style) { - alink.style.display = ""; - hidden_link = docObj.document.getElementById("linkToCS_disabled"); - if (hidden_link) { - hidden_link.style.display = "none"; - } - } - } - } else { - var alink = docObj.document.getElementById("linkToCS"); - if (alink && alink.style) { - alink.style.display = "none"; - hidden_link = docObj.document.getElementById("linkToCS_disabled"); - if (hidden_link) - hidden_link.style.display = ""; - } - if (typeof docObj.document.getElementsByClassName === "function") - alinks = docObj.document.getElementsByClassName("callMATLAB"); - else if (typeof docObj.document.getElementsByName === "function") - alinks = docObj.document.getElementsByName("callMATLAB"); - else - alinks = []; - for (i = 0; i < alinks.length; i++) { - alinks[i].href = "javascript:alert('This hyperlink is available only in MATLAB browser.');"; - alinks[i].style.color = "gray"; - } - alink = docObj.document.getElementById("CodeGenAdvCheck"); - if (alink && alink.href && alink.href.indexOf("externalweb=true")===-1) { - alink.href = alink.href + "?externalweb=true"; - } - - if (typeof docObj.document.getElementsByName === "function") - var objs = docObj.document.getElementsByName("MATLAB_link"); - else - objs = []; - for (var objIndex = 0; objIndex < objs.length; ++objIndex) { - objs[objIndex].style.display = "none"; - } - } - } - updateCode2ModelLinks(docObj.document); - // modify modelref links - update_modelref_report_link(top.rtwreport_contents_frame.document); - try { - // ignore browser security error - update_modelref_report_link(top.rtwreport_document_frame.document); - } catch(e) {}; -} - -function update_modelref_report_link(docObj) { - if (docObj.getElementsByName) { - var arg = ""; - if (RTW_TraceArgs.instance && !RTW_TraceArgs.instance.getUseExternalBrowser()) { - arg = "?useExternalBrowser=false"; - } - if (RTW_TraceArgs && RTW_TraceArgs.instance && RTW_TraceArgs.instance.getModel2CodeSrc() != null) { - if (arg.length > 0) - arg = arg + "&model2code_src=" + RTW_TraceArgs.instance.getModel2CodeSrc(); - else - arg = "?model2code_src=" + RTW_TraceArgs.instance.getModel2CodeSrc(); - } - if (arg.length > 0) { - links = docObj.getElementsByName('external_link'); - for (var link_idx = 0; link_idx < links.length; ++link_idx) { - links[link_idx].href = links[link_idx].href + arg; - } - } - } -} - -function rtwResizeFrame(f) { - if (f) { - f.style.height = f.contentWindow.document.body.scrollHeight + "px"; - } -} - -function rtwPageOnLoad(id) { - // highlight toc entry - tocHiliteById(id); - // restore elements state - if (top && top.restoreState) { - if (top.rtwreport_contents_frame && top.rtwreport_contents_frame.document) - top.restoreState(top.rtwreport_contents_frame.document); - if (top.rtwreport_document_frame && top.rtwreport_document_frame.document) { - top.restoreState(top.rtwreport_document_frame.document); - rtwResizeFrame(top.rtwreport_document_frame.document.getElementById("rtwIdContentsIframe")); - } - } - updateHyperlinks(); -} - -// highlight code after changeSys -function rtwChangeSysCallback(sid) { - if (sid == "" || typeof RTW_Sid2UrlHash == "undefined" || !RTW_Sid2UrlHash.instance) - return false; - urlHash = RTW_Sid2UrlHash.instance.getUrlHash(sid); - if (urlHash != undefined) { - if (RTW_TraceArgs && RTW_TraceArgs.instance && - !RTW_TraceArgs.instance.getUseExternalBrowser()) - urlHash = (urlHash == "")? "?useExternalBrowser=false" : - urlHash+"&useExternalBrowser=false"; - rtwMainReload(urlHash, true); - return true; - } else { - // remove highlighting from traceinfo - rtwRemoveHighlighting(); - return false; - } -} - -function emlFileOnload(docObj) { - var loc = docObj.location; - if (loc.hash) { - var line = loc.hash.substring(1); - hiliteEmlLine(docObj, line); - } -} - -function hiliteEmlLine(docObj, line) { - var bgColor; - if (top.HiliteCodeStatus) - bgColor = "#66CCFF"; - else - bgColor = "#E8D152"; - // unhighlight - if (typeof docObj.HiliteLine != "undefined") { - trObj = docObj.getElementById("LN_"+docObj.HiliteLine); - if (trObj != null) { - trObj.style.backgroundColor = ""; - } - } - // hilighlight - trObj = docObj.getElementById("LN_"+line); - if (trObj != null) { - trObj.style.backgroundColor = bgColor; - docObj.HiliteLine = line; - } -} - -function emlLineOnClick(docObj,sid,line) { - if (top) { - top.HiliteCodeStatus = top.rtwChangeSysCallback(sid); - } - hiliteEmlLine(docObj, line); -} - -function updateCode2ModelLinks(docObj) { - var webviewFrame = top.document.getElementById('rtw_webviewMidFrame'); - var link2model = false; - var isTestHarness = false; - if (top.testHarnessInfo && top.testHarnessInfo.IsTestHarness === "1") { - isTestHarness = true; - } - if (webviewFrame || isTestHarness) { - if (webviewFrame && RTW_TraceArgs.instance && - (RTW_TraceArgs.instance.getModel2CodeSrc() !== "model" || - RTW_TraceArgs.instance.getUseExternalBrowser()) - ) { - hiliteCmd = "javascript:top.rtwHilite("; - } else { - hiliteCmd = "matlab:coder.internal.code2model("; - link2model = true; - } - var objs = docObj.getElementsByName('code2model'); - var o = null; - var str = ''; - var sid = ''; - var pattern = "'code2model',"; - for (var objIndex = 0; objIndex < objs.length; ++objIndex) { - o = objs[objIndex]; - str = o.href.substring(o.href.indexOf('(')+1); - if (str.indexOf(pattern) > -1) { - str = str.substring(str.indexOf(pattern) + pattern.length); - } - o.href = hiliteCmd + str; - if (link2model && isTestHarness) { - sid = str.substring(0, str.indexOf(")")); - o.href = hiliteCmd + sid + ",'" + - top.testHarnessInfo.HarnessName+ "','" + - top.testHarnessInfo.HarnessOwner+ "','" + - top.testHarnessInfo.OwnerFileName + "');"; - } - } - } -} - -function rtwHilite(aBlock,aParentSID) { - if (aBlock.indexOf('-') !== -1) { - // remove sid range: model:sid:2-10 => model:sid - var s; - s = aBlock.split(':'); - if (s.length > 0) { - s = s[s.length-1]; - if (s.indexOf('-') != -1) { - aBlock = aBlock.substring(0, aBlock.lastIndexOf(':')); - } - } - } - if (typeof aParentSID === "undefined") { - if (top.RTW_SidParentMap && top.RTW_SidParentMap.instance) - aParentSID = top.RTW_SidParentMap.instance.getParentSid(aBlock); - else - aParentSID = aBlock; - } - top.HiliteCodeStatus = true; - - // webview 2 defines an interface api, call slwebview. - if (top.slwebview) { - // webview 2.x - top.codeToWebView(aBlock, aParentSID); - - } else { - // webview 1.x - if (hiliteBlockForRTWReport(aBlock,aParentSID) === false) { - if (hiliteBlockForRTWReport(aBlock, aBlock) === false) { - rtwHilite(aParentSID); - } - } - } -} - -function str2StrVar(str) { - return str.replace(/'/g,"''"); -} -window.onload=rtwMainOnLoad; - -// handle incode traceability highlighting -function inCodeTraceOnload() { - var tocDocObj = top.rtwreport_contents_frame.document; - if (!top.RTW_TraceArgs.instance) { - var summaryPage = tocDocObj.getElementById("rtwIdSummaryPage"); - top.rtwreport_document_frame.location.href = summaryPage.href; - return; - } - - var files = top.RTW_TraceArgs.instance.getFile(); - if (files.length === 0) { - if (top.RTW_TraceArgs.instance) { - var block = top.RTW_TraceArgs.instance.getBlock(); - block = block.replace("<", "<").replace(">", ">"); - } - top.rtwreport_document_frame.document.write("
No traceability information for block " + block + ".
"); - return; - }; - - var fileLinks = RTW_TraceInfo.getFileLinks(tocDocObj); - RTW_TraceInfo.instance = new RTW_TraceInfo(fileLinks); - - // update filelist with num of highlighted lines - var tocDoc = top.rtwreport_contents_frame.document; - var tLines = 0; - for (var i=0; i 1) { - var spanNodes = parent.getElementsByTagName('span'); - var len = spanNodes.length; - if (len > 0) { - if (aNumLines > 0) { - /* display number of matches */ - spanNodes.item(len-1).innerHTML = " ("+aNumLines+")"; - } else { - /* clear number of matches */ - spanNodes.item(len-1).innerHTML = ""; - } - } - } -} - -function setupInStudio() { - if (top.whole) { - var tmp = top.whole.rows.split(","); - tmp[0] = "35px"; - top.whole.rows = tmp.join(); - } - if (top.main) { - var tmp = top.main.cols.split(","); - tmp[0] = "0"; - top.main.cols = tmp.join(); - } - // add file list to source file - if (top.Html2SrcLink && top.Html2SrcLink.instance && top.fileSelector) { - var myDoc = top.fileSelector.document; - var fileSelector = myDoc.createElement("select"); - fileSelector.id = "fileSelector"; - fileSelector.onchange = top.fileSelectorOnChange; - var filename; - var filelink; - fileSelector.innerHTML += ""; - for (var i=0; i < top.fileList.length; i++) { - filename = top.fileList[i]; - filelink = top.Html2SrcLink.instance.getLink2Src(filename); - fileSelector.innerHTML += ""; - } - var bodyNode = myDoc.body; - bodyNode.insertBefore(fileSelector, bodyNode.firstElementChild); - var textNode = myDoc.createElement("span"); - textNode.innerHTML = "Goto: "; - bodyNode.insertBefore(textNode, fileSelector); - var myCss = myDoc.createElement("link"); - myCss.type = "text/css"; - myCss.rel = "stylesheet"; - myCss.href = "rtwreport.css"; - myDoc.getElementsByTagName("head")[0].appendChild(myCss); - } -} - -function toggleNavSideBar(val) { - if (top.main) { - var tmp = top.main.cols.split(","); - - if (val === "on") { - tmp[tmp.length-1] = "15px"; - } else { - tmp[tmp.length-1] = "0"; - } - top.main.cols = tmp.join(); - if (top.rtwreport_nav_frame) - top.rtwreport_nav_frame.location.href = "nav.html"; - } -}; - -function toggleNavToolBar(val) -{ - var midFrame = rtwMidFrame(); - if (midFrame) { - var tmp1 = midFrame.rows.split(","); - var frameIdx = getNavToolbarFrameIdx(); - if (val === "on") { - tmp1[frameIdx] = "40px"; - } else { - tmp1[frameIdx] = "0"; - } - midFrame.rows = tmp1.join(); - if (top.rtwreport_navToolbar_frame) { - top.rtwreport_navToolbar_frame.location.href = "navToolbar.html"; - } - } -}; - -var GlobalConfig = { - navHiliteColor: "#0000ff", - fileLinkHiliteColor: "#ffff99", - navToolbarBgcolor: "#aaffff", - offset: 10, - hiliteToken: false -}; -var NavSideBarState = { - calLineHeight: 0, - overLink: false, - linkTarget: null, - lastLinkTarget: null, - linkTargetIdx: 0 -} -function drawNavSideBar() { - var rectHeight = 1; - if (!top || !top.rtwreport_document_frame || !top.rtwreport_nav_frame) return; - - if (!top.RTW_TraceArgs.instance) return; - var fileIdx = top.RTW_TraceArgs.instance.getFileIdx(); - if (fileIdx === undefined) return; - var rows = top.RTW_TraceArgs.instance.getRows(fileIdx); - if (rows.length === 0) return; // no highlighted line - - var codeTbl = top.rtwreport_document_frame.document.getElementById("codeTbl"); - if (!codeTbl) return; // no code table - - var nRows = codeTbl.rows.length + 1; - var canvas = top.rtwreport_nav_frame.document.getElementById("canvas"); - canvas.width = top.rtwreport_nav_frame.innerWidth; - canvas.height = top.rtwreport_nav_frame.innerHeight-2; - NavSideBarState.calLineHeight = canvas.height/nRows; - if (canvas.getContext) { - var ctx = canvas.getContext("2d"); - ctx.clearRect(0, 0, canvas.width, canvas.height); - // fill background - ctx.fillStyle = GlobalConfig.navToolbarBgcolor; - ctx.fillRect(0, 0, canvas.width, canvas.height); - ctx.fillStyle = GlobalConfig.navHiliteColor; - for (var i=0;i" + anchorObj.text + "
  • "+ - size + "
  • "; - } - propObj.appendChild(ulObj); - - return propObj; -} -function getInspectLink(file, pathname, anchorObj) { - var model = top.reportModel; - var tokenId = anchorObj.id; - var navObj = document.createElement("div"); - navObj.id = "token_usage_nav"; - ulObj = document.createElement("ul"); - ulObj.id = "token_nav_links"; - ulObj.className="popup_attrib_list"; - var defObj = top.CodeDefine.instance.def[anchorObj.text]; - var line = anchorObj.id.substring(0,anchorObj.id.indexOf("c")); - // link to model - if (top.TraceInfoFlag && top.TraceInfoFlag.instance && - top.TraceInfoFlag.instance.traceFlag[RTW_TraceInfo.toSrcFileName(file)+":"+anchorObj.id]) { - return null; - } - // link to def/decl - if (defObj) { - var filename = defObj.file.split(/\//); - filename = filename[filename.length-1]; - ulObj.innerHTML += "
  • " + anchorObj.text + " defined at " + RTW_TraceInfo.toSrcFileName(filename) + " line " + defObj.line + "
  • "; - } - navObj.appendChild(ulObj); - return navObj; -} - -var LastHiliteTokenId = null; -function rmHiliteClickedToken() { - if (LastHiliteTokenId) { - var o = top.rtwreport_document_frame.document.getElementById(LastHiliteTokenId); - if (o) { - o.className = o.className.replace("hiliteToken", ""); - } - } -} -function hiliteClickedToken(elem) { - rmHiliteClickedToken(); - LastHiliteTokenId = elem.id; - elem.className += " hiliteToken"; -} - -var initLine = null; -function scrollToInitLine() { - if (initLine) { - var lineElem = top.rtwreport_document_frame.document.getElementById(initLine); - if (lineElem) { - lineElem.scrollIntoView(); - } - } -} - -function scrollToLineBasedOnHash(hashValue) { - // move to the current highlight line if the hash is not empty - if (hashValue === "") { - if (top.RTW_TraceInfo.instance && top.RTW_TraceInfo.instance.getCurrLine() !== null) { - top.rtwreport_document_frame.document.location.href=top.RTW_TraceInfo.instance.getCurrentHRef(); - top.initLine = top.rtwreport_document_frame.document.location.hash.substr(1); - } - } else { - // scroll and hilite line - hashValue = hashValue.substr(1); - if (isNaN(hashValue)) { - // #fcn_name - var pattern = "+newPage"; - if (hashValue.indexOf(pattern) != -1) { - hashValue = hashValue.replace(pattern, ''); - var lineElem = top.rtwreport_document_frame.document.getElementById(hashValue); - initLine = hashValue; // save initLine in case the dom is updated later by anootation - if (lineElem) { - lineElem.scrollIntoView(); - addTagToCurrentLine(); - } - - } else { - var token = null; - pattern = ["var_", "fcn_", "type_"]; - for (var i =0; i < pattern.length; i++) { - if (hashValue.indexOf(pattern[i]) === 0) { - token = hashValue.substr(pattern[i].length); - break; - } - } - if (token !== null && top.CodeDefine && top.CodeDefine.instance) { - var addr = top.CodeDefine.instance.def[token]; - if (addr) { - hilite_line(addr.line); - } - } else { // token id like #line"c"#col - if (hashValue.indexOf("c") !== -1) { - hilite_line(hashValue.substr(0, hashValue.indexOf("c")), hashValue); - } - } - } - } else { // #line - hilite_line(hashValue); - } - } - return false; - // hilite line number and scroll with an offset - function hilite_line(line, tokenId) { - if (isNaN(line)) return; - if (!tokenId) { - tokenId = line; - } - var elem = top.rtwreport_document_frame.document.getElementById(tokenId); - hiliteClickedToken(elem); - initLine = offset_line(line); - scrollToInitLine(); - } -} - -function tokenLinkOnClick(event) { - var alink = event.currentTarget; - if (alink.pathname === top.rtwreport_document_frame.location.pathname) { - event.preventDefault(); - scrollToLineBasedOnHash(alink.hash); - } - return false; -} -function inspectToken(file, pathname, event) { - var height = "70px"; - // show inspect data - if (top.rtwreport_inspect_frame) { - var windowObj = getInspectWindow(); - var propObj = getInspectData(file, event.currentTarget); - var navObj = getInspectLink(file, pathname, event.currentTarget); - if (navObj === null) { - closeInspectWindow(); - return false; - } - if (propObj === null) { - height = "50px"; - } else { - windowObj.appendChild(propObj); - } - windowObj.appendChild(navObj); - var data = top.rtwreport_inspect_frame.document.getElementById("popup_window"); - if (data) { - data.parentNode.replaceChild(windowObj.cloneNode(true), data); - } - } - var offsetHeight = 0; - var docHeight = 0; - if (typeof(top.rtwInspectFrame().document.body.offsetHeight) === "number") { - offsetHeight = top.rtwInspectFrame().document.body.offsetHeight; - } - if (typeof(top.rtwInspectFrame().document.height) === "number") { - docHeight = top.rtwInspectFrame().document.height; - } - if (offsetHeight > 0) { - height = ""+offsetHeight+"px"; - } else if (docHeight > 0) { - height = ""+docHeight+"px"; - } - setInspectWindow(height); - return false; -} -function setInspectWindow(height) { - // show inspect code frame - var midFrame = rtwMidFrame(); - if (midFrame) { - var tmp = midFrame.rows.split(","); - tmp[getInspectFrameIdx()] = height; - midFrame.rows = tmp.join(); - } -} -function closeInspectWindow() { - setInspectWindow(0); - return false; -} - -// set the trace number in the navigation toolbar -function setTraceNumber() { - if (RTW_TraceInfo.instance) { - var aFrame = rtwNavToolbarFrame(); - if (aFrame) { - var node = aFrame.document.getElementById("rtwIdTraceNumber"); - // calculate current line index over total highlighted lines - var currNum = RTW_TraceInfo.instance.getCurrLineIdx(); - for (var idx=0;idx 0) - line = (line > GlobalConfig.offset ? line - GlobalConfig.offset : 1); - return line; -} - -function load_js(frame, file) { - var h = frame.document.getElementsByTagName("head")[0]; - var o = h.getElementsByTagName('script'); - for (var i=0;iBlock-to-Code Highlighting Message - - - -

    Block-to-Code Highlighting Message

    - - \ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/rtwreport.css b/01_Matlab/BLDC_controller_ert_rtw/html/rtwreport.css deleted file mode 100644 index c9ff02b..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/rtwreport.css +++ /dev/null @@ -1,257 +0,0 @@ -/* Copyright 2011-2016 The MathWorks, Inc. */ -body,p,table {font-family: calibri, verdana, sans-serif;} -button,.buton {font-family: calibri, verdana, sans-serif;} -button,.button {font-size: small;} -.small_font {font-size: small;} -h1 { font-weight: normal; color: #000066; } -td { vertical-align: top } -th { background-color: #eeeeee; text-align: left; } -a:link { color: #0033cc; } -a:visited { color: #666666; } -input { font-family: sans-serif, verdana, calibri; } -table { - background-color: #ffffff; - width: 100%; -} - -table.toc, table.button, table.panel { - border-style: none; -} - -/* LineNumber */ -.LN { - font-style: italic; - color: #888888; -} - -/* Comment */ -.CT { - font-style: italic; - color: #117755; -} - -/* PreProcessor */ -PP { - /* font-weight: bold; */ - color: #992211; -} - -/* Keyword */ -.KW { - /* font-weight: bold; */ - color: #0000FF; -} - -/* Datatype */ -.DT { - /* font-weight: bold; */ - color: #112266 -} - -.highlighted { - background-color: yellow; -} - -.highlightedCurrent { - background-color: #819FF7; -} - -input.search { - background-color: #ffffff; -} - -input.failedSearch { - background-color: #F78181; -} - -/* ensure that code2model links are comment green */ -a.code2model:link { - color: #117755; - font-style: italic; -} -a.code2model:visited{ - color: #117755; - font-style: italic; -} - -.toc td, .button td, .panel td { - border-style: none; - padding: 4px; -} - -h1 { font-weight: normal; color: #000066; } -td { vertical-align: top } -th { background-color: #eeeeee; text-align: left; } -a:link { color: #0033cc; } -a:visited { color: #666666; } - -/******* table *******/ -/* default table style */ -table.AltRow { - border-collapse: collapse; border: none; border-spacing: 0pt; - border-top: solid #4F81BD 1.0pt; border-bottom: solid #4F81BD 1.0pt; -} -table.AltRow th, table.AltRow td { padding: 2pt 8pt 2pt 2pt } -/* default alternating row style */ -table.AltRow tr.even td { background-color:#D3DFEE; border:none;} -table.AltRow tr.odd td { background-color:#FFFFFF; border:none;} -/* tr class="heading" */ -table.AltRow tr.heading td, table.AltRow th { - background-color:#FFFFFF; font-weight:bold; border:none; - border-bottom: solid #4F81BD 1.0pt; -} -/* table class="FirstColumn" */ -table.FirstColumn td:first-child { font-weight:bold } -/* table class="TotalRow" */ -table.TotalRow tr:last-child { font-weight:bold } -table.TotalRow tr:last-child td { border-top: solid #4F81BD 1.0pt } - -a.closeButton { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #f9f9f9), color-stop(1, #e9e9e9) ); - background:-moz-linear-gradient( center top, #f9f9f9 5%, #e9e9e9 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#f9f9f9', endColorstr='#e9e9e9'); - background-color:#f9f9f9; - -webkit-border-top-left-radius:20px; - -moz-border-radius-topleft:20px; - border-top-left-radius:20px; - -webkit-border-top-right-radius:20px; - -moz-border-radius-topright:20px; - border-top-right-radius:20px; - -webkit-border-bottom-right-radius:20px; - -moz-border-radius-bottomright:20px; - border-bottom-right-radius:20px; - -webkit-border-bottom-left-radius:20px; - -moz-border-radius-bottomleft:20px; - border-bottom-left-radius:20px; - text-indent:0; - border:2px solid #dcdcdc; - display:inline-block; - color:#454143; - font-family:Arial; - font-size:15px; - font-weight:bold; - font-style:normal; - height:20px; - line-height:20px; - width:20px; - text-decoration:none; - text-align:center; - cursor: pointer; -} -a.closeButton:hover { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #e9e9e9), color-stop(1, #f9f9f9) ); - background:-moz-linear-gradient( center top, #e9e9e9 5%, #f9f9f9 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#e9e9e9', endColorstr='#f9f9f9'); - background-color:#e9e9e9; -} -a.closeButton:active { - position:relative; - top:1px; -} - -.button { - -moz-box-shadow:inset 0px 1px 0px 0px #ffffff; - -webkit-box-shadow:inset 0px 1px 0px 0px #ffffff; - box-shadow:inset 0px 1px 0px 0px #ffffff; - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #ededed), color-stop(1, #dfdfdf) ); - background:-moz-linear-gradient( center top, #ededed 5%, #dfdfdf 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#ededed', endColorstr='#dfdfdf'); - background-color:#ededed; - -webkit-border-top-left-radius:5px; - -moz-border-radius-topleft:5px; - border-top-left-radius:5px; - -webkit-border-top-right-radius:5px; - -moz-border-radius-topright:5px; - border-top-right-radius:5px; - -webkit-border-bottom-right-radius:5px; - -moz-border-radius-bottomright:5px; - border-bottom-right-radius:5px; - -webkit-border-bottom-left-radius:5px; - -moz-border-radius-bottomleft:5px; - border-bottom-left-radius:5px; - text-indent:0px; - border:1px solid #dcdcdc; - display:inline-block; - color:black; - font-family:Arial; - font-size:12px; - font-weight:bold; - font-style:normal; - height:12px; - line-height:12px; - width:45px; - text-decoration:none; - text-align:center; - text-shadow:1px 1px 0px #ffffff; -} -.button:hover { - background:-webkit-gradient( linear, left top, left bottom, color-stop(0.05, #dfdfdf), color-stop(1, #ededed) ); - background:-moz-linear-gradient( center top, #dfdfdf 5%, #ededed 100% ); - filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dfdfdf', endColorstr='#ededed'); - background-color:#dfdfdf; -}.button:active { - position:relative; - top:1px; -}.button:disabled { - color:#777777; -} - -ul.nav_list { - list-style-type:none; - display: block; - margin: 0; - padding: 0; -} -ul.nav_list li { - list-style-type:none; - display: inline; - margin: 0 18px 0 0; - padding: 0; -} - -.nav_toolbar { - background-color: #aff; - margin-top: 0; -} - -.inspect_body { - margin: 0; - margin-bottom: 0; - display: inline; - vertical-align:middle; -} - -table.nav_table { - background-color: #aff; - border: none; - width: 100%; - display: inline; - vertical-align:middle; -} - -table#rtwIdTracePanel > tr > td { - white-space: nowrap; - table-layout:fixed; - vertical-align:middle; -} - -table.nav_table > button { - height: 20px; -} -select#fileSelector { - padding: 5px; - font-size: 16px; - line-height: 1; - border-radius: 0; - height: 34px; -} - -.treeTable table{ - table-layout: fixed; -} -.treeTable td:first-child > span{ - display: inline-block; - text-overflow: ellipsis; - overflow: hidden; - width: 100%; -} diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/rtwreport_utils.js b/01_Matlab/BLDC_controller_ert_rtw/html/rtwreport_utils.js deleted file mode 100644 index f58fb49..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/rtwreport_utils.js +++ /dev/null @@ -1,92 +0,0 @@ -// Copyright 2011-2013 The MathWorks, Inc. - - -function local_onload() { - if (typeof top.rtwreport_document_frame !== "undefined") { - var docObj = window.document; - var alink = docObj.getElementById("linkToText_plain"); - if (alink) { - alink.href = "matlab:coder.internal.editUrlTextFile('" + alink.href + "')"; - } - alink = docObj.getElementById("linkToCS"); - if (alink) { - alink.href = "matlab:coder.internal.viewCodeConfigsetFromReport('" + alink.href + "');"; - } - } -} - -var utils = (function() { - - // Load via Microsoft.XMLDOM--for older versions of IE - function loadXML_MSXMLDOM(filename, callback, async) { - if (navigator.appName == "Microsoft Internet Explorer") { - // Internet Explorer 5/6 - try { - var xmlDoc = new ActiveXObject("Microsoft.XMLDOM"); - xmlDoc.async = async; - xmlDoc.onreadystatechange = function() { - if (xmlDoc.readyState == 4) { - callback(xmlDoc); - } - } - xmlDoc.load(filename); - return true; - } catch(e) { - } - } - return false; - } - - // Load via XMLHttpRequest - function loadXML_XHR(filename, callback, async) { - if (window.XMLHttpRequest) { - try { - var xhr = new XMLHttpRequest(); - xhr.onreadystatechange = function() { - if (this.readyState == 4) { - callback(this.responseXML); - } - } - xhr.open("GET", filename, async); - xhr.send(""); - return true; - } catch(e) { - if (navigator.appName === "Netscape" && e.code === 1012) { - // file not found: ignore - return true; - } - } - } - return false; - } - - return { - trimText: function(s) { - // In IE9, String.trim not present - if (s && s.trim) { - return s.trim(); - } - else { - return s; - } - }, - getText: function(elt) { - // In IE9, use 'text' property rather than 'textContent' - return elt.textContent ? elt.textContent : elt.text; - }, - loadXML: function(filename, callback, options) { - var async = !!options && typeof(options["async"]) !== "undefined" ? options.async : true; - if (!loadXML_XHR(filename, callback, async)) { - if (!loadXML_MSXMLDOM(filename, callback, async)) { - return false; - } - } - return true; - } - }; -})(); - -function code2model(sid) { - utils.loadXML("http://localhost:31415/matlab/feval/coder.internal.code2model?arguments=[\"" + sid + "\"]", function() {}); - //window.location.href = "matlab:coder.internal.code2model('" + sid + "')"; -} diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/rtwshrink.js b/01_Matlab/BLDC_controller_ert_rtw/html/rtwshrink.js deleted file mode 100644 index ff4cdac..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/rtwshrink.js +++ /dev/null @@ -1,202 +0,0 @@ -// Copyright 2011-2012 The MathWorks, Inc. - -function RTW_STRUCT(prop, value) { - this.prop = prop; - if (typeof(value) == 'undefined') - this.value = ""; - else - this.value = value; -} - -// initialize the cache when code generation report is first loaded -function RTW_BOOK() -{ - this.length = 0; - this.rtw_pages = new Array(); - this.getPage = function(file) { - return this.rtw_pages[file]; - } - this.addPage = function(file) { - var page; - if (this.hasPage(file)) { - page = this.rtw_pages[file]; - } else { - page = new RTW_PAGE(file); - this.rtw_pages[file] = page; - } - return page; - } - this.hasPage = function(file) { - return typeof(this.rtw_pages[file]) != 'undefined'; - } - this.removePage = function(file) - { - var tmp; - if (typeof(this.rtw_pages[file]) != 'undefined') { - tmp = this.rtw_pages[file]; - delete this.rtw_pages[file]; - this.length--; - } - return tmp; - } -} - -if (!RTW_BOOK.instance) { - RTW_BOOK.instance = new RTW_BOOK(); -} - -function RTW_PAGE() -{ - this.length = 0; - this.items = new Array(); - this.pagename = ''; - if (arguments.length > 0 && typeof(arguments[1])!='undefined') { - this.pagename = arguments[1]; - } - - this.getItem = function(id) { - return this.items[id]; - } - this.getItems = function() { - return this.items; - } - this.addItem = function(id, value) { - var tmp; - if (typeof(value) != 'undefined') { - if (typeof(this.items[id]) != 'undefined') { - this.length++; - } else { - tmp = this.items[id]; - } - this.items[id] = value; - this.length++; - } - return tmp; - } - this.hasItem = function(id) { - return typeof(this.items[id]) != 'undefined'; - } - this.removeItem = function(id) { - var tmp; - if (typeof(this.items[id]) != 'undefined') { - tmp = this.items[id]; - delete this.items[id]; - this.length--; - } - return tmp; - } -} - -function rtwTableShrink(doc, obj, id, isSymbol){ - if (isSymbol) { - hide = "[-]"; - hide_text = hide; - show = "[+]"; - show_text = show; - } else { - hide = "[hide]"; - hide_text = "[hide]"; - show = "[show]"; - show_text = "[show]"; - } - hide = "" + hide + ""; - show = "" + show + ""; - if (doc.getElementsByName) { - var o = doc.getElementsByName(id); - for (var oid = 0; oid < o.length; ++oid) { - if (o[oid].style.display == "none") { - o[oid].style.display = ""; - } else { - o[oid].style.display = "none"; - } - } - if (o.length >= 0 && top && top.addToPage) - top.addToPage(doc, o[0], 'display'); - } - - // IE supports innerText while other browsers support textContent - if (obj.textContent) - var objText = obj.textContent; - else - var objText = obj.innerText; - - if (objText.toLowerCase() == show_text.toLowerCase()) - obj.innerHTML = hide; - else - obj.innerHTML = show; - - if (top && top.addToPage) - top.addToPage(doc, obj, 'innerHTML'); -} - -function rtwTableExpand(doc, controlObj, id) -{ - if (doc.getElementById) { - var obj = doc.getElementById(id); - if (obj && obj.style.display == "none") { - rtwTableShrink(doc, controlObj, id, false); - } - } -} - -function restoreState(docObj) { - var filename = docObj.location.href; - if (RTW_BOOK.instance && RTW_BOOK.instance.hasPage(filename)) { - var page = RTW_BOOK.instance.getPage(filename); - var items = page.getItems(); - var elem; - if (docObj.getElementsByName) { - for (var i in items) { - o = docObj.getElementsByName(i); - for (var oid = 0; oid < o.length; ++oid) { - elem = o[oid]; - if (items[i].prop == 'display') { - if (elem.style.display == 'none') - elem.style.display = ''; - else - elem.style.display = 'none'; - } else if (items[i].prop == 'innerHTML') { - elem.innerHTML = items[i].value; - } - } - } - } - } -} - -function addToPage(docObj, Obj, prop) { - var filename = docObj.location.href; - if (RTW_BOOK.instance) { - var page; - if (RTW_BOOK.instance.hasPage(filename)) - page = RTW_BOOK.instance.getPage(filename); - else - page = RTW_BOOK.instance.addPage(filename); - if (page.hasItem(Obj.id)) - page.removeItem(Obj.id); - else { - if (prop == "display") - my_struct = new RTW_STRUCT(prop, Obj.style.display); - else - my_struct = new RTW_STRUCT(prop, Obj.innerHTML); - page.addItem(Obj.id, my_struct); - } - } -} - -function rtwSwitchView(doc, obj1, obj2) { - if (doc.getElementsByName) { - var o = doc.getElementsByName(obj1); - for (var oid = 0; oid < o.length; ++oid) { - o[oid].style.display = "none"; - } - if (o.length >= 0 && top && top.addToPage) - top.addToPage(doc, o[0], 'display'); - var o = doc.getElementsByName(obj2); - for (var oid = 0; oid < o.length; ++oid) { - o[oid].style.display = ""; - } - if (o.length >= 0 && top && top.addToPage) - top.addToPage(doc, o[0], 'display'); - } -} diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/rtwtypes_h.html b/01_Matlab/BLDC_controller_ert_rtw/html/rtwtypes_h.html deleted file mode 100644 index bed0437..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/rtwtypes_h.html +++ /dev/null @@ -1,128 +0,0 @@ - - - -RTW Report - rtwtypes.h - - - - - - -

    -
    -

    File: rtwtypes.h

    -
    -    1   /*
    -    2    * Academic License - for use in teaching, academic research, and meeting
    -    3    * course requirements at degree granting institutions only.  Not for
    -    4    * government, commercial, or other organizational use.
    -    5    *
    -    6    * File: rtwtypes.h
    -    7    *
    -    8    * Code generated for Simulink model 'BLDC_controller'.
    -    9    *
    -   10    * Model version                  : 1.883
    -   11    * Simulink Coder version         : 8.13 (R2017b) 24-Jul-2017
    -   12    * C/C++ source code generated on : Tue Jun 11 21:14:57 2019
    -   13    *
    -   14    * Target selection: ert.tlc
    -   15    * Embedded hardware selection: ARM Compatible->ARM Cortex
    -   16    * Emulation hardware selection:
    -   17    *    Differs from embedded hardware (MATLAB Host)
    -   18    * Code generation objectives:
    -   19    *    1. Execution efficiency
    -   20    *    2. RAM efficiency
    -   21    * Validation result: Not run
    -   22    */
    -   23   
    -   24   #ifndef RTWTYPES_H
    -   25   #define RTWTYPES_H
    -   26   
    -   27   /* Logical type definitions */
    -   28   #if (!defined(__cplusplus))
    -   29   #  ifndef false
    -   30   #   define false                       (0U)
    -   31   #  endif
    -   32   
    -   33   #  ifndef true
    -   34   #   define true                        (1U)
    -   35   #  endif
    -   36   #endif
    -   37   
    -   38   /*=======================================================================*
    -   39    * Target hardware information
    -   40    *   Device type: MATLAB Host
    -   41    *   Number of bits:     char:   8    short:   16    int:  32
    -   42    *                       long:  32    long long:  64
    -   43    *                       native word size:  64
    -   44    *   Byte ordering: LittleEndian
    -   45    *   Signed integer division rounds to: Zero
    -   46    *   Shift right on a signed integer as arithmetic shift: on
    -   47    *=======================================================================*/
    -   48   
    -   49   /*=======================================================================*
    -   50    * Fixed width word size data types:                                     *
    -   51    *   int8_T, int16_T, int32_T     - signed 8, 16, or 32 bit integers     *
    -   52    *   uint8_T, uint16_T, uint32_T  - unsigned 8, 16, or 32 bit integers   *
    -   53    *   real32_T, real64_T           - 32 and 64 bit floating point numbers *
    -   54    *=======================================================================*/
    -   55   typedef signed char int8_T;
    -   56   typedef unsigned char uint8_T;
    -   57   typedef short int16_T;
    -   58   typedef unsigned short uint16_T;
    -   59   typedef int int32_T;
    -   60   typedef unsigned int uint32_T;
    -   61   typedef long long int64_T;
    -   62   typedef unsigned long long uint64_T;
    -   63   typedef float real32_T;
    -   64   typedef double real64_T;
    -   65   
    -   66   /*===========================================================================*
    -   67    * Generic type definitions: boolean_T, char_T, byte_T, int_T, uint_T,       *
    -   68    *                           real_T, time_T, ulong_T, ulonglong_T.           *
    -   69    *===========================================================================*/
    -   70   typedef double real_T;
    -   71   typedef double time_T;
    -   72   typedef unsigned char boolean_T;
    -   73   typedef int int_T;
    -   74   typedef unsigned int uint_T;
    -   75   typedef unsigned long ulong_T;
    -   76   typedef unsigned long long ulonglong_T;
    -   77   typedef char char_T;
    -   78   typedef unsigned char uchar_T;
    -   79   typedef char_T byte_T;
    -   80   
    -   81   /*=======================================================================*
    -   82    * Min and Max:                                                          *
    -   83    *   int8_T, int16_T, int32_T     - signed 8, 16, or 32 bit integers     *
    -   84    *   uint8_T, uint16_T, uint32_T  - unsigned 8, 16, or 32 bit integers   *
    -   85    *=======================================================================*/
    -   86   #define MAX_int8_T                     ((int8_T)(127))
    -   87   #define MIN_int8_T                     ((int8_T)(-128))
    -   88   #define MAX_uint8_T                    ((uint8_T)(255U))
    -   89   #define MAX_int16_T                    ((int16_T)(32767))
    -   90   #define MIN_int16_T                    ((int16_T)(-32768))
    -   91   #define MAX_uint16_T                   ((uint16_T)(65535U))
    -   92   #define MAX_int32_T                    ((int32_T)(2147483647))
    -   93   #define MIN_int32_T                    ((int32_T)(-2147483647-1))
    -   94   #define MAX_uint32_T                   ((uint32_T)(0xFFFFFFFFU))
    -   95   #define MAX_int64_T                    ((int64_T)(9223372036854775807LL))
    -   96   #define MIN_int64_T                    ((int64_T)(-9223372036854775807LL-1LL))
    -   97   #define MAX_uint64_T                   ((uint64_T)(0xFFFFFFFFFFFFFFFFULL))
    -   98   
    -   99   /* Block D-Work pointer type */
    -  100   typedef void * pointer_T;
    -  101   
    -  102   #endif                                 /* RTWTYPES_H */
    -  103   
    -  104   /*
    -  105    * File trailer for generated code.
    -  106    *
    -  107    * [EOF]
    -  108    */
    -  109   
    -
    -
    -

    - - \ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/search.js b/01_Matlab/BLDC_controller_ert_rtw/html/search.js deleted file mode 100644 index 816380f..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/search.js +++ /dev/null @@ -1,559 +0,0 @@ -// Copyright 2007-2012 The MathWorks, Inc. - -function createHighlightSpanStart(num) -{ - return ""; -} - -var str2pos; // This is a map between a tag stripped string and the original string. -function getTagStrippedStringAndMap(aString) -{ - var tagStrippedString = new String(); - - str2pos = new Array(); - - var inTag = false; - var inScript = false; - - for (var strPos = 0; strPos < aString.length; strPos++) { - if (inTag && aString.charAt(strPos) == '>') { - inTag = false; - if (inScript && (strPos > 8) && (aString.slice(strPos, strPos - 8) == '/script>')) { - inScript = false; - } - continue; - } else if (!inTag && aString.charAt(strPos) == '<') { - inTag = true; - if (!inScript && aString.slice(strPos, strPos + 7) == ' str2posprev+1) // we have jumped some text, so there must be a tag - { - // insert end tag - newText += highlightEndTag; - - // insert intermediate body text tags - newText += bodyText.slice(str2posprev+1, str2pos[cnt]); - - // insert start tag - newText += highlightStartTag; - } - newText += bodyText.charAt(str2pos[cnt]); - str2posprev=str2pos[cnt]; - } - - // insert end - newText += highlightEndTag; - return newText; - -} - -// check to see if the sequence at position 'i' in taglessString is actually in -// the middle of an escape sequence. We assume escape sequences follow the pattern -// &;. We check for  , <, > and & -function isInEscapedSequence(i, taglessString, searchTerm) -{ - var escapeSeq = / |<|>|&/gi; - var maxEscapeSeqLength = 6; - var startPos = 0; - var endPos = 0; - - // exit if the search term has an escape sequence inside it - if (escapeSeq.test(searchTerm)) { - return false; - } - - // reset the escape sequence - escapeSeq = / |<|>|&/gi; - - // go back in the string until we find an ampersand or we hit maxEscapeSeqLength characters - tempI = i; - var bFound = false; - while (tempI >= 0 && tempI > (i-maxEscapeSeqLength)) { - if (taglessString.charAt(tempI) == "&") { - startPos = tempI; - bFound = true; - break; - } - tempI = tempI-1; - - // if we hit a ';' in any position other than the first while searching - // for an ampersand, then we cannot be inside an escape sequence - if (tempI >= 0 && taglessString.charAt(tempI) == ";") { - return false; - } - } - if (!bFound) { - return false; - } - // reset the escape sequence - escapeSeq = / |<|>|&/gi; - - var subString = taglessString.substring(startPos, startPos + maxEscapeSeqLength); - return escapeSeq.test(subString); -} - -// Adds highlighting to bodyText around searchTerm. Case sensitivity is optional. -// hitCount is used to a) count the number of search matches and b) Generate unique -// name strings for each highlighting SPAN element. -function addHighlight(bodyText, searchTerm, caseSensitive, hitCount) -{ - var highlightStartTag = ""; - var highlightEndTag = ""; - - var newText = ""; - var i = 0; - var previ = 0; - var bodyTextUC = bodyText.toUpperCase(); - - if (caseSensitive) { - var taglessString = getTagStrippedStringAndMap(bodyText); - } else { - var taglessString = getTagStrippedStringAndMap(bodyTextUC); - } - - // escape the search term in case the user input '<' or '>' etc - searchTerm = escapeSpecialChars(searchTerm); - - if (!caseSensitive) { - var searchTermUC = searchTerm.toUpperCase(); - } - - // search for subsequent matches - while (true) { - if (caseSensitive) { - i = taglessString.indexOf(searchTerm, i); - } else { - i = taglessString.indexOf(searchTermUC, i); - } - if (i < 0) break; - - // we have a match! - - // make sure that the match is not inside an escaped sequence of text - // such as   - if (isInEscapedSequence(i, taglessString, searchTerm)) { - i=i+1; - continue; - } - - // insert highlight tags that cross tag boundaries - highlightStartTag = createHighlightSpanStart(hitCount); - hitCount = hitCount+1; - newText += insertHighlighting(bodyText, previ, i, searchTerm.length, highlightStartTag, highlightEndTag); - previ = str2pos[i+searchTerm.length-1]+1; - - i = i + searchTerm.length; - } - - newText += bodyText.slice(previ, bodyText.length); - return [newText, hitCount]; -} - -function removeHighlight(bodyText) -{ - // We use regular expressions here rather than a straight text search because - // some browsers actually insert double quotes and capitalize. Also, each highlight - // name is uniquely numbered in order of discovery - var highlightStartTag = //i; - var highlightEndTag = /<\/span>/i; - - var newText = ""; - - var startPatternFirstIndex = -1; - var startPatternLastIndex = -1; - - var endPatternFirstIndex = -1; - var endPatternLastIndex = -1; - - while (highlightStartTag.test(bodyText) === true) { - startPatternFirstIndex = bodyText.search(highlightStartTag); - newText += bodyText.substring(0, startPatternFirstIndex); - startPatternLastIndex = bodyText.indexOf('>', startPatternFirstIndex+1); - - bodyText = bodyText.substr(startPatternLastIndex+1); - endPatternFirstIndex = bodyText.search(highlightEndTag); - newText += bodyText.substring(0, endPatternFirstIndex); - endPatternLastIndex = endPatternFirstIndex+7; - - bodyText = bodyText.substr(endPatternLastIndex); - } - if (startPatternFirstIndex < 0) { - return bodyText; - } else { - return newText+bodyText; - } -} - -function removeHighlightInAllDocs() -{ - if (top) { - for (var i = 0; i < top.frames.length; i++) { - if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") { - var currentDoc = top.frames[i].document; - if (typeof currentDoc.body !== "undefined" && currentDoc.body !== null) - currentDoc.body.innerHTML=removeHighlight(currentDoc.body.innerHTML); - } - } - } -} - -function findInDoc(searchStringFromSubmitBox, doc, caseSensitive, hitCount) -{ - var searchBody = doc.body.innerHTML; - // if the document is empty, or the documents is invalid, return - if (!doc.body || typeof(searchBody) === "undefined") { - return [false, hitCount]; - } - - // inject highlighting code into html - var result = addHighlight(searchBody, searchStringFromSubmitBox, caseSensitive, hitCount); - doc.body.innerHTML = result[0]; - - return [true, result[1]]; -} - -var currentlyHighlightedHit; - -function getSpansByName(name) -{ - var allSpans = []; - for (i = 0; i < top.frames.length; i++) { - if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") { - var currentDoc = top.frames[i].document; - var highlightedSpans = currentDoc.getElementsByName(name); - if (highlightedSpans && highlightedSpans.length && highlightedSpans.length > 0) { - for (j = 0; j < highlightedSpans.length; j++) { - allSpans = allSpans.concat(highlightedSpans[j]); - } - } - } - } - return allSpans; -} - -function isVisibleElement(elementID) -{ - if (elementID) - return elementID.offsetWidth > 0 || elementID.offsetHeight > 0; - else - return false; -} - -function areAllSpansVisible(spans) -{ - isVisible = true; - for (i = 0; i < highlightedSpans.length; i++) { - isVisible = isVisible && isVisibleElement(highlightedSpans[i]); - } - return isVisible; -} - -function getNextVisible() -{ - var isVisible = false; - var foundVisible = false; - while (!isVisible) { - currentlyHighlightedHit = currentlyHighlightedHit + 1; - highlightedSpans = setCurrentSearchMatchIfVisible(currentlyHighlightedHit); - if (highlightedSpans && highlightedSpans.length > 0) { - isVisible = true; - } else if (currentlyHighlightedHit < totalHits) { - continue; - } else { - // we have reached the end - isVisible = false; - currentlyHighlightedHit = 0; - highlightedSpans = null; - break; - } - } - - return highlightedSpans; -} - -function clearCurrentSearchMatch() -{ - // clear prior highlighting - spanName = "highlight" + currentlyHighlightedHit; - highlightedSpans = getSpansByName(spanName); - if (highlightedSpans && highlightedSpans.length) { - for (i = 0; i < highlightedSpans.length; i++) { - if (highlightedSpans[i]) { - highlightedSpans[i].setAttribute("class", "highlighted"); - } - } - } -} - -function setCurrentSearchMatchIfVisible(hitNum){ - currentlyHighlightedHit = hitNum; - var spanName = "highlight" + currentlyHighlightedHit; - var highlightedSpans = getSpansByName(spanName); - if (highlightedSpans && highlightedSpans.length) { - for (i = 0; i < highlightedSpans.length; i++) { - if (!isVisibleElement(highlightedSpans[i])) { - highlightedSpans = null; - break; - } - } - } - return highlightedSpans; -} - -// this takes in an option integer 'hitNum'. If not specified, it scrolls -// to the next hit -function scrollToNextHit(hitNum) -{ - var i = 0; - var found = false; - var spanName = ""; - var highlightedSpans; - var searchBox = findElement('searchTxtBox'); - - clearCurrentSearchMatch(); - - if (hitNum) { - // if a number is provided, use it - highlightedSpans = setCurrentSearchMatchIfVisible(hitNum); - } else { - // start working on next element to highlight - highlightedSpans = getNextVisible(); - } - - // we found the current - if (highlightedSpans && highlightedSpans.length > 0) { - highlightedSpans[0].scrollIntoView(); - for (i = 0; i < highlightedSpans.length; i++) { - highlightedSpans[i].setAttribute("class", "highlightedCurrent"); - } - searchBox.setAttribute("class", "search"); - - // if highlightedSpans is invalid, then we did not find any valid, visible subsequent matches - // wrap to beginning or indicate no matches - } else { - // Element not found. Scroll to first visible element - currentlyHighlightedHit = 0; - var highlightedSpans = getNextVisible(currentlyHighlightedHit); - if (highlightedSpans && highlightedSpans.length > 0) { - highlightedSpans[0].scrollIntoView(); - for (i = 0; i < highlightedSpans.length; i++) { - highlightedSpans[i].setAttribute("class", "highlightedCurrent"); - } - searchBox.setAttribute("class", "search"); - } else { - // there aren't any matches - searchBox.setAttribute("class", "failedSearch"); - } - } -} - -// find search box -function findElement(element) -{ - var i = 0; - for (i = 0; i < top.frames.length; i++) { - if (top.frames[i].name === "rtwreport_contents_frame" || top.frames[i].name === "rtwreport_document_frame") { - var elem = top.frames[i].document.getElementById(element); - if (elem) { - return elem; - } - } - } -} - -// Restore search term once form is submitted -function initSearchBox(strInitValue) -{ - var txtBox = findElement('searchTxtBox'); - if (txtBox) { - txtBox.value = strInitValue; - } -} - -// Sets focus back on to the text box -function setFocusOnTxtBox() -{ - var txtBox = findElement('searchTxtBox'); - if (txtBox) { - txtBox.focus(); - txtBox.select(); - } - return txtBox; -} - -var previousSearchString; -var totalHits; -function findInAllDocs(searchStringFromSubmitBox, caseSensitive) -{ - if (previousSearchString != searchStringFromSubmitBox) { - // If the search string has changed or a new page has been loaded, do a new search - var hitCount = 1; - var i = 0; - var success = false; - previousSearchString = searchStringFromSubmitBox; - - // start by removing traceinfo highlighting - rtwRemoveHighlighting(); - - // remove all previous search highlighting - removeHighlightInAllDocs(); - - // 1. Iterate through all frames in window and search - for (i = 0; i < top.frames.length; i++) { - var currentDoc = top.frames[i].document; - - // if we have no search term, restore - if (searchStringFromSubmitBox !== "") { - // search and highlight in all frames - var srchResult = findInDoc(searchStringFromSubmitBox, currentDoc, caseSensitive, hitCount); - hitCount = srchResult[1]; - totalHits = srchResult[1]; - } - } - - // 2. Restore search term once form is submitted and text highlighted - if (searchStringFromSubmitBox != "") { - strInitValue = searchStringFromSubmitBox; - } - initSearchBox(strInitValue); - - // 3. Scroll to the first hit encountered - scrollToNextHit(1); - - // 4. Set focus back to text box and select text - var txtBox = setFocusOnTxtBox(); - if (txtBox) { - txtBox.select(); - } - - } else { - // If the search string is the same, then scroll to the next - // hit if the hit is valid. Else wrap back. - scrollToNextHit(); - } - return false; -} - -// if the search box is empty, clear highlighting -function clearIfEmpty() -{ - txtBox = findElement('searchTxtBox'); - if (txtBox.value == "") { - txtBox.setAttribute("class", "search"); - removeHighlightInAllDocs(); - previousSearchString=""; - setFocusOnTxtBox(); - } -} - -function keyPressSwitchyard(keyPressEvent) -{ - var kc; - keyPressEvent = (keyPressEvent == null ? window.keyPressEvent : keyPressEvent); - - // typically IE does not support this - if (!keyPressEvent || (typeof keyPressEvent == "undefined")) { - return; - } - - if (keyPressEvent.keyCode) { - kc=keyPressEvent.keyCode; - } else if (keyPressEvent.which) { - kc=keyPressEvent.which; - } else { - return; - } - - // we do not care about the browser find appearing. If it does appear, then - // we are running an external browser and that is okay. - - // handle Ctrl-Key combinations - if (keyPressEvent.ctrlKey) { - switch (kc) { - case 70: // Ctrl-F - { - setFocusOnTxtBox(); - break; - } - - default: break; - } - } -} - -function installDocumentKeyPressHandler() -{ - var i = 0; - for (i = 0; i < top.frames.length; i++) { - var currentDoc = top.frames[i].document; - currentDoc.onkeydown = keyPressSwitchyard; - } - top.document.onkeydown = keyPressSwitchyard; - - // This also clears search related highlighting - removeHighlightInAllDocs(); - currentlyHighlightedHit = 0; - if (previousSearchString) initSearchBox(previousSearchString); - previousSearchString = ""; -} - -// This function is a onresize callback for the rtwreport_contents_frame -// It is used to dynamically resize the searchbox based on the size of the frame. -function setWidthDynamic(frameID, elementID, extraSpace, minSize) -{ - var frame = document.getElementById(frameID); - - // sanity check input args - if (frame && extraSpace > 0 && minSize > 0) { - var frameWidth = frame.scrollWidth; - var newSize = extraSpace + minSize + 40; // 40 is the extra whitespace - var element = findElement(elementID); - if (element) - { - if (frameWidth < newSize) { - element.style.width = minSize; - } else { - element.style.width = frameWidth - extraSpace - 40; - } - } - } -} diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/traceInfo.mat b/01_Matlab/BLDC_controller_ert_rtw/html/traceInfo.mat deleted file mode 100644 index 5417177..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/traceInfo.mat and /dev/null differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview_codegen.js b/01_Matlab/BLDC_controller_ert_rtw/html/webview_codegen.js deleted file mode 100644 index 9a93f44..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview_codegen.js +++ /dev/null @@ -1,6 +0,0 @@ -/* - Copyright 2015-2016 The MathWorks, Inc. -*/ -function webviewToCodeInit(){document.getElementById("rtw_webview").contentWindow.require(["dojo/dom-style","dojo/topic","dojo/window","dijit/registry"],function(k,m,n,p){var c=p.byId("slwebview"),g=!0,h={traceableColor:"#00cfcf",untraceableColor:"#e8d152",getColor:function(d){return d?this.traceableColor:this.untraceableColor},getStyle:function(d,c){var a=this.getColor(c);return"fill:"+a+"; fill-opacity:0.5; stroke:"+a+";"}},f,l=function(d,e,a){c.open(d).then(function(){var b;if(b=c.getElementViewer())if(f&& -k.set(f,"background",""),b=b.getLineNode(e))k.set(b,"background",a),n.scrollIntoView(b),f=b})};m.subscribe("slwebview/select",function(d,e){var a,b;c.isElement(d)&&g&&(c.unhighlightAll(),a=d.backing.sid,b=e&&e.line?e.line:-1,0<=b&&(a=d.backing.obj_viewer.code_sid+":"+b.toString()),a=top.rtwChangeSysCallback(a),c.highlight(d,h.getStyle(d,a)),0<=b&&l(d,b,h.getColor(a)))});top.codeToWebView=function(d,e){var a=c.getElement(d),b,f;a||(f=d.lastIndexOf(":"),b=d.substring(f+1),a=c.getElement(e));if(a){g= -!1;try{c.open(a.diagram,{nohash:!0}).then(function(){try{c.unhighlightAll(),c.moveToView(a),c.highlight(a,h.getStyle(a,!0)),0<=b?(l(a,b,h.getColor(!0)),c.select(a)):c.select(a.diagram)}finally{g=!0}},function(){g=!0})}catch(k){g=!0}}}})}; diff --git a/01_Matlab/BLDC_controller_ert_rtw/modelsources.txt b/01_Matlab/BLDC_controller_ert_rtw/modelsources.txt deleted file mode 100644 index a2ef11f..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/modelsources.txt +++ /dev/null @@ -1 +0,0 @@ - BLDC_controller.c diff --git a/01_Matlab/BLDC_controller_ert_rtw/rtw_proj.tmw b/01_Matlab/BLDC_controller_ert_rtw/rtw_proj.tmw deleted file mode 100644 index e2c16fc..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/rtw_proj.tmw +++ /dev/null @@ -1,4 +0,0 @@ -Simulink Coder project for BLDC_controller using . MATLAB root = C:\Program Files\MATLAB\R2017b. SimStruct date: 27-jul-2017 18:43:00 -This file is generated by Simulink Coder for use by the make utility -to determine when to rebuild objects when the name of the current Simulink Coder project changes. -The rtwinfomat located at: ..\slprj\ert\BLDC_controller\tmwinternal\binfo.mat diff --git a/01_Matlab/BLDC_controller_ert_rtw/rtwtypes.h b/01_Matlab/BLDC_controller_ert_rtw/rtwtypes.h deleted file mode 100644 index 6835bce..0000000 --- a/01_Matlab/BLDC_controller_ert_rtw/rtwtypes.h +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Academic License - for use in teaching, academic research, and meeting - * course requirements at degree granting institutions only. Not for - * government, commercial, or other organizational use. - * - * File: rtwtypes.h - * - * Code generated for Simulink model 'BLDC_controller'. - * - * Model version : 1.883 - * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Tue Jun 11 21:14:57 2019 - * - * Target selection: ert.tlc - * Embedded hardware selection: ARM Compatible->ARM Cortex - * Emulation hardware selection: - * Differs from embedded hardware (MATLAB Host) - * Code generation objectives: - * 1. Execution efficiency - * 2. RAM efficiency - * Validation result: Not run - */ - -#ifndef RTWTYPES_H -#define RTWTYPES_H - -/* Logical type definitions */ -#if (!defined(__cplusplus)) -# ifndef false -# define false (0U) -# endif - -# ifndef true -# define true (1U) -# endif -#endif - -/*=======================================================================* - * Target hardware information - * Device type: MATLAB Host - * Number of bits: char: 8 short: 16 int: 32 - * long: 32 long long: 64 - * native word size: 64 - * Byte ordering: LittleEndian - * Signed integer division rounds to: Zero - * Shift right on a signed integer as arithmetic shift: on - *=======================================================================*/ - -/*=======================================================================* - * Fixed width word size data types: * - * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers * - * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers * - * real32_T, real64_T - 32 and 64 bit floating point numbers * - *=======================================================================*/ -typedef signed char int8_T; -typedef unsigned char uint8_T; -typedef short int16_T; -typedef unsigned short uint16_T; -typedef int int32_T; -typedef unsigned int uint32_T; -typedef long long int64_T; -typedef unsigned long long uint64_T; -typedef float real32_T; -typedef double real64_T; - -/*===========================================================================* - * Generic type definitions: boolean_T, char_T, byte_T, int_T, uint_T, * - * real_T, time_T, ulong_T, ulonglong_T. * - *===========================================================================*/ -typedef double real_T; -typedef double time_T; -typedef unsigned char boolean_T; -typedef int int_T; -typedef unsigned int uint_T; -typedef unsigned long ulong_T; -typedef unsigned long long ulonglong_T; -typedef char char_T; -typedef unsigned char uchar_T; -typedef char_T byte_T; - -/*=======================================================================* - * Min and Max: * - * int8_T, int16_T, int32_T - signed 8, 16, or 32 bit integers * - * uint8_T, uint16_T, uint32_T - unsigned 8, 16, or 32 bit integers * - *=======================================================================*/ -#define MAX_int8_T ((int8_T)(127)) -#define MIN_int8_T ((int8_T)(-128)) -#define MAX_uint8_T ((uint8_T)(255U)) -#define MAX_int16_T ((int16_T)(32767)) -#define MIN_int16_T ((int16_T)(-32768)) -#define MAX_uint16_T ((uint16_T)(65535U)) -#define MAX_int32_T ((int32_T)(2147483647)) -#define MIN_int32_T ((int32_T)(-2147483647-1)) -#define MAX_uint32_T ((uint32_T)(0xFFFFFFFFU)) -#define MAX_int64_T ((int64_T)(9223372036854775807LL)) -#define MIN_int64_T ((int64_T)(-9223372036854775807LL-1LL)) -#define MAX_uint64_T ((uint64_T)(0xFFFFFFFFFFFFFFFFULL)) - -/* Block D-Work pointer type */ -typedef void * pointer_T; - -#endif /* RTWTYPES_H */ - -/* - * File trailer for generated code. - * - * [EOF] - */ diff --git a/01_Matlab/BLDC_controller_ert_rtw/rtwtypeschksum.mat b/01_Matlab/BLDC_controller_ert_rtw/rtwtypeschksum.mat deleted file mode 100644 index b0b4ace..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/rtwtypeschksum.mat and /dev/null differ