|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
static void argInit_1x11_real_T(double result[11])
{
int idx1;
for (idx1 = 0; idx1 < 11; idx1++)
{
result[idx1] = argInit_real_T();
}
}
static void argInit_5x1_real_T(double result[5])
{
int idx0;
for (idx0 = 0; idx0 < 5; idx0++)
{
result[idx0] = argInit_real_T();
}
}
static int argInit_int32_T(void)
{
return 0;
}
static double argInit_real_T(void)
{
return 0.0;
}
static void main_Base(void)
{
double dv[11] = {0,0,0,0,0.3972,0.4491,0.5389,1,1,1,1};//节点参数初始化
double ret;
argInit_1x11_real_T(dv);
//double Base(int i, const double u[11], double t)
ret = Base(argInit_int32_T(), dv, argInit_real_T());
}
static void main_ChordNorm(void)
{
double dv[5] = {0.1885,0.6220,0.6786,0.7766,1.2799}; //型值点
double u[11] = { 0,0,0,0,0.3972,0.4491,0.5389,1,1,1,1 }; //节点参数u
argInit_5x1_real_T(dv);
//void ChordNorm(const double oriData[5], double u[11])
ChordNorm(dv, u);
}
static void main_STrajPlan(void)
{
emxArray_real_T *tc;
emxArray_real_T *p;
emxArray_real_T *vc;
emxArray_real_T *ac;
emxArray_real_T *jc;
double q0_tmp;
emxInitArray_real_T(&tc, 2);
emxInitArray_real_T(&p, 2);
emxInitArray_real_T(&vc, 2);
emxInitArray_real_T(&ac, 2);
emxInitArray_real_T(&jc, 2);
q0_tmp = argInit_real_T();
//void STrajPlan(double q0, double q1, double v0, double v1, double b_vmax, double amax, double jmax, double dt, emxArray_real_T *tc, emxArray_real_T *p, emxArray_real_T *vc, emxArray_real_T *ac, emxArray_real_T *jc)
STrajPlan(q0_tmp, q0_tmp, q0_tmp, q0_tmp, q0_tmp, q0_tmp, q0_tmp, q0_tmp, tc, p, vc, ac, jc);
emxDestroyArray_real_T(jc);
emxDestroyArray_real_T(ac);
emxDestroyArray_real_T(vc);
emxDestroyArray_real_T(p);
emxDestroyArray_real_T(tc);
}
static int argInit_int32_T(void)
{
return 0;
}
. . . . . .
static double argInit_real_T(void)
{
return 0.0;
}
这两个函数无条件返回 0 值,无法改变。你倒是需要看看,要不要直接把调用这两个函数的返回结果作为输入参数,如果不改,那铁定就是输入两个 0 值。
|
|