|
|
|
@@ -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_4232117113001801558) {
|
|
|
|
|
out_4232117113001801558[0] = delta_x[0] + nom_x[0];
|
|
|
|
|
out_4232117113001801558[1] = delta_x[1] + nom_x[1];
|
|
|
|
|
out_4232117113001801558[2] = delta_x[2] + nom_x[2];
|
|
|
|
|
out_4232117113001801558[3] = delta_x[3] + nom_x[3];
|
|
|
|
|
out_4232117113001801558[4] = delta_x[4] + nom_x[4];
|
|
|
|
|
out_4232117113001801558[5] = delta_x[5] + nom_x[5];
|
|
|
|
|
out_4232117113001801558[6] = delta_x[6] + nom_x[6];
|
|
|
|
|
out_4232117113001801558[7] = delta_x[7] + nom_x[7];
|
|
|
|
|
out_4232117113001801558[8] = delta_x[8] + nom_x[8];
|
|
|
|
|
void err_fun(double *nom_x, double *delta_x, double *out_8240421491563361240) {
|
|
|
|
|
out_8240421491563361240[0] = delta_x[0] + nom_x[0];
|
|
|
|
|
out_8240421491563361240[1] = delta_x[1] + nom_x[1];
|
|
|
|
|
out_8240421491563361240[2] = delta_x[2] + nom_x[2];
|
|
|
|
|
out_8240421491563361240[3] = delta_x[3] + nom_x[3];
|
|
|
|
|
out_8240421491563361240[4] = delta_x[4] + nom_x[4];
|
|
|
|
|
out_8240421491563361240[5] = delta_x[5] + nom_x[5];
|
|
|
|
|
out_8240421491563361240[6] = delta_x[6] + nom_x[6];
|
|
|
|
|
out_8240421491563361240[7] = delta_x[7] + nom_x[7];
|
|
|
|
|
out_8240421491563361240[8] = delta_x[8] + nom_x[8];
|
|
|
|
|
}
|
|
|
|
|
void inv_err_fun(double *nom_x, double *true_x, double *out_2064017399846263425) {
|
|
|
|
|
out_2064017399846263425[0] = -nom_x[0] + true_x[0];
|
|
|
|
|
out_2064017399846263425[1] = -nom_x[1] + true_x[1];
|
|
|
|
|
out_2064017399846263425[2] = -nom_x[2] + true_x[2];
|
|
|
|
|
out_2064017399846263425[3] = -nom_x[3] + true_x[3];
|
|
|
|
|
out_2064017399846263425[4] = -nom_x[4] + true_x[4];
|
|
|
|
|
out_2064017399846263425[5] = -nom_x[5] + true_x[5];
|
|
|
|
|
out_2064017399846263425[6] = -nom_x[6] + true_x[6];
|
|
|
|
|
out_2064017399846263425[7] = -nom_x[7] + true_x[7];
|
|
|
|
|
out_2064017399846263425[8] = -nom_x[8] + true_x[8];
|
|
|
|
|
void inv_err_fun(double *nom_x, double *true_x, double *out_6914926822647590994) {
|
|
|
|
|
out_6914926822647590994[0] = -nom_x[0] + true_x[0];
|
|
|
|
|
out_6914926822647590994[1] = -nom_x[1] + true_x[1];
|
|
|
|
|
out_6914926822647590994[2] = -nom_x[2] + true_x[2];
|
|
|
|
|
out_6914926822647590994[3] = -nom_x[3] + true_x[3];
|
|
|
|
|
out_6914926822647590994[4] = -nom_x[4] + true_x[4];
|
|
|
|
|
out_6914926822647590994[5] = -nom_x[5] + true_x[5];
|
|
|
|
|
out_6914926822647590994[6] = -nom_x[6] + true_x[6];
|
|
|
|
|
out_6914926822647590994[7] = -nom_x[7] + true_x[7];
|
|
|
|
|
out_6914926822647590994[8] = -nom_x[8] + true_x[8];
|
|
|
|
|
}
|
|
|
|
|
void H_mod_fun(double *state, double *out_6740329302859718453) {
|
|
|
|
|
out_6740329302859718453[0] = 1.0;
|
|
|
|
|
out_6740329302859718453[1] = 0.0;
|
|
|
|
|
out_6740329302859718453[2] = 0.0;
|
|
|
|
|
out_6740329302859718453[3] = 0.0;
|
|
|
|
|
out_6740329302859718453[4] = 0.0;
|
|
|
|
|
out_6740329302859718453[5] = 0.0;
|
|
|
|
|
out_6740329302859718453[6] = 0.0;
|
|
|
|
|
out_6740329302859718453[7] = 0.0;
|
|
|
|
|
out_6740329302859718453[8] = 0.0;
|
|
|
|
|
out_6740329302859718453[9] = 0.0;
|
|
|
|
|
out_6740329302859718453[10] = 1.0;
|
|
|
|
|
out_6740329302859718453[11] = 0.0;
|
|
|
|
|
out_6740329302859718453[12] = 0.0;
|
|
|
|
|
out_6740329302859718453[13] = 0.0;
|
|
|
|
|
out_6740329302859718453[14] = 0.0;
|
|
|
|
|
out_6740329302859718453[15] = 0.0;
|
|
|
|
|
out_6740329302859718453[16] = 0.0;
|
|
|
|
|
out_6740329302859718453[17] = 0.0;
|
|
|
|
|
out_6740329302859718453[18] = 0.0;
|
|
|
|
|
out_6740329302859718453[19] = 0.0;
|
|
|
|
|
out_6740329302859718453[20] = 1.0;
|
|
|
|
|
out_6740329302859718453[21] = 0.0;
|
|
|
|
|
out_6740329302859718453[22] = 0.0;
|
|
|
|
|
out_6740329302859718453[23] = 0.0;
|
|
|
|
|
out_6740329302859718453[24] = 0.0;
|
|
|
|
|
out_6740329302859718453[25] = 0.0;
|
|
|
|
|
out_6740329302859718453[26] = 0.0;
|
|
|
|
|
out_6740329302859718453[27] = 0.0;
|
|
|
|
|
out_6740329302859718453[28] = 0.0;
|
|
|
|
|
out_6740329302859718453[29] = 0.0;
|
|
|
|
|
out_6740329302859718453[30] = 1.0;
|
|
|
|
|
out_6740329302859718453[31] = 0.0;
|
|
|
|
|
out_6740329302859718453[32] = 0.0;
|
|
|
|
|
out_6740329302859718453[33] = 0.0;
|
|
|
|
|
out_6740329302859718453[34] = 0.0;
|
|
|
|
|
out_6740329302859718453[35] = 0.0;
|
|
|
|
|
out_6740329302859718453[36] = 0.0;
|
|
|
|
|
out_6740329302859718453[37] = 0.0;
|
|
|
|
|
out_6740329302859718453[38] = 0.0;
|
|
|
|
|
out_6740329302859718453[39] = 0.0;
|
|
|
|
|
out_6740329302859718453[40] = 1.0;
|
|
|
|
|
out_6740329302859718453[41] = 0.0;
|
|
|
|
|
out_6740329302859718453[42] = 0.0;
|
|
|
|
|
out_6740329302859718453[43] = 0.0;
|
|
|
|
|
out_6740329302859718453[44] = 0.0;
|
|
|
|
|
out_6740329302859718453[45] = 0.0;
|
|
|
|
|
out_6740329302859718453[46] = 0.0;
|
|
|
|
|
out_6740329302859718453[47] = 0.0;
|
|
|
|
|
out_6740329302859718453[48] = 0.0;
|
|
|
|
|
out_6740329302859718453[49] = 0.0;
|
|
|
|
|
out_6740329302859718453[50] = 1.0;
|
|
|
|
|
out_6740329302859718453[51] = 0.0;
|
|
|
|
|
out_6740329302859718453[52] = 0.0;
|
|
|
|
|
out_6740329302859718453[53] = 0.0;
|
|
|
|
|
out_6740329302859718453[54] = 0.0;
|
|
|
|
|
out_6740329302859718453[55] = 0.0;
|
|
|
|
|
out_6740329302859718453[56] = 0.0;
|
|
|
|
|
out_6740329302859718453[57] = 0.0;
|
|
|
|
|
out_6740329302859718453[58] = 0.0;
|
|
|
|
|
out_6740329302859718453[59] = 0.0;
|
|
|
|
|
out_6740329302859718453[60] = 1.0;
|
|
|
|
|
out_6740329302859718453[61] = 0.0;
|
|
|
|
|
out_6740329302859718453[62] = 0.0;
|
|
|
|
|
out_6740329302859718453[63] = 0.0;
|
|
|
|
|
out_6740329302859718453[64] = 0.0;
|
|
|
|
|
out_6740329302859718453[65] = 0.0;
|
|
|
|
|
out_6740329302859718453[66] = 0.0;
|
|
|
|
|
out_6740329302859718453[67] = 0.0;
|
|
|
|
|
out_6740329302859718453[68] = 0.0;
|
|
|
|
|
out_6740329302859718453[69] = 0.0;
|
|
|
|
|
out_6740329302859718453[70] = 1.0;
|
|
|
|
|
out_6740329302859718453[71] = 0.0;
|
|
|
|
|
out_6740329302859718453[72] = 0.0;
|
|
|
|
|
out_6740329302859718453[73] = 0.0;
|
|
|
|
|
out_6740329302859718453[74] = 0.0;
|
|
|
|
|
out_6740329302859718453[75] = 0.0;
|
|
|
|
|
out_6740329302859718453[76] = 0.0;
|
|
|
|
|
out_6740329302859718453[77] = 0.0;
|
|
|
|
|
out_6740329302859718453[78] = 0.0;
|
|
|
|
|
out_6740329302859718453[79] = 0.0;
|
|
|
|
|
out_6740329302859718453[80] = 1.0;
|
|
|
|
|
void H_mod_fun(double *state, double *out_561762666341114704) {
|
|
|
|
|
out_561762666341114704[0] = 1.0;
|
|
|
|
|
out_561762666341114704[1] = 0.0;
|
|
|
|
|
out_561762666341114704[2] = 0.0;
|
|
|
|
|
out_561762666341114704[3] = 0.0;
|
|
|
|
|
out_561762666341114704[4] = 0.0;
|
|
|
|
|
out_561762666341114704[5] = 0.0;
|
|
|
|
|
out_561762666341114704[6] = 0.0;
|
|
|
|
|
out_561762666341114704[7] = 0.0;
|
|
|
|
|
out_561762666341114704[8] = 0.0;
|
|
|
|
|
out_561762666341114704[9] = 0.0;
|
|
|
|
|
out_561762666341114704[10] = 1.0;
|
|
|
|
|
out_561762666341114704[11] = 0.0;
|
|
|
|
|
out_561762666341114704[12] = 0.0;
|
|
|
|
|
out_561762666341114704[13] = 0.0;
|
|
|
|
|
out_561762666341114704[14] = 0.0;
|
|
|
|
|
out_561762666341114704[15] = 0.0;
|
|
|
|
|
out_561762666341114704[16] = 0.0;
|
|
|
|
|
out_561762666341114704[17] = 0.0;
|
|
|
|
|
out_561762666341114704[18] = 0.0;
|
|
|
|
|
out_561762666341114704[19] = 0.0;
|
|
|
|
|
out_561762666341114704[20] = 1.0;
|
|
|
|
|
out_561762666341114704[21] = 0.0;
|
|
|
|
|
out_561762666341114704[22] = 0.0;
|
|
|
|
|
out_561762666341114704[23] = 0.0;
|
|
|
|
|
out_561762666341114704[24] = 0.0;
|
|
|
|
|
out_561762666341114704[25] = 0.0;
|
|
|
|
|
out_561762666341114704[26] = 0.0;
|
|
|
|
|
out_561762666341114704[27] = 0.0;
|
|
|
|
|
out_561762666341114704[28] = 0.0;
|
|
|
|
|
out_561762666341114704[29] = 0.0;
|
|
|
|
|
out_561762666341114704[30] = 1.0;
|
|
|
|
|
out_561762666341114704[31] = 0.0;
|
|
|
|
|
out_561762666341114704[32] = 0.0;
|
|
|
|
|
out_561762666341114704[33] = 0.0;
|
|
|
|
|
out_561762666341114704[34] = 0.0;
|
|
|
|
|
out_561762666341114704[35] = 0.0;
|
|
|
|
|
out_561762666341114704[36] = 0.0;
|
|
|
|
|
out_561762666341114704[37] = 0.0;
|
|
|
|
|
out_561762666341114704[38] = 0.0;
|
|
|
|
|
out_561762666341114704[39] = 0.0;
|
|
|
|
|
out_561762666341114704[40] = 1.0;
|
|
|
|
|
out_561762666341114704[41] = 0.0;
|
|
|
|
|
out_561762666341114704[42] = 0.0;
|
|
|
|
|
out_561762666341114704[43] = 0.0;
|
|
|
|
|
out_561762666341114704[44] = 0.0;
|
|
|
|
|
out_561762666341114704[45] = 0.0;
|
|
|
|
|
out_561762666341114704[46] = 0.0;
|
|
|
|
|
out_561762666341114704[47] = 0.0;
|
|
|
|
|
out_561762666341114704[48] = 0.0;
|
|
|
|
|
out_561762666341114704[49] = 0.0;
|
|
|
|
|
out_561762666341114704[50] = 1.0;
|
|
|
|
|
out_561762666341114704[51] = 0.0;
|
|
|
|
|
out_561762666341114704[52] = 0.0;
|
|
|
|
|
out_561762666341114704[53] = 0.0;
|
|
|
|
|
out_561762666341114704[54] = 0.0;
|
|
|
|
|
out_561762666341114704[55] = 0.0;
|
|
|
|
|
out_561762666341114704[56] = 0.0;
|
|
|
|
|
out_561762666341114704[57] = 0.0;
|
|
|
|
|
out_561762666341114704[58] = 0.0;
|
|
|
|
|
out_561762666341114704[59] = 0.0;
|
|
|
|
|
out_561762666341114704[60] = 1.0;
|
|
|
|
|
out_561762666341114704[61] = 0.0;
|
|
|
|
|
out_561762666341114704[62] = 0.0;
|
|
|
|
|
out_561762666341114704[63] = 0.0;
|
|
|
|
|
out_561762666341114704[64] = 0.0;
|
|
|
|
|
out_561762666341114704[65] = 0.0;
|
|
|
|
|
out_561762666341114704[66] = 0.0;
|
|
|
|
|
out_561762666341114704[67] = 0.0;
|
|
|
|
|
out_561762666341114704[68] = 0.0;
|
|
|
|
|
out_561762666341114704[69] = 0.0;
|
|
|
|
|
out_561762666341114704[70] = 1.0;
|
|
|
|
|
out_561762666341114704[71] = 0.0;
|
|
|
|
|
out_561762666341114704[72] = 0.0;
|
|
|
|
|
out_561762666341114704[73] = 0.0;
|
|
|
|
|
out_561762666341114704[74] = 0.0;
|
|
|
|
|
out_561762666341114704[75] = 0.0;
|
|
|
|
|
out_561762666341114704[76] = 0.0;
|
|
|
|
|
out_561762666341114704[77] = 0.0;
|
|
|
|
|
out_561762666341114704[78] = 0.0;
|
|
|
|
|
out_561762666341114704[79] = 0.0;
|
|
|
|
|
out_561762666341114704[80] = 1.0;
|
|
|
|
|
}
|
|
|
|
|
void f_fun(double *state, double dt, double *out_3823423380361413797) {
|
|
|
|
|
out_3823423380361413797[0] = state[0];
|
|
|
|
|
out_3823423380361413797[1] = state[1];
|
|
|
|
|
out_3823423380361413797[2] = state[2];
|
|
|
|
|
out_3823423380361413797[3] = state[3];
|
|
|
|
|
out_3823423380361413797[4] = state[4];
|
|
|
|
|
out_3823423380361413797[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_3823423380361413797[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_3823423380361413797[7] = state[7];
|
|
|
|
|
out_3823423380361413797[8] = state[8];
|
|
|
|
|
void f_fun(double *state, double dt, double *out_501741451878738685) {
|
|
|
|
|
out_501741451878738685[0] = state[0];
|
|
|
|
|
out_501741451878738685[1] = state[1];
|
|
|
|
|
out_501741451878738685[2] = state[2];
|
|
|
|
|
out_501741451878738685[3] = state[3];
|
|
|
|
|
out_501741451878738685[4] = state[4];
|
|
|
|
|
out_501741451878738685[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_501741451878738685[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_501741451878738685[7] = state[7];
|
|
|
|
|
out_501741451878738685[8] = state[8];
|
|
|
|
|
}
|
|
|
|
|
void F_fun(double *state, double dt, double *out_5969836594139851832) {
|
|
|
|
|
out_5969836594139851832[0] = 1;
|
|
|
|
|
out_5969836594139851832[1] = 0;
|
|
|
|
|
out_5969836594139851832[2] = 0;
|
|
|
|
|
out_5969836594139851832[3] = 0;
|
|
|
|
|
out_5969836594139851832[4] = 0;
|
|
|
|
|
out_5969836594139851832[5] = 0;
|
|
|
|
|
out_5969836594139851832[6] = 0;
|
|
|
|
|
out_5969836594139851832[7] = 0;
|
|
|
|
|
out_5969836594139851832[8] = 0;
|
|
|
|
|
out_5969836594139851832[9] = 0;
|
|
|
|
|
out_5969836594139851832[10] = 1;
|
|
|
|
|
out_5969836594139851832[11] = 0;
|
|
|
|
|
out_5969836594139851832[12] = 0;
|
|
|
|
|
out_5969836594139851832[13] = 0;
|
|
|
|
|
out_5969836594139851832[14] = 0;
|
|
|
|
|
out_5969836594139851832[15] = 0;
|
|
|
|
|
out_5969836594139851832[16] = 0;
|
|
|
|
|
out_5969836594139851832[17] = 0;
|
|
|
|
|
out_5969836594139851832[18] = 0;
|
|
|
|
|
out_5969836594139851832[19] = 0;
|
|
|
|
|
out_5969836594139851832[20] = 1;
|
|
|
|
|
out_5969836594139851832[21] = 0;
|
|
|
|
|
out_5969836594139851832[22] = 0;
|
|
|
|
|
out_5969836594139851832[23] = 0;
|
|
|
|
|
out_5969836594139851832[24] = 0;
|
|
|
|
|
out_5969836594139851832[25] = 0;
|
|
|
|
|
out_5969836594139851832[26] = 0;
|
|
|
|
|
out_5969836594139851832[27] = 0;
|
|
|
|
|
out_5969836594139851832[28] = 0;
|
|
|
|
|
out_5969836594139851832[29] = 0;
|
|
|
|
|
out_5969836594139851832[30] = 1;
|
|
|
|
|
out_5969836594139851832[31] = 0;
|
|
|
|
|
out_5969836594139851832[32] = 0;
|
|
|
|
|
out_5969836594139851832[33] = 0;
|
|
|
|
|
out_5969836594139851832[34] = 0;
|
|
|
|
|
out_5969836594139851832[35] = 0;
|
|
|
|
|
out_5969836594139851832[36] = 0;
|
|
|
|
|
out_5969836594139851832[37] = 0;
|
|
|
|
|
out_5969836594139851832[38] = 0;
|
|
|
|
|
out_5969836594139851832[39] = 0;
|
|
|
|
|
out_5969836594139851832[40] = 1;
|
|
|
|
|
out_5969836594139851832[41] = 0;
|
|
|
|
|
out_5969836594139851832[42] = 0;
|
|
|
|
|
out_5969836594139851832[43] = 0;
|
|
|
|
|
out_5969836594139851832[44] = 0;
|
|
|
|
|
out_5969836594139851832[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_5969836594139851832[46] = -dt*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/pow(state[1], 2);
|
|
|
|
|
out_5969836594139851832[47] = -dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_5969836594139851832[48] = -dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_5969836594139851832[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_5969836594139851832[50] = dt*(-stiffness_front*state[0] - stiffness_rear*state[0])/state[4] + 1;
|
|
|
|
|
out_5969836594139851832[51] = dt*((-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/state[4] - state[4]);
|
|
|
|
|
out_5969836594139851832[52] = dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_5969836594139851832[53] = -9.8100000000000005*dt;
|
|
|
|
|
out_5969836594139851832[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_5969836594139851832[55] = -center_to_front*dt*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/(rotational_inertia*pow(state[1], 2));
|
|
|
|
|
out_5969836594139851832[56] = -center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_5969836594139851832[57] = -center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_5969836594139851832[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_5969836594139851832[59] = dt*(-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/(rotational_inertia*state[4]);
|
|
|
|
|
out_5969836594139851832[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_5969836594139851832[61] = center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_5969836594139851832[62] = 0;
|
|
|
|
|
out_5969836594139851832[63] = 0;
|
|
|
|
|
out_5969836594139851832[64] = 0;
|
|
|
|
|
out_5969836594139851832[65] = 0;
|
|
|
|
|
out_5969836594139851832[66] = 0;
|
|
|
|
|
out_5969836594139851832[67] = 0;
|
|
|
|
|
out_5969836594139851832[68] = 0;
|
|
|
|
|
out_5969836594139851832[69] = 0;
|
|
|
|
|
out_5969836594139851832[70] = 1;
|
|
|
|
|
out_5969836594139851832[71] = 0;
|
|
|
|
|
out_5969836594139851832[72] = 0;
|
|
|
|
|
out_5969836594139851832[73] = 0;
|
|
|
|
|
out_5969836594139851832[74] = 0;
|
|
|
|
|
out_5969836594139851832[75] = 0;
|
|
|
|
|
out_5969836594139851832[76] = 0;
|
|
|
|
|
out_5969836594139851832[77] = 0;
|
|
|
|
|
out_5969836594139851832[78] = 0;
|
|
|
|
|
out_5969836594139851832[79] = 0;
|
|
|
|
|
out_5969836594139851832[80] = 1;
|
|
|
|
|
void F_fun(double *state, double dt, double *out_9118730550037776269) {
|
|
|
|
|
out_9118730550037776269[0] = 1;
|
|
|
|
|
out_9118730550037776269[1] = 0;
|
|
|
|
|
out_9118730550037776269[2] = 0;
|
|
|
|
|
out_9118730550037776269[3] = 0;
|
|
|
|
|
out_9118730550037776269[4] = 0;
|
|
|
|
|
out_9118730550037776269[5] = 0;
|
|
|
|
|
out_9118730550037776269[6] = 0;
|
|
|
|
|
out_9118730550037776269[7] = 0;
|
|
|
|
|
out_9118730550037776269[8] = 0;
|
|
|
|
|
out_9118730550037776269[9] = 0;
|
|
|
|
|
out_9118730550037776269[10] = 1;
|
|
|
|
|
out_9118730550037776269[11] = 0;
|
|
|
|
|
out_9118730550037776269[12] = 0;
|
|
|
|
|
out_9118730550037776269[13] = 0;
|
|
|
|
|
out_9118730550037776269[14] = 0;
|
|
|
|
|
out_9118730550037776269[15] = 0;
|
|
|
|
|
out_9118730550037776269[16] = 0;
|
|
|
|
|
out_9118730550037776269[17] = 0;
|
|
|
|
|
out_9118730550037776269[18] = 0;
|
|
|
|
|
out_9118730550037776269[19] = 0;
|
|
|
|
|
out_9118730550037776269[20] = 1;
|
|
|
|
|
out_9118730550037776269[21] = 0;
|
|
|
|
|
out_9118730550037776269[22] = 0;
|
|
|
|
|
out_9118730550037776269[23] = 0;
|
|
|
|
|
out_9118730550037776269[24] = 0;
|
|
|
|
|
out_9118730550037776269[25] = 0;
|
|
|
|
|
out_9118730550037776269[26] = 0;
|
|
|
|
|
out_9118730550037776269[27] = 0;
|
|
|
|
|
out_9118730550037776269[28] = 0;
|
|
|
|
|
out_9118730550037776269[29] = 0;
|
|
|
|
|
out_9118730550037776269[30] = 1;
|
|
|
|
|
out_9118730550037776269[31] = 0;
|
|
|
|
|
out_9118730550037776269[32] = 0;
|
|
|
|
|
out_9118730550037776269[33] = 0;
|
|
|
|
|
out_9118730550037776269[34] = 0;
|
|
|
|
|
out_9118730550037776269[35] = 0;
|
|
|
|
|
out_9118730550037776269[36] = 0;
|
|
|
|
|
out_9118730550037776269[37] = 0;
|
|
|
|
|
out_9118730550037776269[38] = 0;
|
|
|
|
|
out_9118730550037776269[39] = 0;
|
|
|
|
|
out_9118730550037776269[40] = 1;
|
|
|
|
|
out_9118730550037776269[41] = 0;
|
|
|
|
|
out_9118730550037776269[42] = 0;
|
|
|
|
|
out_9118730550037776269[43] = 0;
|
|
|
|
|
out_9118730550037776269[44] = 0;
|
|
|
|
|
out_9118730550037776269[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_9118730550037776269[46] = -dt*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/pow(state[1], 2);
|
|
|
|
|
out_9118730550037776269[47] = -dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_9118730550037776269[48] = -dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_9118730550037776269[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_9118730550037776269[50] = dt*(-stiffness_front*state[0] - stiffness_rear*state[0])/state[4] + 1;
|
|
|
|
|
out_9118730550037776269[51] = dt*((-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/state[4] - state[4]);
|
|
|
|
|
out_9118730550037776269[52] = dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_9118730550037776269[53] = -9.8100000000000005*dt;
|
|
|
|
|
out_9118730550037776269[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_9118730550037776269[55] = -center_to_front*dt*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/(rotational_inertia*pow(state[1], 2));
|
|
|
|
|
out_9118730550037776269[56] = -center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_9118730550037776269[57] = -center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_9118730550037776269[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_9118730550037776269[59] = dt*(-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/(rotational_inertia*state[4]);
|
|
|
|
|
out_9118730550037776269[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_9118730550037776269[61] = center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_9118730550037776269[62] = 0;
|
|
|
|
|
out_9118730550037776269[63] = 0;
|
|
|
|
|
out_9118730550037776269[64] = 0;
|
|
|
|
|
out_9118730550037776269[65] = 0;
|
|
|
|
|
out_9118730550037776269[66] = 0;
|
|
|
|
|
out_9118730550037776269[67] = 0;
|
|
|
|
|
out_9118730550037776269[68] = 0;
|
|
|
|
|
out_9118730550037776269[69] = 0;
|
|
|
|
|
out_9118730550037776269[70] = 1;
|
|
|
|
|
out_9118730550037776269[71] = 0;
|
|
|
|
|
out_9118730550037776269[72] = 0;
|
|
|
|
|
out_9118730550037776269[73] = 0;
|
|
|
|
|
out_9118730550037776269[74] = 0;
|
|
|
|
|
out_9118730550037776269[75] = 0;
|
|
|
|
|
out_9118730550037776269[76] = 0;
|
|
|
|
|
out_9118730550037776269[77] = 0;
|
|
|
|
|
out_9118730550037776269[78] = 0;
|
|
|
|
|
out_9118730550037776269[79] = 0;
|
|
|
|
|
out_9118730550037776269[80] = 1;
|
|
|
|
|
}
|
|
|
|
|
void h_25(double *state, double *unused, double *out_7449703990463094150) {
|
|
|
|
|
out_7449703990463094150[0] = state[6];
|
|
|
|
|
void h_25(double *state, double *unused, double *out_7122489490265823164) {
|
|
|
|
|
out_7122489490265823164[0] = state[6];
|
|
|
|
|
}
|
|
|
|
|
void H_25(double *state, double *unused, double *out_2513226544937595926) {
|
|
|
|
|
out_2513226544937595926[0] = 0;
|
|
|
|
|
out_2513226544937595926[1] = 0;
|
|
|
|
|
out_2513226544937595926[2] = 0;
|
|
|
|
|
out_2513226544937595926[3] = 0;
|
|
|
|
|
out_2513226544937595926[4] = 0;
|
|
|
|
|
out_2513226544937595926[5] = 0;
|
|
|
|
|
out_2513226544937595926[6] = 1;
|
|
|
|
|
out_2513226544937595926[7] = 0;
|
|
|
|
|
out_2513226544937595926[8] = 0;
|
|
|
|
|
void H_25(double *state, double *unused, double *out_6821752007178854201) {
|
|
|
|
|
out_6821752007178854201[0] = 0;
|
|
|
|
|
out_6821752007178854201[1] = 0;
|
|
|
|
|
out_6821752007178854201[2] = 0;
|
|
|
|
|
out_6821752007178854201[3] = 0;
|
|
|
|
|
out_6821752007178854201[4] = 0;
|
|
|
|
|
out_6821752007178854201[5] = 0;
|
|
|
|
|
out_6821752007178854201[6] = 1;
|
|
|
|
|
out_6821752007178854201[7] = 0;
|
|
|
|
|
out_6821752007178854201[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_24(double *state, double *unused, double *out_5474242480159093147) {
|
|
|
|
|
out_5474242480159093147[0] = state[4];
|
|
|
|
|
out_5474242480159093147[1] = state[5];
|
|
|
|
|
void h_24(double *state, double *unused, double *out_8226117433674441840) {
|
|
|
|
|
out_8226117433674441840[0] = state[4];
|
|
|
|
|
out_8226117433674441840[1] = state[5];
|
|
|
|
|
}
|
|
|
|
|
void H_24(double *state, double *unused, double *out_340576945932096360) {
|
|
|
|
|
out_340576945932096360[0] = 0;
|
|
|
|
|
out_340576945932096360[1] = 0;
|
|
|
|
|
out_340576945932096360[2] = 0;
|
|
|
|
|
out_340576945932096360[3] = 0;
|
|
|
|
|
out_340576945932096360[4] = 1;
|
|
|
|
|
out_340576945932096360[5] = 0;
|
|
|
|
|
out_340576945932096360[6] = 0;
|
|
|
|
|
out_340576945932096360[7] = 0;
|
|
|
|
|
out_340576945932096360[8] = 0;
|
|
|
|
|
out_340576945932096360[9] = 0;
|
|
|
|
|
out_340576945932096360[10] = 0;
|
|
|
|
|
out_340576945932096360[11] = 0;
|
|
|
|
|
out_340576945932096360[12] = 0;
|
|
|
|
|
out_340576945932096360[13] = 0;
|
|
|
|
|
out_340576945932096360[14] = 1;
|
|
|
|
|
out_340576945932096360[15] = 0;
|
|
|
|
|
out_340576945932096360[16] = 0;
|
|
|
|
|
out_340576945932096360[17] = 0;
|
|
|
|
|
void H_24(double *state, double *unused, double *out_7642668915132929517) {
|
|
|
|
|
out_7642668915132929517[0] = 0;
|
|
|
|
|
out_7642668915132929517[1] = 0;
|
|
|
|
|
out_7642668915132929517[2] = 0;
|
|
|
|
|
out_7642668915132929517[3] = 0;
|
|
|
|
|
out_7642668915132929517[4] = 1;
|
|
|
|
|
out_7642668915132929517[5] = 0;
|
|
|
|
|
out_7642668915132929517[6] = 0;
|
|
|
|
|
out_7642668915132929517[7] = 0;
|
|
|
|
|
out_7642668915132929517[8] = 0;
|
|
|
|
|
out_7642668915132929517[9] = 0;
|
|
|
|
|
out_7642668915132929517[10] = 0;
|
|
|
|
|
out_7642668915132929517[11] = 0;
|
|
|
|
|
out_7642668915132929517[12] = 0;
|
|
|
|
|
out_7642668915132929517[13] = 0;
|
|
|
|
|
out_7642668915132929517[14] = 1;
|
|
|
|
|
out_7642668915132929517[15] = 0;
|
|
|
|
|
out_7642668915132929517[16] = 0;
|
|
|
|
|
out_7642668915132929517[17] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_30(double *state, double *unused, double *out_3233774826425785025) {
|
|
|
|
|
out_3233774826425785025[0] = state[4];
|
|
|
|
|
void h_30(double *state, double *unused, double *out_4960660605141912591) {
|
|
|
|
|
out_4960660605141912591[0] = state[4];
|
|
|
|
|
}
|
|
|
|
|
void H_30(double *state, double *unused, double *out_9016827187280338935) {
|
|
|
|
|
out_9016827187280338935[0] = 0;
|
|
|
|
|
out_9016827187280338935[1] = 0;
|
|
|
|
|
out_9016827187280338935[2] = 0;
|
|
|
|
|
out_9016827187280338935[3] = 0;
|
|
|
|
|
out_9016827187280338935[4] = 1;
|
|
|
|
|
out_9016827187280338935[5] = 0;
|
|
|
|
|
out_9016827187280338935[6] = 0;
|
|
|
|
|
out_9016827187280338935[7] = 0;
|
|
|
|
|
out_9016827187280338935[8] = 0;
|
|
|
|
|
void H_30(double *state, double *unused, double *out_94938334312762554) {
|
|
|
|
|
out_94938334312762554[0] = 0;
|
|
|
|
|
out_94938334312762554[1] = 0;
|
|
|
|
|
out_94938334312762554[2] = 0;
|
|
|
|
|
out_94938334312762554[3] = 0;
|
|
|
|
|
out_94938334312762554[4] = 1;
|
|
|
|
|
out_94938334312762554[5] = 0;
|
|
|
|
|
out_94938334312762554[6] = 0;
|
|
|
|
|
out_94938334312762554[7] = 0;
|
|
|
|
|
out_94938334312762554[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_26(double *state, double *unused, double *out_8813927729869917445) {
|
|
|
|
|
out_8813927729869917445[0] = state[7];
|
|
|
|
|
void h_26(double *state, double *unused, double *out_2356255284333214940) {
|
|
|
|
|
out_2356255284333214940[0] = state[7];
|
|
|
|
|
}
|
|
|
|
|
void H_26(double *state, double *unused, double *out_1228276773936460298) {
|
|
|
|
|
out_1228276773936460298[0] = 0;
|
|
|
|
|
out_1228276773936460298[1] = 0;
|
|
|
|
|
out_1228276773936460298[2] = 0;
|
|
|
|
|
out_1228276773936460298[3] = 0;
|
|
|
|
|
out_1228276773936460298[4] = 0;
|
|
|
|
|
out_1228276773936460298[5] = 0;
|
|
|
|
|
out_1228276773936460298[6] = 0;
|
|
|
|
|
out_1228276773936460298[7] = 1;
|
|
|
|
|
out_1228276773936460298[8] = 0;
|
|
|
|
|
void H_26(double *state, double *unused, double *out_3517226037418053600) {
|
|
|
|
|
out_3517226037418053600[0] = 0;
|
|
|
|
|
out_3517226037418053600[1] = 0;
|
|
|
|
|
out_3517226037418053600[2] = 0;
|
|
|
|
|
out_3517226037418053600[3] = 0;
|
|
|
|
|
out_3517226037418053600[4] = 0;
|
|
|
|
|
out_3517226037418053600[5] = 0;
|
|
|
|
|
out_3517226037418053600[6] = 0;
|
|
|
|
|
out_3517226037418053600[7] = 1;
|
|
|
|
|
out_3517226037418053600[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_27(double *state, double *unused, double *out_1268132929405598176) {
|
|
|
|
|
out_1268132929405598176[0] = state[3];
|
|
|
|
|
void h_27(double *state, double *unused, double *out_1556388306205313299) {
|
|
|
|
|
out_1556388306205313299[0] = state[3];
|
|
|
|
|
}
|
|
|
|
|
void H_27(double *state, double *unused, double *out_209124285993930945) {
|
|
|
|
|
out_209124285993930945[0] = 0;
|
|
|
|
|
out_209124285993930945[1] = 0;
|
|
|
|
|
out_209124285993930945[2] = 0;
|
|
|
|
|
out_209124285993930945[3] = 1;
|
|
|
|
|
out_209124285993930945[4] = 0;
|
|
|
|
|
out_209124285993930945[5] = 0;
|
|
|
|
|
out_209124285993930945[6] = 0;
|
|
|
|
|
out_209124285993930945[7] = 0;
|
|
|
|
|
out_209124285993930945[8] = 0;
|
|
|
|
|
void H_27(double *state, double *unused, double *out_2079824977487662357) {
|
|
|
|
|
out_2079824977487662357[0] = 0;
|
|
|
|
|
out_2079824977487662357[1] = 0;
|
|
|
|
|
out_2079824977487662357[2] = 0;
|
|
|
|
|
out_2079824977487662357[3] = 1;
|
|
|
|
|
out_2079824977487662357[4] = 0;
|
|
|
|
|
out_2079824977487662357[5] = 0;
|
|
|
|
|
out_2079824977487662357[6] = 0;
|
|
|
|
|
out_2079824977487662357[7] = 0;
|
|
|
|
|
out_2079824977487662357[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_29(double *state, double *unused, double *out_3837090711102262542) {
|
|
|
|
|
out_3837090711102262542[0] = state[1];
|
|
|
|
|
void h_29(double *state, double *unused, double *out_4504114296560798260) {
|
|
|
|
|
out_4504114296560798260[0] = state[1];
|
|
|
|
|
}
|
|
|
|
|
void H_29(double *state, double *unused, double *out_1504238440875620088) {
|
|
|
|
|
out_1504238440875620088[0] = 0;
|
|
|
|
|
out_1504238440875620088[1] = 1;
|
|
|
|
|
out_1504238440875620088[2] = 0;
|
|
|
|
|
out_1504238440875620088[3] = 0;
|
|
|
|
|
out_1504238440875620088[4] = 0;
|
|
|
|
|
out_1504238440875620088[5] = 0;
|
|
|
|
|
out_1504238440875620088[6] = 0;
|
|
|
|
|
out_1504238440875620088[7] = 0;
|
|
|
|
|
out_1504238440875620088[8] = 0;
|
|
|
|
|
void H_29(double *state, double *unused, double *out_605169678627154738) {
|
|
|
|
|
out_605169678627154738[0] = 0;
|
|
|
|
|
out_605169678627154738[1] = 1;
|
|
|
|
|
out_605169678627154738[2] = 0;
|
|
|
|
|
out_605169678627154738[3] = 0;
|
|
|
|
|
out_605169678627154738[4] = 0;
|
|
|
|
|
out_605169678627154738[5] = 0;
|
|
|
|
|
out_605169678627154738[6] = 0;
|
|
|
|
|
out_605169678627154738[7] = 0;
|
|
|
|
|
out_605169678627154738[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_28(double *state, double *unused, double *out_2618386795916094218) {
|
|
|
|
|
out_2618386795916094218[0] = state[0];
|
|
|
|
|
void h_28(double *state, double *unused, double *out_4842653211208535847) {
|
|
|
|
|
out_4842653211208535847[0] = state[0];
|
|
|
|
|
}
|
|
|
|
|
void H_28(double *state, double *unused, double *out_459391830689706163) {
|
|
|
|
|
out_459391830689706163[0] = 1;
|
|
|
|
|
out_459391830689706163[1] = 0;
|
|
|
|
|
out_459391830689706163[2] = 0;
|
|
|
|
|
out_459391830689706163[3] = 0;
|
|
|
|
|
out_459391830689706163[4] = 0;
|
|
|
|
|
out_459391830689706163[5] = 0;
|
|
|
|
|
out_459391830689706163[6] = 0;
|
|
|
|
|
out_459391830689706163[7] = 0;
|
|
|
|
|
out_459391830689706163[8] = 0;
|
|
|
|
|
void H_28(double *state, double *unused, double *out_4477229338442375836) {
|
|
|
|
|
out_4477229338442375836[0] = 1;
|
|
|
|
|
out_4477229338442375836[1] = 0;
|
|
|
|
|
out_4477229338442375836[2] = 0;
|
|
|
|
|
out_4477229338442375836[3] = 0;
|
|
|
|
|
out_4477229338442375836[4] = 0;
|
|
|
|
|
out_4477229338442375836[5] = 0;
|
|
|
|
|
out_4477229338442375836[6] = 0;
|
|
|
|
|
out_4477229338442375836[7] = 0;
|
|
|
|
|
out_4477229338442375836[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_31(double *state, double *unused, double *out_10854773785794175) {
|
|
|
|
|
out_10854773785794175[0] = state[8];
|
|
|
|
|
void h_31(double *state, double *unused, double *out_2684377106725186568) {
|
|
|
|
|
out_2684377106725186568[0] = state[8];
|
|
|
|
|
}
|
|
|
|
|
void H_31(double *state, double *unused, double *out_2543872506814556354) {
|
|
|
|
|
out_2543872506814556354[0] = 0;
|
|
|
|
|
out_2543872506814556354[1] = 0;
|
|
|
|
|
out_2543872506814556354[2] = 0;
|
|
|
|
|
out_2543872506814556354[3] = 0;
|
|
|
|
|
out_2543872506814556354[4] = 0;
|
|
|
|
|
out_2543872506814556354[5] = 0;
|
|
|
|
|
out_2543872506814556354[6] = 0;
|
|
|
|
|
out_2543872506814556354[7] = 0;
|
|
|
|
|
out_2543872506814556354[8] = 1;
|
|
|
|
|
void H_31(double *state, double *unused, double *out_254923243332963052) {
|
|
|
|
|
out_254923243332963052[0] = 0;
|
|
|
|
|
out_254923243332963052[1] = 0;
|
|
|
|
|
out_254923243332963052[2] = 0;
|
|
|
|
|
out_254923243332963052[3] = 0;
|
|
|
|
|
out_254923243332963052[4] = 0;
|
|
|
|
|
out_254923243332963052[5] = 0;
|
|
|
|
|
out_254923243332963052[6] = 0;
|
|
|
|
|
out_254923243332963052[7] = 0;
|
|
|
|
|
out_254923243332963052[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_4232117113001801558) {
|
|
|
|
|
err_fun(nom_x, delta_x, out_4232117113001801558);
|
|
|
|
|
void car_err_fun(double *nom_x, double *delta_x, double *out_8240421491563361240) {
|
|
|
|
|
err_fun(nom_x, delta_x, out_8240421491563361240);
|
|
|
|
|
}
|
|
|
|
|
void car_inv_err_fun(double *nom_x, double *true_x, double *out_2064017399846263425) {
|
|
|
|
|
inv_err_fun(nom_x, true_x, out_2064017399846263425);
|
|
|
|
|
void car_inv_err_fun(double *nom_x, double *true_x, double *out_6914926822647590994) {
|
|
|
|
|
inv_err_fun(nom_x, true_x, out_6914926822647590994);
|
|
|
|
|
}
|
|
|
|
|
void car_H_mod_fun(double *state, double *out_6740329302859718453) {
|
|
|
|
|
H_mod_fun(state, out_6740329302859718453);
|
|
|
|
|
void car_H_mod_fun(double *state, double *out_561762666341114704) {
|
|
|
|
|
H_mod_fun(state, out_561762666341114704);
|
|
|
|
|
}
|
|
|
|
|
void car_f_fun(double *state, double dt, double *out_3823423380361413797) {
|
|
|
|
|
f_fun(state, dt, out_3823423380361413797);
|
|
|
|
|
void car_f_fun(double *state, double dt, double *out_501741451878738685) {
|
|
|
|
|
f_fun(state, dt, out_501741451878738685);
|
|
|
|
|
}
|
|
|
|
|
void car_F_fun(double *state, double dt, double *out_5969836594139851832) {
|
|
|
|
|
F_fun(state, dt, out_5969836594139851832);
|
|
|
|
|
void car_F_fun(double *state, double dt, double *out_9118730550037776269) {
|
|
|
|
|
F_fun(state, dt, out_9118730550037776269);
|
|
|
|
|
}
|
|
|
|
|
void car_h_25(double *state, double *unused, double *out_7449703990463094150) {
|
|
|
|
|
h_25(state, unused, out_7449703990463094150);
|
|
|
|
|
void car_h_25(double *state, double *unused, double *out_7122489490265823164) {
|
|
|
|
|
h_25(state, unused, out_7122489490265823164);
|
|
|
|
|
}
|
|
|
|
|
void car_H_25(double *state, double *unused, double *out_2513226544937595926) {
|
|
|
|
|
H_25(state, unused, out_2513226544937595926);
|
|
|
|
|
void car_H_25(double *state, double *unused, double *out_6821752007178854201) {
|
|
|
|
|
H_25(state, unused, out_6821752007178854201);
|
|
|
|
|
}
|
|
|
|
|
void car_h_24(double *state, double *unused, double *out_5474242480159093147) {
|
|
|
|
|
h_24(state, unused, out_5474242480159093147);
|
|
|
|
|
void car_h_24(double *state, double *unused, double *out_8226117433674441840) {
|
|
|
|
|
h_24(state, unused, out_8226117433674441840);
|
|
|
|
|
}
|
|
|
|
|
void car_H_24(double *state, double *unused, double *out_340576945932096360) {
|
|
|
|
|
H_24(state, unused, out_340576945932096360);
|
|
|
|
|
void car_H_24(double *state, double *unused, double *out_7642668915132929517) {
|
|
|
|
|
H_24(state, unused, out_7642668915132929517);
|
|
|
|
|
}
|
|
|
|
|
void car_h_30(double *state, double *unused, double *out_3233774826425785025) {
|
|
|
|
|
h_30(state, unused, out_3233774826425785025);
|
|
|
|
|
void car_h_30(double *state, double *unused, double *out_4960660605141912591) {
|
|
|
|
|
h_30(state, unused, out_4960660605141912591);
|
|
|
|
|
}
|
|
|
|
|
void car_H_30(double *state, double *unused, double *out_9016827187280338935) {
|
|
|
|
|
H_30(state, unused, out_9016827187280338935);
|
|
|
|
|
void car_H_30(double *state, double *unused, double *out_94938334312762554) {
|
|
|
|
|
H_30(state, unused, out_94938334312762554);
|
|
|
|
|
}
|
|
|
|
|
void car_h_26(double *state, double *unused, double *out_8813927729869917445) {
|
|
|
|
|
h_26(state, unused, out_8813927729869917445);
|
|
|
|
|
void car_h_26(double *state, double *unused, double *out_2356255284333214940) {
|
|
|
|
|
h_26(state, unused, out_2356255284333214940);
|
|
|
|
|
}
|
|
|
|
|
void car_H_26(double *state, double *unused, double *out_1228276773936460298) {
|
|
|
|
|
H_26(state, unused, out_1228276773936460298);
|
|
|
|
|
void car_H_26(double *state, double *unused, double *out_3517226037418053600) {
|
|
|
|
|
H_26(state, unused, out_3517226037418053600);
|
|
|
|
|
}
|
|
|
|
|
void car_h_27(double *state, double *unused, double *out_1268132929405598176) {
|
|
|
|
|
h_27(state, unused, out_1268132929405598176);
|
|
|
|
|
void car_h_27(double *state, double *unused, double *out_1556388306205313299) {
|
|
|
|
|
h_27(state, unused, out_1556388306205313299);
|
|
|
|
|
}
|
|
|
|
|
void car_H_27(double *state, double *unused, double *out_209124285993930945) {
|
|
|
|
|
H_27(state, unused, out_209124285993930945);
|
|
|
|
|
void car_H_27(double *state, double *unused, double *out_2079824977487662357) {
|
|
|
|
|
H_27(state, unused, out_2079824977487662357);
|
|
|
|
|
}
|
|
|
|
|
void car_h_29(double *state, double *unused, double *out_3837090711102262542) {
|
|
|
|
|
h_29(state, unused, out_3837090711102262542);
|
|
|
|
|
void car_h_29(double *state, double *unused, double *out_4504114296560798260) {
|
|
|
|
|
h_29(state, unused, out_4504114296560798260);
|
|
|
|
|
}
|
|
|
|
|
void car_H_29(double *state, double *unused, double *out_1504238440875620088) {
|
|
|
|
|
H_29(state, unused, out_1504238440875620088);
|
|
|
|
|
void car_H_29(double *state, double *unused, double *out_605169678627154738) {
|
|
|
|
|
H_29(state, unused, out_605169678627154738);
|
|
|
|
|
}
|
|
|
|
|
void car_h_28(double *state, double *unused, double *out_2618386795916094218) {
|
|
|
|
|
h_28(state, unused, out_2618386795916094218);
|
|
|
|
|
void car_h_28(double *state, double *unused, double *out_4842653211208535847) {
|
|
|
|
|
h_28(state, unused, out_4842653211208535847);
|
|
|
|
|
}
|
|
|
|
|
void car_H_28(double *state, double *unused, double *out_459391830689706163) {
|
|
|
|
|
H_28(state, unused, out_459391830689706163);
|
|
|
|
|
void car_H_28(double *state, double *unused, double *out_4477229338442375836) {
|
|
|
|
|
H_28(state, unused, out_4477229338442375836);
|
|
|
|
|
}
|
|
|
|
|
void car_h_31(double *state, double *unused, double *out_10854773785794175) {
|
|
|
|
|
h_31(state, unused, out_10854773785794175);
|
|
|
|
|
void car_h_31(double *state, double *unused, double *out_2684377106725186568) {
|
|
|
|
|
h_31(state, unused, out_2684377106725186568);
|
|
|
|
|
}
|
|
|
|
|
void car_H_31(double *state, double *unused, double *out_2543872506814556354) {
|
|
|
|
|
H_31(state, unused, out_2543872506814556354);
|
|
|
|
|
void car_H_31(double *state, double *unused, double *out_254923243332963052) {
|
|
|
|
|
H_31(state, unused, out_254923243332963052);
|
|
|
|
|
}
|
|
|
|
|
void car_predict(double *in_x, double *in_P, double *in_Q, double dt) {
|
|
|
|
|
predict(in_x, in_P, in_Q, dt);
|
|
|
|
|