|
|
|
@@ -41,326 +41,326 @@ const static double MAHA_THRESH_31 = 3.8414588206941227;
|
|
|
|
|
* *
|
|
|
|
|
* This file is part of 'ekf' *
|
|
|
|
|
******************************************************************************/
|
|
|
|
|
void err_fun(double *nom_x, double *delta_x, double *out_3911786354042064155) {
|
|
|
|
|
out_3911786354042064155[0] = delta_x[0] + nom_x[0];
|
|
|
|
|
out_3911786354042064155[1] = delta_x[1] + nom_x[1];
|
|
|
|
|
out_3911786354042064155[2] = delta_x[2] + nom_x[2];
|
|
|
|
|
out_3911786354042064155[3] = delta_x[3] + nom_x[3];
|
|
|
|
|
out_3911786354042064155[4] = delta_x[4] + nom_x[4];
|
|
|
|
|
out_3911786354042064155[5] = delta_x[5] + nom_x[5];
|
|
|
|
|
out_3911786354042064155[6] = delta_x[6] + nom_x[6];
|
|
|
|
|
out_3911786354042064155[7] = delta_x[7] + nom_x[7];
|
|
|
|
|
out_3911786354042064155[8] = delta_x[8] + nom_x[8];
|
|
|
|
|
void err_fun(double *nom_x, double *delta_x, double *out_3392632126809328250) {
|
|
|
|
|
out_3392632126809328250[0] = delta_x[0] + nom_x[0];
|
|
|
|
|
out_3392632126809328250[1] = delta_x[1] + nom_x[1];
|
|
|
|
|
out_3392632126809328250[2] = delta_x[2] + nom_x[2];
|
|
|
|
|
out_3392632126809328250[3] = delta_x[3] + nom_x[3];
|
|
|
|
|
out_3392632126809328250[4] = delta_x[4] + nom_x[4];
|
|
|
|
|
out_3392632126809328250[5] = delta_x[5] + nom_x[5];
|
|
|
|
|
out_3392632126809328250[6] = delta_x[6] + nom_x[6];
|
|
|
|
|
out_3392632126809328250[7] = delta_x[7] + nom_x[7];
|
|
|
|
|
out_3392632126809328250[8] = delta_x[8] + nom_x[8];
|
|
|
|
|
}
|
|
|
|
|
void inv_err_fun(double *nom_x, double *true_x, double *out_5083852074412776924) {
|
|
|
|
|
out_5083852074412776924[0] = -nom_x[0] + true_x[0];
|
|
|
|
|
out_5083852074412776924[1] = -nom_x[1] + true_x[1];
|
|
|
|
|
out_5083852074412776924[2] = -nom_x[2] + true_x[2];
|
|
|
|
|
out_5083852074412776924[3] = -nom_x[3] + true_x[3];
|
|
|
|
|
out_5083852074412776924[4] = -nom_x[4] + true_x[4];
|
|
|
|
|
out_5083852074412776924[5] = -nom_x[5] + true_x[5];
|
|
|
|
|
out_5083852074412776924[6] = -nom_x[6] + true_x[6];
|
|
|
|
|
out_5083852074412776924[7] = -nom_x[7] + true_x[7];
|
|
|
|
|
out_5083852074412776924[8] = -nom_x[8] + true_x[8];
|
|
|
|
|
void inv_err_fun(double *nom_x, double *true_x, double *out_2412120784647444554) {
|
|
|
|
|
out_2412120784647444554[0] = -nom_x[0] + true_x[0];
|
|
|
|
|
out_2412120784647444554[1] = -nom_x[1] + true_x[1];
|
|
|
|
|
out_2412120784647444554[2] = -nom_x[2] + true_x[2];
|
|
|
|
|
out_2412120784647444554[3] = -nom_x[3] + true_x[3];
|
|
|
|
|
out_2412120784647444554[4] = -nom_x[4] + true_x[4];
|
|
|
|
|
out_2412120784647444554[5] = -nom_x[5] + true_x[5];
|
|
|
|
|
out_2412120784647444554[6] = -nom_x[6] + true_x[6];
|
|
|
|
|
out_2412120784647444554[7] = -nom_x[7] + true_x[7];
|
|
|
|
|
out_2412120784647444554[8] = -nom_x[8] + true_x[8];
|
|
|
|
|
}
|
|
|
|
|
void H_mod_fun(double *state, double *out_8631509380512325248) {
|
|
|
|
|
out_8631509380512325248[0] = 1.0;
|
|
|
|
|
out_8631509380512325248[1] = 0.0;
|
|
|
|
|
out_8631509380512325248[2] = 0.0;
|
|
|
|
|
out_8631509380512325248[3] = 0.0;
|
|
|
|
|
out_8631509380512325248[4] = 0.0;
|
|
|
|
|
out_8631509380512325248[5] = 0.0;
|
|
|
|
|
out_8631509380512325248[6] = 0.0;
|
|
|
|
|
out_8631509380512325248[7] = 0.0;
|
|
|
|
|
out_8631509380512325248[8] = 0.0;
|
|
|
|
|
out_8631509380512325248[9] = 0.0;
|
|
|
|
|
out_8631509380512325248[10] = 1.0;
|
|
|
|
|
out_8631509380512325248[11] = 0.0;
|
|
|
|
|
out_8631509380512325248[12] = 0.0;
|
|
|
|
|
out_8631509380512325248[13] = 0.0;
|
|
|
|
|
out_8631509380512325248[14] = 0.0;
|
|
|
|
|
out_8631509380512325248[15] = 0.0;
|
|
|
|
|
out_8631509380512325248[16] = 0.0;
|
|
|
|
|
out_8631509380512325248[17] = 0.0;
|
|
|
|
|
out_8631509380512325248[18] = 0.0;
|
|
|
|
|
out_8631509380512325248[19] = 0.0;
|
|
|
|
|
out_8631509380512325248[20] = 1.0;
|
|
|
|
|
out_8631509380512325248[21] = 0.0;
|
|
|
|
|
out_8631509380512325248[22] = 0.0;
|
|
|
|
|
out_8631509380512325248[23] = 0.0;
|
|
|
|
|
out_8631509380512325248[24] = 0.0;
|
|
|
|
|
out_8631509380512325248[25] = 0.0;
|
|
|
|
|
out_8631509380512325248[26] = 0.0;
|
|
|
|
|
out_8631509380512325248[27] = 0.0;
|
|
|
|
|
out_8631509380512325248[28] = 0.0;
|
|
|
|
|
out_8631509380512325248[29] = 0.0;
|
|
|
|
|
out_8631509380512325248[30] = 1.0;
|
|
|
|
|
out_8631509380512325248[31] = 0.0;
|
|
|
|
|
out_8631509380512325248[32] = 0.0;
|
|
|
|
|
out_8631509380512325248[33] = 0.0;
|
|
|
|
|
out_8631509380512325248[34] = 0.0;
|
|
|
|
|
out_8631509380512325248[35] = 0.0;
|
|
|
|
|
out_8631509380512325248[36] = 0.0;
|
|
|
|
|
out_8631509380512325248[37] = 0.0;
|
|
|
|
|
out_8631509380512325248[38] = 0.0;
|
|
|
|
|
out_8631509380512325248[39] = 0.0;
|
|
|
|
|
out_8631509380512325248[40] = 1.0;
|
|
|
|
|
out_8631509380512325248[41] = 0.0;
|
|
|
|
|
out_8631509380512325248[42] = 0.0;
|
|
|
|
|
out_8631509380512325248[43] = 0.0;
|
|
|
|
|
out_8631509380512325248[44] = 0.0;
|
|
|
|
|
out_8631509380512325248[45] = 0.0;
|
|
|
|
|
out_8631509380512325248[46] = 0.0;
|
|
|
|
|
out_8631509380512325248[47] = 0.0;
|
|
|
|
|
out_8631509380512325248[48] = 0.0;
|
|
|
|
|
out_8631509380512325248[49] = 0.0;
|
|
|
|
|
out_8631509380512325248[50] = 1.0;
|
|
|
|
|
out_8631509380512325248[51] = 0.0;
|
|
|
|
|
out_8631509380512325248[52] = 0.0;
|
|
|
|
|
out_8631509380512325248[53] = 0.0;
|
|
|
|
|
out_8631509380512325248[54] = 0.0;
|
|
|
|
|
out_8631509380512325248[55] = 0.0;
|
|
|
|
|
out_8631509380512325248[56] = 0.0;
|
|
|
|
|
out_8631509380512325248[57] = 0.0;
|
|
|
|
|
out_8631509380512325248[58] = 0.0;
|
|
|
|
|
out_8631509380512325248[59] = 0.0;
|
|
|
|
|
out_8631509380512325248[60] = 1.0;
|
|
|
|
|
out_8631509380512325248[61] = 0.0;
|
|
|
|
|
out_8631509380512325248[62] = 0.0;
|
|
|
|
|
out_8631509380512325248[63] = 0.0;
|
|
|
|
|
out_8631509380512325248[64] = 0.0;
|
|
|
|
|
out_8631509380512325248[65] = 0.0;
|
|
|
|
|
out_8631509380512325248[66] = 0.0;
|
|
|
|
|
out_8631509380512325248[67] = 0.0;
|
|
|
|
|
out_8631509380512325248[68] = 0.0;
|
|
|
|
|
out_8631509380512325248[69] = 0.0;
|
|
|
|
|
out_8631509380512325248[70] = 1.0;
|
|
|
|
|
out_8631509380512325248[71] = 0.0;
|
|
|
|
|
out_8631509380512325248[72] = 0.0;
|
|
|
|
|
out_8631509380512325248[73] = 0.0;
|
|
|
|
|
out_8631509380512325248[74] = 0.0;
|
|
|
|
|
out_8631509380512325248[75] = 0.0;
|
|
|
|
|
out_8631509380512325248[76] = 0.0;
|
|
|
|
|
out_8631509380512325248[77] = 0.0;
|
|
|
|
|
out_8631509380512325248[78] = 0.0;
|
|
|
|
|
out_8631509380512325248[79] = 0.0;
|
|
|
|
|
out_8631509380512325248[80] = 1.0;
|
|
|
|
|
void H_mod_fun(double *state, double *out_6052892280251248477) {
|
|
|
|
|
out_6052892280251248477[0] = 1.0;
|
|
|
|
|
out_6052892280251248477[1] = 0.0;
|
|
|
|
|
out_6052892280251248477[2] = 0.0;
|
|
|
|
|
out_6052892280251248477[3] = 0.0;
|
|
|
|
|
out_6052892280251248477[4] = 0.0;
|
|
|
|
|
out_6052892280251248477[5] = 0.0;
|
|
|
|
|
out_6052892280251248477[6] = 0.0;
|
|
|
|
|
out_6052892280251248477[7] = 0.0;
|
|
|
|
|
out_6052892280251248477[8] = 0.0;
|
|
|
|
|
out_6052892280251248477[9] = 0.0;
|
|
|
|
|
out_6052892280251248477[10] = 1.0;
|
|
|
|
|
out_6052892280251248477[11] = 0.0;
|
|
|
|
|
out_6052892280251248477[12] = 0.0;
|
|
|
|
|
out_6052892280251248477[13] = 0.0;
|
|
|
|
|
out_6052892280251248477[14] = 0.0;
|
|
|
|
|
out_6052892280251248477[15] = 0.0;
|
|
|
|
|
out_6052892280251248477[16] = 0.0;
|
|
|
|
|
out_6052892280251248477[17] = 0.0;
|
|
|
|
|
out_6052892280251248477[18] = 0.0;
|
|
|
|
|
out_6052892280251248477[19] = 0.0;
|
|
|
|
|
out_6052892280251248477[20] = 1.0;
|
|
|
|
|
out_6052892280251248477[21] = 0.0;
|
|
|
|
|
out_6052892280251248477[22] = 0.0;
|
|
|
|
|
out_6052892280251248477[23] = 0.0;
|
|
|
|
|
out_6052892280251248477[24] = 0.0;
|
|
|
|
|
out_6052892280251248477[25] = 0.0;
|
|
|
|
|
out_6052892280251248477[26] = 0.0;
|
|
|
|
|
out_6052892280251248477[27] = 0.0;
|
|
|
|
|
out_6052892280251248477[28] = 0.0;
|
|
|
|
|
out_6052892280251248477[29] = 0.0;
|
|
|
|
|
out_6052892280251248477[30] = 1.0;
|
|
|
|
|
out_6052892280251248477[31] = 0.0;
|
|
|
|
|
out_6052892280251248477[32] = 0.0;
|
|
|
|
|
out_6052892280251248477[33] = 0.0;
|
|
|
|
|
out_6052892280251248477[34] = 0.0;
|
|
|
|
|
out_6052892280251248477[35] = 0.0;
|
|
|
|
|
out_6052892280251248477[36] = 0.0;
|
|
|
|
|
out_6052892280251248477[37] = 0.0;
|
|
|
|
|
out_6052892280251248477[38] = 0.0;
|
|
|
|
|
out_6052892280251248477[39] = 0.0;
|
|
|
|
|
out_6052892280251248477[40] = 1.0;
|
|
|
|
|
out_6052892280251248477[41] = 0.0;
|
|
|
|
|
out_6052892280251248477[42] = 0.0;
|
|
|
|
|
out_6052892280251248477[43] = 0.0;
|
|
|
|
|
out_6052892280251248477[44] = 0.0;
|
|
|
|
|
out_6052892280251248477[45] = 0.0;
|
|
|
|
|
out_6052892280251248477[46] = 0.0;
|
|
|
|
|
out_6052892280251248477[47] = 0.0;
|
|
|
|
|
out_6052892280251248477[48] = 0.0;
|
|
|
|
|
out_6052892280251248477[49] = 0.0;
|
|
|
|
|
out_6052892280251248477[50] = 1.0;
|
|
|
|
|
out_6052892280251248477[51] = 0.0;
|
|
|
|
|
out_6052892280251248477[52] = 0.0;
|
|
|
|
|
out_6052892280251248477[53] = 0.0;
|
|
|
|
|
out_6052892280251248477[54] = 0.0;
|
|
|
|
|
out_6052892280251248477[55] = 0.0;
|
|
|
|
|
out_6052892280251248477[56] = 0.0;
|
|
|
|
|
out_6052892280251248477[57] = 0.0;
|
|
|
|
|
out_6052892280251248477[58] = 0.0;
|
|
|
|
|
out_6052892280251248477[59] = 0.0;
|
|
|
|
|
out_6052892280251248477[60] = 1.0;
|
|
|
|
|
out_6052892280251248477[61] = 0.0;
|
|
|
|
|
out_6052892280251248477[62] = 0.0;
|
|
|
|
|
out_6052892280251248477[63] = 0.0;
|
|
|
|
|
out_6052892280251248477[64] = 0.0;
|
|
|
|
|
out_6052892280251248477[65] = 0.0;
|
|
|
|
|
out_6052892280251248477[66] = 0.0;
|
|
|
|
|
out_6052892280251248477[67] = 0.0;
|
|
|
|
|
out_6052892280251248477[68] = 0.0;
|
|
|
|
|
out_6052892280251248477[69] = 0.0;
|
|
|
|
|
out_6052892280251248477[70] = 1.0;
|
|
|
|
|
out_6052892280251248477[71] = 0.0;
|
|
|
|
|
out_6052892280251248477[72] = 0.0;
|
|
|
|
|
out_6052892280251248477[73] = 0.0;
|
|
|
|
|
out_6052892280251248477[74] = 0.0;
|
|
|
|
|
out_6052892280251248477[75] = 0.0;
|
|
|
|
|
out_6052892280251248477[76] = 0.0;
|
|
|
|
|
out_6052892280251248477[77] = 0.0;
|
|
|
|
|
out_6052892280251248477[78] = 0.0;
|
|
|
|
|
out_6052892280251248477[79] = 0.0;
|
|
|
|
|
out_6052892280251248477[80] = 1.0;
|
|
|
|
|
}
|
|
|
|
|
void f_fun(double *state, double dt, double *out_8422851872644073845) {
|
|
|
|
|
out_8422851872644073845[0] = state[0];
|
|
|
|
|
out_8422851872644073845[1] = state[1];
|
|
|
|
|
out_8422851872644073845[2] = state[2];
|
|
|
|
|
out_8422851872644073845[3] = state[3];
|
|
|
|
|
out_8422851872644073845[4] = state[4];
|
|
|
|
|
out_8422851872644073845[5] = dt*(stiffness_front*(-state[2] - state[3] + state[7])*state[0]/state[1] + (-stiffness_front*state[0] - stiffness_rear*state[0])*state[5]/state[4] + ((-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/state[4] - state[4])*state[6] - 9.8100000000000005*state[8]) + state[5];
|
|
|
|
|
out_8422851872644073845[6] = dt*(center_to_front*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/(rotational_inertia*state[1]) + (-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])*state[5]/(rotational_inertia*state[4]) + (-pow(center_to_front, 2)*stiffness_front*state[0] - pow(center_to_rear, 2)*stiffness_rear*state[0])*state[6]/(rotational_inertia*state[4])) + state[6];
|
|
|
|
|
out_8422851872644073845[7] = state[7];
|
|
|
|
|
out_8422851872644073845[8] = state[8];
|
|
|
|
|
void f_fun(double *state, double dt, double *out_9073398793292557711) {
|
|
|
|
|
out_9073398793292557711[0] = state[0];
|
|
|
|
|
out_9073398793292557711[1] = state[1];
|
|
|
|
|
out_9073398793292557711[2] = state[2];
|
|
|
|
|
out_9073398793292557711[3] = state[3];
|
|
|
|
|
out_9073398793292557711[4] = state[4];
|
|
|
|
|
out_9073398793292557711[5] = dt*(stiffness_front*(-state[2] - state[3] + state[7])*state[0]/state[1] + (-stiffness_front*state[0] - stiffness_rear*state[0])*state[5]/state[4] + ((-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/state[4] - state[4])*state[6] - 9.8100000000000005*state[8]) + state[5];
|
|
|
|
|
out_9073398793292557711[6] = dt*(center_to_front*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/(rotational_inertia*state[1]) + (-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])*state[5]/(rotational_inertia*state[4]) + (-pow(center_to_front, 2)*stiffness_front*state[0] - pow(center_to_rear, 2)*stiffness_rear*state[0])*state[6]/(rotational_inertia*state[4])) + state[6];
|
|
|
|
|
out_9073398793292557711[7] = state[7];
|
|
|
|
|
out_9073398793292557711[8] = state[8];
|
|
|
|
|
}
|
|
|
|
|
void F_fun(double *state, double dt, double *out_3191485522034494131) {
|
|
|
|
|
out_3191485522034494131[0] = 1;
|
|
|
|
|
out_3191485522034494131[1] = 0;
|
|
|
|
|
out_3191485522034494131[2] = 0;
|
|
|
|
|
out_3191485522034494131[3] = 0;
|
|
|
|
|
out_3191485522034494131[4] = 0;
|
|
|
|
|
out_3191485522034494131[5] = 0;
|
|
|
|
|
out_3191485522034494131[6] = 0;
|
|
|
|
|
out_3191485522034494131[7] = 0;
|
|
|
|
|
out_3191485522034494131[8] = 0;
|
|
|
|
|
out_3191485522034494131[9] = 0;
|
|
|
|
|
out_3191485522034494131[10] = 1;
|
|
|
|
|
out_3191485522034494131[11] = 0;
|
|
|
|
|
out_3191485522034494131[12] = 0;
|
|
|
|
|
out_3191485522034494131[13] = 0;
|
|
|
|
|
out_3191485522034494131[14] = 0;
|
|
|
|
|
out_3191485522034494131[15] = 0;
|
|
|
|
|
out_3191485522034494131[16] = 0;
|
|
|
|
|
out_3191485522034494131[17] = 0;
|
|
|
|
|
out_3191485522034494131[18] = 0;
|
|
|
|
|
out_3191485522034494131[19] = 0;
|
|
|
|
|
out_3191485522034494131[20] = 1;
|
|
|
|
|
out_3191485522034494131[21] = 0;
|
|
|
|
|
out_3191485522034494131[22] = 0;
|
|
|
|
|
out_3191485522034494131[23] = 0;
|
|
|
|
|
out_3191485522034494131[24] = 0;
|
|
|
|
|
out_3191485522034494131[25] = 0;
|
|
|
|
|
out_3191485522034494131[26] = 0;
|
|
|
|
|
out_3191485522034494131[27] = 0;
|
|
|
|
|
out_3191485522034494131[28] = 0;
|
|
|
|
|
out_3191485522034494131[29] = 0;
|
|
|
|
|
out_3191485522034494131[30] = 1;
|
|
|
|
|
out_3191485522034494131[31] = 0;
|
|
|
|
|
out_3191485522034494131[32] = 0;
|
|
|
|
|
out_3191485522034494131[33] = 0;
|
|
|
|
|
out_3191485522034494131[34] = 0;
|
|
|
|
|
out_3191485522034494131[35] = 0;
|
|
|
|
|
out_3191485522034494131[36] = 0;
|
|
|
|
|
out_3191485522034494131[37] = 0;
|
|
|
|
|
out_3191485522034494131[38] = 0;
|
|
|
|
|
out_3191485522034494131[39] = 0;
|
|
|
|
|
out_3191485522034494131[40] = 1;
|
|
|
|
|
out_3191485522034494131[41] = 0;
|
|
|
|
|
out_3191485522034494131[42] = 0;
|
|
|
|
|
out_3191485522034494131[43] = 0;
|
|
|
|
|
out_3191485522034494131[44] = 0;
|
|
|
|
|
out_3191485522034494131[45] = dt*(stiffness_front*(-state[2] - state[3] + state[7])/state[1] + (-stiffness_front - stiffness_rear)*state[5]/state[4] + (-center_to_front*stiffness_front + center_to_rear*stiffness_rear)*state[6]/state[4]);
|
|
|
|
|
out_3191485522034494131[46] = -dt*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/pow(state[1], 2);
|
|
|
|
|
out_3191485522034494131[47] = -dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_3191485522034494131[48] = -dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_3191485522034494131[49] = dt*(-(-stiffness_front*state[0] - stiffness_rear*state[0])*state[5]/pow(state[4], 2) + (-(-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/pow(state[4], 2) - 1)*state[6]);
|
|
|
|
|
out_3191485522034494131[50] = dt*(-stiffness_front*state[0] - stiffness_rear*state[0])/state[4] + 1;
|
|
|
|
|
out_3191485522034494131[51] = dt*((-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/state[4] - state[4]);
|
|
|
|
|
out_3191485522034494131[52] = dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_3191485522034494131[53] = -9.8100000000000005*dt;
|
|
|
|
|
out_3191485522034494131[54] = dt*(center_to_front*stiffness_front*(-state[2] - state[3] + state[7])/(rotational_inertia*state[1]) + (-center_to_front*stiffness_front + center_to_rear*stiffness_rear)*state[5]/(rotational_inertia*state[4]) + (-pow(center_to_front, 2)*stiffness_front - pow(center_to_rear, 2)*stiffness_rear)*state[6]/(rotational_inertia*state[4]));
|
|
|
|
|
out_3191485522034494131[55] = -center_to_front*dt*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/(rotational_inertia*pow(state[1], 2));
|
|
|
|
|
out_3191485522034494131[56] = -center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_3191485522034494131[57] = -center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_3191485522034494131[58] = dt*(-(-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])*state[5]/(rotational_inertia*pow(state[4], 2)) - (-pow(center_to_front, 2)*stiffness_front*state[0] - pow(center_to_rear, 2)*stiffness_rear*state[0])*state[6]/(rotational_inertia*pow(state[4], 2)));
|
|
|
|
|
out_3191485522034494131[59] = dt*(-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/(rotational_inertia*state[4]);
|
|
|
|
|
out_3191485522034494131[60] = dt*(-pow(center_to_front, 2)*stiffness_front*state[0] - pow(center_to_rear, 2)*stiffness_rear*state[0])/(rotational_inertia*state[4]) + 1;
|
|
|
|
|
out_3191485522034494131[61] = center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_3191485522034494131[62] = 0;
|
|
|
|
|
out_3191485522034494131[63] = 0;
|
|
|
|
|
out_3191485522034494131[64] = 0;
|
|
|
|
|
out_3191485522034494131[65] = 0;
|
|
|
|
|
out_3191485522034494131[66] = 0;
|
|
|
|
|
out_3191485522034494131[67] = 0;
|
|
|
|
|
out_3191485522034494131[68] = 0;
|
|
|
|
|
out_3191485522034494131[69] = 0;
|
|
|
|
|
out_3191485522034494131[70] = 1;
|
|
|
|
|
out_3191485522034494131[71] = 0;
|
|
|
|
|
out_3191485522034494131[72] = 0;
|
|
|
|
|
out_3191485522034494131[73] = 0;
|
|
|
|
|
out_3191485522034494131[74] = 0;
|
|
|
|
|
out_3191485522034494131[75] = 0;
|
|
|
|
|
out_3191485522034494131[76] = 0;
|
|
|
|
|
out_3191485522034494131[77] = 0;
|
|
|
|
|
out_3191485522034494131[78] = 0;
|
|
|
|
|
out_3191485522034494131[79] = 0;
|
|
|
|
|
out_3191485522034494131[80] = 1;
|
|
|
|
|
void F_fun(double *state, double dt, double *out_6147280223985413399) {
|
|
|
|
|
out_6147280223985413399[0] = 1;
|
|
|
|
|
out_6147280223985413399[1] = 0;
|
|
|
|
|
out_6147280223985413399[2] = 0;
|
|
|
|
|
out_6147280223985413399[3] = 0;
|
|
|
|
|
out_6147280223985413399[4] = 0;
|
|
|
|
|
out_6147280223985413399[5] = 0;
|
|
|
|
|
out_6147280223985413399[6] = 0;
|
|
|
|
|
out_6147280223985413399[7] = 0;
|
|
|
|
|
out_6147280223985413399[8] = 0;
|
|
|
|
|
out_6147280223985413399[9] = 0;
|
|
|
|
|
out_6147280223985413399[10] = 1;
|
|
|
|
|
out_6147280223985413399[11] = 0;
|
|
|
|
|
out_6147280223985413399[12] = 0;
|
|
|
|
|
out_6147280223985413399[13] = 0;
|
|
|
|
|
out_6147280223985413399[14] = 0;
|
|
|
|
|
out_6147280223985413399[15] = 0;
|
|
|
|
|
out_6147280223985413399[16] = 0;
|
|
|
|
|
out_6147280223985413399[17] = 0;
|
|
|
|
|
out_6147280223985413399[18] = 0;
|
|
|
|
|
out_6147280223985413399[19] = 0;
|
|
|
|
|
out_6147280223985413399[20] = 1;
|
|
|
|
|
out_6147280223985413399[21] = 0;
|
|
|
|
|
out_6147280223985413399[22] = 0;
|
|
|
|
|
out_6147280223985413399[23] = 0;
|
|
|
|
|
out_6147280223985413399[24] = 0;
|
|
|
|
|
out_6147280223985413399[25] = 0;
|
|
|
|
|
out_6147280223985413399[26] = 0;
|
|
|
|
|
out_6147280223985413399[27] = 0;
|
|
|
|
|
out_6147280223985413399[28] = 0;
|
|
|
|
|
out_6147280223985413399[29] = 0;
|
|
|
|
|
out_6147280223985413399[30] = 1;
|
|
|
|
|
out_6147280223985413399[31] = 0;
|
|
|
|
|
out_6147280223985413399[32] = 0;
|
|
|
|
|
out_6147280223985413399[33] = 0;
|
|
|
|
|
out_6147280223985413399[34] = 0;
|
|
|
|
|
out_6147280223985413399[35] = 0;
|
|
|
|
|
out_6147280223985413399[36] = 0;
|
|
|
|
|
out_6147280223985413399[37] = 0;
|
|
|
|
|
out_6147280223985413399[38] = 0;
|
|
|
|
|
out_6147280223985413399[39] = 0;
|
|
|
|
|
out_6147280223985413399[40] = 1;
|
|
|
|
|
out_6147280223985413399[41] = 0;
|
|
|
|
|
out_6147280223985413399[42] = 0;
|
|
|
|
|
out_6147280223985413399[43] = 0;
|
|
|
|
|
out_6147280223985413399[44] = 0;
|
|
|
|
|
out_6147280223985413399[45] = dt*(stiffness_front*(-state[2] - state[3] + state[7])/state[1] + (-stiffness_front - stiffness_rear)*state[5]/state[4] + (-center_to_front*stiffness_front + center_to_rear*stiffness_rear)*state[6]/state[4]);
|
|
|
|
|
out_6147280223985413399[46] = -dt*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/pow(state[1], 2);
|
|
|
|
|
out_6147280223985413399[47] = -dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_6147280223985413399[48] = -dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_6147280223985413399[49] = dt*(-(-stiffness_front*state[0] - stiffness_rear*state[0])*state[5]/pow(state[4], 2) + (-(-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/pow(state[4], 2) - 1)*state[6]);
|
|
|
|
|
out_6147280223985413399[50] = dt*(-stiffness_front*state[0] - stiffness_rear*state[0])/state[4] + 1;
|
|
|
|
|
out_6147280223985413399[51] = dt*((-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/state[4] - state[4]);
|
|
|
|
|
out_6147280223985413399[52] = dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_6147280223985413399[53] = -9.8100000000000005*dt;
|
|
|
|
|
out_6147280223985413399[54] = dt*(center_to_front*stiffness_front*(-state[2] - state[3] + state[7])/(rotational_inertia*state[1]) + (-center_to_front*stiffness_front + center_to_rear*stiffness_rear)*state[5]/(rotational_inertia*state[4]) + (-pow(center_to_front, 2)*stiffness_front - pow(center_to_rear, 2)*stiffness_rear)*state[6]/(rotational_inertia*state[4]));
|
|
|
|
|
out_6147280223985413399[55] = -center_to_front*dt*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/(rotational_inertia*pow(state[1], 2));
|
|
|
|
|
out_6147280223985413399[56] = -center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_6147280223985413399[57] = -center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_6147280223985413399[58] = dt*(-(-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])*state[5]/(rotational_inertia*pow(state[4], 2)) - (-pow(center_to_front, 2)*stiffness_front*state[0] - pow(center_to_rear, 2)*stiffness_rear*state[0])*state[6]/(rotational_inertia*pow(state[4], 2)));
|
|
|
|
|
out_6147280223985413399[59] = dt*(-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/(rotational_inertia*state[4]);
|
|
|
|
|
out_6147280223985413399[60] = dt*(-pow(center_to_front, 2)*stiffness_front*state[0] - pow(center_to_rear, 2)*stiffness_rear*state[0])/(rotational_inertia*state[4]) + 1;
|
|
|
|
|
out_6147280223985413399[61] = center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_6147280223985413399[62] = 0;
|
|
|
|
|
out_6147280223985413399[63] = 0;
|
|
|
|
|
out_6147280223985413399[64] = 0;
|
|
|
|
|
out_6147280223985413399[65] = 0;
|
|
|
|
|
out_6147280223985413399[66] = 0;
|
|
|
|
|
out_6147280223985413399[67] = 0;
|
|
|
|
|
out_6147280223985413399[68] = 0;
|
|
|
|
|
out_6147280223985413399[69] = 0;
|
|
|
|
|
out_6147280223985413399[70] = 1;
|
|
|
|
|
out_6147280223985413399[71] = 0;
|
|
|
|
|
out_6147280223985413399[72] = 0;
|
|
|
|
|
out_6147280223985413399[73] = 0;
|
|
|
|
|
out_6147280223985413399[74] = 0;
|
|
|
|
|
out_6147280223985413399[75] = 0;
|
|
|
|
|
out_6147280223985413399[76] = 0;
|
|
|
|
|
out_6147280223985413399[77] = 0;
|
|
|
|
|
out_6147280223985413399[78] = 0;
|
|
|
|
|
out_6147280223985413399[79] = 0;
|
|
|
|
|
out_6147280223985413399[80] = 1;
|
|
|
|
|
}
|
|
|
|
|
void h_25(double *state, double *unused, double *out_3829175281740838015) {
|
|
|
|
|
out_3829175281740838015[0] = state[6];
|
|
|
|
|
void h_25(double *state, double *unused, double *out_5764107788253792210) {
|
|
|
|
|
out_5764107788253792210[0] = state[6];
|
|
|
|
|
}
|
|
|
|
|
void H_25(double *state, double *unused, double *out_4911542868012561528) {
|
|
|
|
|
out_4911542868012561528[0] = 0;
|
|
|
|
|
out_4911542868012561528[1] = 0;
|
|
|
|
|
out_4911542868012561528[2] = 0;
|
|
|
|
|
out_4911542868012561528[3] = 0;
|
|
|
|
|
out_4911542868012561528[4] = 0;
|
|
|
|
|
out_4911542868012561528[5] = 0;
|
|
|
|
|
out_4911542868012561528[6] = 1;
|
|
|
|
|
out_4911542868012561528[7] = 0;
|
|
|
|
|
out_4911542868012561528[8] = 0;
|
|
|
|
|
void H_25(double *state, double *unused, double *out_6558226722451545189) {
|
|
|
|
|
out_6558226722451545189[0] = 0;
|
|
|
|
|
out_6558226722451545189[1] = 0;
|
|
|
|
|
out_6558226722451545189[2] = 0;
|
|
|
|
|
out_6558226722451545189[3] = 0;
|
|
|
|
|
out_6558226722451545189[4] = 0;
|
|
|
|
|
out_6558226722451545189[5] = 0;
|
|
|
|
|
out_6558226722451545189[6] = 1;
|
|
|
|
|
out_6558226722451545189[7] = 0;
|
|
|
|
|
out_6558226722451545189[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_24(double *state, double *unused, double *out_907842905137521494) {
|
|
|
|
|
out_907842905137521494[0] = state[4];
|
|
|
|
|
out_907842905137521494[1] = state[5];
|
|
|
|
|
void h_24(double *state, double *unused, double *out_7078883566614115640) {
|
|
|
|
|
out_7078883566614115640[0] = state[4];
|
|
|
|
|
out_7078883566614115640[1] = state[5];
|
|
|
|
|
}
|
|
|
|
|
void H_24(double *state, double *unused, double *out_5382000350055900252) {
|
|
|
|
|
out_5382000350055900252[0] = 0;
|
|
|
|
|
out_5382000350055900252[1] = 0;
|
|
|
|
|
out_5382000350055900252[2] = 0;
|
|
|
|
|
out_5382000350055900252[3] = 0;
|
|
|
|
|
out_5382000350055900252[4] = 1;
|
|
|
|
|
out_5382000350055900252[5] = 0;
|
|
|
|
|
out_5382000350055900252[6] = 0;
|
|
|
|
|
out_5382000350055900252[7] = 0;
|
|
|
|
|
out_5382000350055900252[8] = 0;
|
|
|
|
|
out_5382000350055900252[9] = 0;
|
|
|
|
|
out_5382000350055900252[10] = 0;
|
|
|
|
|
out_5382000350055900252[11] = 0;
|
|
|
|
|
out_5382000350055900252[12] = 0;
|
|
|
|
|
out_5382000350055900252[13] = 0;
|
|
|
|
|
out_5382000350055900252[14] = 1;
|
|
|
|
|
out_5382000350055900252[15] = 0;
|
|
|
|
|
out_5382000350055900252[16] = 0;
|
|
|
|
|
out_5382000350055900252[17] = 0;
|
|
|
|
|
void H_24(double *state, double *unused, double *out_4829363603274231120) {
|
|
|
|
|
out_4829363603274231120[0] = 0;
|
|
|
|
|
out_4829363603274231120[1] = 0;
|
|
|
|
|
out_4829363603274231120[2] = 0;
|
|
|
|
|
out_4829363603274231120[3] = 0;
|
|
|
|
|
out_4829363603274231120[4] = 1;
|
|
|
|
|
out_4829363603274231120[5] = 0;
|
|
|
|
|
out_4829363603274231120[6] = 0;
|
|
|
|
|
out_4829363603274231120[7] = 0;
|
|
|
|
|
out_4829363603274231120[8] = 0;
|
|
|
|
|
out_4829363603274231120[9] = 0;
|
|
|
|
|
out_4829363603274231120[10] = 0;
|
|
|
|
|
out_4829363603274231120[11] = 0;
|
|
|
|
|
out_4829363603274231120[12] = 0;
|
|
|
|
|
out_4829363603274231120[13] = 0;
|
|
|
|
|
out_4829363603274231120[14] = 1;
|
|
|
|
|
out_4829363603274231120[15] = 0;
|
|
|
|
|
out_4829363603274231120[16] = 0;
|
|
|
|
|
out_4829363603274231120[17] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_30(double *state, double *unused, double *out_3553981219456332126) {
|
|
|
|
|
out_3553981219456332126[0] = state[4];
|
|
|
|
|
void h_30(double *state, double *unused, double *out_5909627612474447181) {
|
|
|
|
|
out_5909627612474447181[0] = state[4];
|
|
|
|
|
}
|
|
|
|
|
void H_30(double *state, double *unused, double *out_9007504875569381890) {
|
|
|
|
|
out_9007504875569381890[0] = 0;
|
|
|
|
|
out_9007504875569381890[1] = 0;
|
|
|
|
|
out_9007504875569381890[2] = 0;
|
|
|
|
|
out_9007504875569381890[3] = 0;
|
|
|
|
|
out_9007504875569381890[4] = 1;
|
|
|
|
|
out_9007504875569381890[5] = 0;
|
|
|
|
|
out_9007504875569381890[6] = 0;
|
|
|
|
|
out_9007504875569381890[7] = 0;
|
|
|
|
|
out_9007504875569381890[8] = 0;
|
|
|
|
|
void H_30(double *state, double *unused, double *out_4971827009766389672) {
|
|
|
|
|
out_4971827009766389672[0] = 0;
|
|
|
|
|
out_4971827009766389672[1] = 0;
|
|
|
|
|
out_4971827009766389672[2] = 0;
|
|
|
|
|
out_4971827009766389672[3] = 0;
|
|
|
|
|
out_4971827009766389672[4] = 1;
|
|
|
|
|
out_4971827009766389672[5] = 0;
|
|
|
|
|
out_4971827009766389672[6] = 0;
|
|
|
|
|
out_4971827009766389672[7] = 0;
|
|
|
|
|
out_4971827009766389672[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_26(double *state, double *unused, double *out_8100519880621487711) {
|
|
|
|
|
out_8100519880621487711[0] = state[7];
|
|
|
|
|
void h_26(double *state, double *unused, double *out_752941123093433680) {
|
|
|
|
|
out_752941123093433680[0] = state[7];
|
|
|
|
|
}
|
|
|
|
|
void H_26(double *state, double *unused, double *out_8653046186886617752) {
|
|
|
|
|
out_8653046186886617752[0] = 0;
|
|
|
|
|
out_8653046186886617752[1] = 0;
|
|
|
|
|
out_8653046186886617752[2] = 0;
|
|
|
|
|
out_8653046186886617752[3] = 0;
|
|
|
|
|
out_8653046186886617752[4] = 0;
|
|
|
|
|
out_8653046186886617752[5] = 0;
|
|
|
|
|
out_8653046186886617752[6] = 0;
|
|
|
|
|
out_8653046186886617752[7] = 1;
|
|
|
|
|
out_8653046186886617752[8] = 0;
|
|
|
|
|
void H_26(double *state, double *unused, double *out_8583991381497205826) {
|
|
|
|
|
out_8583991381497205826[0] = 0;
|
|
|
|
|
out_8583991381497205826[1] = 0;
|
|
|
|
|
out_8583991381497205826[2] = 0;
|
|
|
|
|
out_8583991381497205826[3] = 0;
|
|
|
|
|
out_8583991381497205826[4] = 0;
|
|
|
|
|
out_8583991381497205826[5] = 0;
|
|
|
|
|
out_8583991381497205826[6] = 0;
|
|
|
|
|
out_8583991381497205826[7] = 1;
|
|
|
|
|
out_8583991381497205826[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_27(double *state, double *unused, double *out_8218527274554864455) {
|
|
|
|
|
out_8218527274554864455[0] = state[3];
|
|
|
|
|
void h_27(double *state, double *unused, double *out_7680963017794913761) {
|
|
|
|
|
out_7680963017794913761[0] = state[3];
|
|
|
|
|
}
|
|
|
|
|
void H_27(double *state, double *unused, double *out_7215645126956226509) {
|
|
|
|
|
out_7215645126956226509[0] = 0;
|
|
|
|
|
out_7215645126956226509[1] = 0;
|
|
|
|
|
out_7215645126956226509[2] = 0;
|
|
|
|
|
out_7215645126956226509[3] = 1;
|
|
|
|
|
out_7215645126956226509[4] = 0;
|
|
|
|
|
out_7215645126956226509[5] = 0;
|
|
|
|
|
out_7215645126956226509[6] = 0;
|
|
|
|
|
out_7215645126956226509[7] = 0;
|
|
|
|
|
out_7215645126956226509[8] = 0;
|
|
|
|
|
void H_27(double *state, double *unused, double *out_7146590321566814583) {
|
|
|
|
|
out_7146590321566814583[0] = 0;
|
|
|
|
|
out_7146590321566814583[1] = 0;
|
|
|
|
|
out_7146590321566814583[2] = 0;
|
|
|
|
|
out_7146590321566814583[3] = 1;
|
|
|
|
|
out_7146590321566814583[4] = 0;
|
|
|
|
|
out_7146590321566814583[5] = 0;
|
|
|
|
|
out_7146590321566814583[6] = 0;
|
|
|
|
|
out_7146590321566814583[7] = 0;
|
|
|
|
|
out_7146590321566814583[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_29(double *state, double *unused, double *out_1447692048204513519) {
|
|
|
|
|
out_1447692048204513519[0] = state[1];
|
|
|
|
|
void h_29(double *state, double *unused, double *out_9131594410423796928) {
|
|
|
|
|
out_9131594410423796928[0] = state[1];
|
|
|
|
|
}
|
|
|
|
|
void H_29(double *state, double *unused, double *out_8929007853825777542) {
|
|
|
|
|
out_8929007853825777542[0] = 0;
|
|
|
|
|
out_8929007853825777542[1] = 1;
|
|
|
|
|
out_8929007853825777542[2] = 0;
|
|
|
|
|
out_8929007853825777542[3] = 0;
|
|
|
|
|
out_8929007853825777542[4] = 0;
|
|
|
|
|
out_8929007853825777542[5] = 0;
|
|
|
|
|
out_8929007853825777542[6] = 0;
|
|
|
|
|
out_8929007853825777542[7] = 0;
|
|
|
|
|
out_8929007853825777542[8] = 0;
|
|
|
|
|
void H_29(double *state, double *unused, double *out_4461595665451997488) {
|
|
|
|
|
out_4461595665451997488[0] = 0;
|
|
|
|
|
out_4461595665451997488[1] = 1;
|
|
|
|
|
out_4461595665451997488[2] = 0;
|
|
|
|
|
out_4461595665451997488[3] = 0;
|
|
|
|
|
out_4461595665451997488[4] = 0;
|
|
|
|
|
out_4461595665451997488[5] = 0;
|
|
|
|
|
out_4461595665451997488[6] = 0;
|
|
|
|
|
out_4461595665451997488[7] = 0;
|
|
|
|
|
out_4461595665451997488[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_28(double *state, double *unused, double *out_187129545089362198) {
|
|
|
|
|
out_187129545089362198[0] = state[0];
|
|
|
|
|
void h_28(double *state, double *unused, double *out_7953228952644784472) {
|
|
|
|
|
out_7953228952644784472[0] = state[0];
|
|
|
|
|
}
|
|
|
|
|
void H_28(double *state, double *unused, double *out_6965377582260451291) {
|
|
|
|
|
out_6965377582260451291[0] = 1;
|
|
|
|
|
out_6965377582260451291[1] = 0;
|
|
|
|
|
out_6965377582260451291[2] = 0;
|
|
|
|
|
out_6965377582260451291[3] = 0;
|
|
|
|
|
out_6965377582260451291[4] = 0;
|
|
|
|
|
out_6965377582260451291[5] = 0;
|
|
|
|
|
out_6965377582260451291[6] = 0;
|
|
|
|
|
out_6965377582260451291[7] = 0;
|
|
|
|
|
out_6965377582260451291[8] = 0;
|
|
|
|
|
void H_28(double *state, double *unused, double *out_8902749391188023554) {
|
|
|
|
|
out_8902749391188023554[0] = 1;
|
|
|
|
|
out_8902749391188023554[1] = 0;
|
|
|
|
|
out_8902749391188023554[2] = 0;
|
|
|
|
|
out_8902749391188023554[3] = 0;
|
|
|
|
|
out_8902749391188023554[4] = 0;
|
|
|
|
|
out_8902749391188023554[5] = 0;
|
|
|
|
|
out_8902749391188023554[6] = 0;
|
|
|
|
|
out_8902749391188023554[7] = 0;
|
|
|
|
|
out_8902749391188023554[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_31(double *state, double *unused, double *out_7466624809994860365) {
|
|
|
|
|
out_7466624809994860365[0] = state[8];
|
|
|
|
|
void h_31(double *state, double *unused, double *out_2126658259999769860) {
|
|
|
|
|
out_2126658259999769860[0] = state[8];
|
|
|
|
|
}
|
|
|
|
|
void H_31(double *state, double *unused, double *out_4880896906135601100) {
|
|
|
|
|
out_4880896906135601100[0] = 0;
|
|
|
|
|
out_4880896906135601100[1] = 0;
|
|
|
|
|
out_4880896906135601100[2] = 0;
|
|
|
|
|
out_4880896906135601100[3] = 0;
|
|
|
|
|
out_4880896906135601100[4] = 0;
|
|
|
|
|
out_4880896906135601100[5] = 0;
|
|
|
|
|
out_4880896906135601100[6] = 0;
|
|
|
|
|
out_4880896906135601100[7] = 0;
|
|
|
|
|
out_4880896906135601100[8] = 1;
|
|
|
|
|
void H_31(double *state, double *unused, double *out_6588872684328505617) {
|
|
|
|
|
out_6588872684328505617[0] = 0;
|
|
|
|
|
out_6588872684328505617[1] = 0;
|
|
|
|
|
out_6588872684328505617[2] = 0;
|
|
|
|
|
out_6588872684328505617[3] = 0;
|
|
|
|
|
out_6588872684328505617[4] = 0;
|
|
|
|
|
out_6588872684328505617[5] = 0;
|
|
|
|
|
out_6588872684328505617[6] = 0;
|
|
|
|
|
out_6588872684328505617[7] = 0;
|
|
|
|
|
out_6588872684328505617[8] = 1;
|
|
|
|
|
}
|
|
|
|
|
#include <eigen3/Eigen/Dense>
|
|
|
|
|
#include <iostream>
|
|
|
|
@@ -514,68 +514,68 @@ void car_update_28(double *in_x, double *in_P, double *in_z, double *in_R, doubl
|
|
|
|
|
void car_update_31(double *in_x, double *in_P, double *in_z, double *in_R, double *in_ea) {
|
|
|
|
|
update<1, 3, 0>(in_x, in_P, h_31, H_31, NULL, in_z, in_R, in_ea, MAHA_THRESH_31);
|
|
|
|
|
}
|
|
|
|
|
void car_err_fun(double *nom_x, double *delta_x, double *out_3911786354042064155) {
|
|
|
|
|
err_fun(nom_x, delta_x, out_3911786354042064155);
|
|
|
|
|
void car_err_fun(double *nom_x, double *delta_x, double *out_3392632126809328250) {
|
|
|
|
|
err_fun(nom_x, delta_x, out_3392632126809328250);
|
|
|
|
|
}
|
|
|
|
|
void car_inv_err_fun(double *nom_x, double *true_x, double *out_5083852074412776924) {
|
|
|
|
|
inv_err_fun(nom_x, true_x, out_5083852074412776924);
|
|
|
|
|
void car_inv_err_fun(double *nom_x, double *true_x, double *out_2412120784647444554) {
|
|
|
|
|
inv_err_fun(nom_x, true_x, out_2412120784647444554);
|
|
|
|
|
}
|
|
|
|
|
void car_H_mod_fun(double *state, double *out_8631509380512325248) {
|
|
|
|
|
H_mod_fun(state, out_8631509380512325248);
|
|
|
|
|
void car_H_mod_fun(double *state, double *out_6052892280251248477) {
|
|
|
|
|
H_mod_fun(state, out_6052892280251248477);
|
|
|
|
|
}
|
|
|
|
|
void car_f_fun(double *state, double dt, double *out_8422851872644073845) {
|
|
|
|
|
f_fun(state, dt, out_8422851872644073845);
|
|
|
|
|
void car_f_fun(double *state, double dt, double *out_9073398793292557711) {
|
|
|
|
|
f_fun(state, dt, out_9073398793292557711);
|
|
|
|
|
}
|
|
|
|
|
void car_F_fun(double *state, double dt, double *out_3191485522034494131) {
|
|
|
|
|
F_fun(state, dt, out_3191485522034494131);
|
|
|
|
|
void car_F_fun(double *state, double dt, double *out_6147280223985413399) {
|
|
|
|
|
F_fun(state, dt, out_6147280223985413399);
|
|
|
|
|
}
|
|
|
|
|
void car_h_25(double *state, double *unused, double *out_3829175281740838015) {
|
|
|
|
|
h_25(state, unused, out_3829175281740838015);
|
|
|
|
|
void car_h_25(double *state, double *unused, double *out_5764107788253792210) {
|
|
|
|
|
h_25(state, unused, out_5764107788253792210);
|
|
|
|
|
}
|
|
|
|
|
void car_H_25(double *state, double *unused, double *out_4911542868012561528) {
|
|
|
|
|
H_25(state, unused, out_4911542868012561528);
|
|
|
|
|
void car_H_25(double *state, double *unused, double *out_6558226722451545189) {
|
|
|
|
|
H_25(state, unused, out_6558226722451545189);
|
|
|
|
|
}
|
|
|
|
|
void car_h_24(double *state, double *unused, double *out_907842905137521494) {
|
|
|
|
|
h_24(state, unused, out_907842905137521494);
|
|
|
|
|
void car_h_24(double *state, double *unused, double *out_7078883566614115640) {
|
|
|
|
|
h_24(state, unused, out_7078883566614115640);
|
|
|
|
|
}
|
|
|
|
|
void car_H_24(double *state, double *unused, double *out_5382000350055900252) {
|
|
|
|
|
H_24(state, unused, out_5382000350055900252);
|
|
|
|
|
void car_H_24(double *state, double *unused, double *out_4829363603274231120) {
|
|
|
|
|
H_24(state, unused, out_4829363603274231120);
|
|
|
|
|
}
|
|
|
|
|
void car_h_30(double *state, double *unused, double *out_3553981219456332126) {
|
|
|
|
|
h_30(state, unused, out_3553981219456332126);
|
|
|
|
|
void car_h_30(double *state, double *unused, double *out_5909627612474447181) {
|
|
|
|
|
h_30(state, unused, out_5909627612474447181);
|
|
|
|
|
}
|
|
|
|
|
void car_H_30(double *state, double *unused, double *out_9007504875569381890) {
|
|
|
|
|
H_30(state, unused, out_9007504875569381890);
|
|
|
|
|
void car_H_30(double *state, double *unused, double *out_4971827009766389672) {
|
|
|
|
|
H_30(state, unused, out_4971827009766389672);
|
|
|
|
|
}
|
|
|
|
|
void car_h_26(double *state, double *unused, double *out_8100519880621487711) {
|
|
|
|
|
h_26(state, unused, out_8100519880621487711);
|
|
|
|
|
void car_h_26(double *state, double *unused, double *out_752941123093433680) {
|
|
|
|
|
h_26(state, unused, out_752941123093433680);
|
|
|
|
|
}
|
|
|
|
|
void car_H_26(double *state, double *unused, double *out_8653046186886617752) {
|
|
|
|
|
H_26(state, unused, out_8653046186886617752);
|
|
|
|
|
void car_H_26(double *state, double *unused, double *out_8583991381497205826) {
|
|
|
|
|
H_26(state, unused, out_8583991381497205826);
|
|
|
|
|
}
|
|
|
|
|
void car_h_27(double *state, double *unused, double *out_8218527274554864455) {
|
|
|
|
|
h_27(state, unused, out_8218527274554864455);
|
|
|
|
|
void car_h_27(double *state, double *unused, double *out_7680963017794913761) {
|
|
|
|
|
h_27(state, unused, out_7680963017794913761);
|
|
|
|
|
}
|
|
|
|
|
void car_H_27(double *state, double *unused, double *out_7215645126956226509) {
|
|
|
|
|
H_27(state, unused, out_7215645126956226509);
|
|
|
|
|
void car_H_27(double *state, double *unused, double *out_7146590321566814583) {
|
|
|
|
|
H_27(state, unused, out_7146590321566814583);
|
|
|
|
|
}
|
|
|
|
|
void car_h_29(double *state, double *unused, double *out_1447692048204513519) {
|
|
|
|
|
h_29(state, unused, out_1447692048204513519);
|
|
|
|
|
void car_h_29(double *state, double *unused, double *out_9131594410423796928) {
|
|
|
|
|
h_29(state, unused, out_9131594410423796928);
|
|
|
|
|
}
|
|
|
|
|
void car_H_29(double *state, double *unused, double *out_8929007853825777542) {
|
|
|
|
|
H_29(state, unused, out_8929007853825777542);
|
|
|
|
|
void car_H_29(double *state, double *unused, double *out_4461595665451997488) {
|
|
|
|
|
H_29(state, unused, out_4461595665451997488);
|
|
|
|
|
}
|
|
|
|
|
void car_h_28(double *state, double *unused, double *out_187129545089362198) {
|
|
|
|
|
h_28(state, unused, out_187129545089362198);
|
|
|
|
|
void car_h_28(double *state, double *unused, double *out_7953228952644784472) {
|
|
|
|
|
h_28(state, unused, out_7953228952644784472);
|
|
|
|
|
}
|
|
|
|
|
void car_H_28(double *state, double *unused, double *out_6965377582260451291) {
|
|
|
|
|
H_28(state, unused, out_6965377582260451291);
|
|
|
|
|
void car_H_28(double *state, double *unused, double *out_8902749391188023554) {
|
|
|
|
|
H_28(state, unused, out_8902749391188023554);
|
|
|
|
|
}
|
|
|
|
|
void car_h_31(double *state, double *unused, double *out_7466624809994860365) {
|
|
|
|
|
h_31(state, unused, out_7466624809994860365);
|
|
|
|
|
void car_h_31(double *state, double *unused, double *out_2126658259999769860) {
|
|
|
|
|
h_31(state, unused, out_2126658259999769860);
|
|
|
|
|
}
|
|
|
|
|
void car_H_31(double *state, double *unused, double *out_4880896906135601100) {
|
|
|
|
|
H_31(state, unused, out_4880896906135601100);
|
|
|
|
|
void car_H_31(double *state, double *unused, double *out_6588872684328505617) {
|
|
|
|
|
H_31(state, unused, out_6588872684328505617);
|
|
|
|
|
}
|
|
|
|
|
void car_predict(double *in_x, double *in_P, double *in_Q, double dt) {
|
|
|
|
|
predict(in_x, in_P, in_Q, dt);
|
|
|
|
|