unsigned int sf_Quadrotor_process_check_sum_call( int nlhs, mxArray * plhs[],
  int nrhs, const mxArray * prhs[] )
{

#ifdef MATLAB_MEX_FILE

  char commandName[20];
  if (nrhs<1 || !mxIsChar(prhs[0]) )
    return 0;

  /* Possible call to get the checksum */
  mxGetString(prhs[0], commandName,sizeof(commandName)/sizeof(char));
  commandName[(sizeof(commandName)/sizeof(char)-1)] = '\0';
  if (strcmp(commandName,"sf_get_check_sum"))
    return 0;
  plhs[0] = mxCreateDoubleMatrix( 1,4,mxREAL);
  if (nrhs>1 && mxIsChar(prhs[1])) {
    mxGetString(prhs[1], commandName,sizeof(commandName)/sizeof(char));
    commandName[(sizeof(commandName)/sizeof(char)-1)] = '\0';
    if (!strcmp(commandName,"machine")) {
      ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(3163696211U);
      ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(4153267841U);
      ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(1442149580U);
      ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(3471402606U);
    } else if (!strcmp(commandName,"exportedFcn")) {
      ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(0U);
      ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(0U);
      ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(0U);
      ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(0U);
    } else if (!strcmp(commandName,"makefile")) {
      ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(1122722054U);
      ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(2870310370U);
      ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(4245621283U);
      ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(1788426798U);
    } else if (nrhs==3 && !strcmp(commandName,"chart")) {
      unsigned int chartFileNumber;
      chartFileNumber = (unsigned int)mxGetScalar(prhs[2]);
      switch (chartFileNumber) {
       case 1:
        {
          extern void sf_c1_Quadrotor_get_check_sum(mxArray *plhs[]);
          sf_c1_Quadrotor_get_check_sum(plhs);
          break;
        }

       case 2:
        {
          extern void sf_c2_Quadrotor_get_check_sum(mxArray *plhs[]);
          sf_c2_Quadrotor_get_check_sum(plhs);
          break;
        }

       case 3:
        {
          extern void sf_c3_Quadrotor_get_check_sum(mxArray *plhs[]);
          sf_c3_Quadrotor_get_check_sum(plhs);
          break;
        }

       default:
        ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(0.0);
        ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(0.0);
        ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(0.0);
        ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(0.0);
      }
    } else if (!strcmp(commandName,"target")) {
      ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(3564696471U);
      ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(678668628U);
      ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(1090454852U);
      ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(3896867807U);
    } else {
      return 0;
    }
  } else {
    ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(2412742883U);
    ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(1930217932U);
    ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(2702624804U);
    ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(142716140U);
  }

  return 1;

#else

  return 0;

#endif

}
unsigned int sf_Quadrotor_process_check_sum_call( int nlhs, mxArray * plhs[],
  int nrhs, const mxArray * prhs[] )
{

#ifdef MATLAB_MEX_FILE

  char commandName[20];
  if (nrhs<1 || !mxIsChar(prhs[0]) )
    return 0;

  /* Possible call to get the checksum */
  mxGetString(prhs[0], commandName,sizeof(commandName)/sizeof(char));
  commandName[(sizeof(commandName)/sizeof(char)-1)] = '\0';
  if (strcmp(commandName,"sf_get_check_sum"))
    return 0;
  plhs[0] = mxCreateDoubleMatrix( 1,4,mxREAL);
  if (nrhs>1 && mxIsChar(prhs[1])) {
    mxGetString(prhs[1], commandName,sizeof(commandName)/sizeof(char));
    commandName[(sizeof(commandName)/sizeof(char)-1)] = '\0';
    if (!strcmp(commandName,"machine")) {
      ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(2186461945U);
      ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(1978436601U);
      ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(1040814558U);
      ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(2280672898U);
    } else if (!strcmp(commandName,"exportedFcn")) {
      ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(0U);
      ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(0U);
      ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(0U);
      ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(0U);
    } else if (!strcmp(commandName,"makefile")) {
      ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(2181060594U);
      ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(959401712U);
      ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(1181572603U);
      ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(2351801568U);
    } else if (nrhs==3 && !strcmp(commandName,"chart")) {
      unsigned int chartFileNumber;
      chartFileNumber = (unsigned int)mxGetScalar(prhs[2]);
      switch (chartFileNumber) {
       case 1:
        {
          extern void sf_c1_Quadrotor_get_check_sum(mxArray *plhs[]);
          sf_c1_Quadrotor_get_check_sum(plhs);
          break;
        }

       case 2:
        {
          extern void sf_c2_Quadrotor_get_check_sum(mxArray *plhs[]);
          sf_c2_Quadrotor_get_check_sum(plhs);
          break;
        }

       case 3:
        {
          extern void sf_c3_Quadrotor_get_check_sum(mxArray *plhs[]);
          sf_c3_Quadrotor_get_check_sum(plhs);
          break;
        }

       case 4:
        {
          extern void sf_c4_Quadrotor_get_check_sum(mxArray *plhs[]);
          sf_c4_Quadrotor_get_check_sum(plhs);
          break;
        }

       case 5:
        {
          extern void sf_c5_Quadrotor_get_check_sum(mxArray *plhs[]);
          sf_c5_Quadrotor_get_check_sum(plhs);
          break;
        }

       case 6:
        {
          extern void sf_c6_Quadrotor_get_check_sum(mxArray *plhs[]);
          sf_c6_Quadrotor_get_check_sum(plhs);
          break;
        }

       default:
        ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(0.0);
        ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(0.0);
        ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(0.0);
        ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(0.0);
      }
    } else if (!strcmp(commandName,"target")) {
      ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(3031367619U);
      ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(4001028638U);
      ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(3978939492U);
      ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(838979348U);
    } else {
      return 0;
    }
  } else {
    ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(409319946U);
    ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(2294612955U);
    ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(3532796829U);
    ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(3628839200U);
  }

  return 1;

#else

  return 0;

#endif

}