|
|
|
@@ -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_8734738848718453580) {
|
|
|
|
|
out_8734738848718453580[0] = delta_x[0] + nom_x[0];
|
|
|
|
|
out_8734738848718453580[1] = delta_x[1] + nom_x[1];
|
|
|
|
|
out_8734738848718453580[2] = delta_x[2] + nom_x[2];
|
|
|
|
|
out_8734738848718453580[3] = delta_x[3] + nom_x[3];
|
|
|
|
|
out_8734738848718453580[4] = delta_x[4] + nom_x[4];
|
|
|
|
|
out_8734738848718453580[5] = delta_x[5] + nom_x[5];
|
|
|
|
|
out_8734738848718453580[6] = delta_x[6] + nom_x[6];
|
|
|
|
|
out_8734738848718453580[7] = delta_x[7] + nom_x[7];
|
|
|
|
|
out_8734738848718453580[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_345708709643416341) {
|
|
|
|
|
out_345708709643416341[0] = -nom_x[0] + true_x[0];
|
|
|
|
|
out_345708709643416341[1] = -nom_x[1] + true_x[1];
|
|
|
|
|
out_345708709643416341[2] = -nom_x[2] + true_x[2];
|
|
|
|
|
out_345708709643416341[3] = -nom_x[3] + true_x[3];
|
|
|
|
|
out_345708709643416341[4] = -nom_x[4] + true_x[4];
|
|
|
|
|
out_345708709643416341[5] = -nom_x[5] + true_x[5];
|
|
|
|
|
out_345708709643416341[6] = -nom_x[6] + true_x[6];
|
|
|
|
|
out_345708709643416341[7] = -nom_x[7] + true_x[7];
|
|
|
|
|
out_345708709643416341[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_5821266491637270808) {
|
|
|
|
|
out_5821266491637270808[0] = 1.0;
|
|
|
|
|
out_5821266491637270808[1] = 0.0;
|
|
|
|
|
out_5821266491637270808[2] = 0.0;
|
|
|
|
|
out_5821266491637270808[3] = 0.0;
|
|
|
|
|
out_5821266491637270808[4] = 0.0;
|
|
|
|
|
out_5821266491637270808[5] = 0.0;
|
|
|
|
|
out_5821266491637270808[6] = 0.0;
|
|
|
|
|
out_5821266491637270808[7] = 0.0;
|
|
|
|
|
out_5821266491637270808[8] = 0.0;
|
|
|
|
|
out_5821266491637270808[9] = 0.0;
|
|
|
|
|
out_5821266491637270808[10] = 1.0;
|
|
|
|
|
out_5821266491637270808[11] = 0.0;
|
|
|
|
|
out_5821266491637270808[12] = 0.0;
|
|
|
|
|
out_5821266491637270808[13] = 0.0;
|
|
|
|
|
out_5821266491637270808[14] = 0.0;
|
|
|
|
|
out_5821266491637270808[15] = 0.0;
|
|
|
|
|
out_5821266491637270808[16] = 0.0;
|
|
|
|
|
out_5821266491637270808[17] = 0.0;
|
|
|
|
|
out_5821266491637270808[18] = 0.0;
|
|
|
|
|
out_5821266491637270808[19] = 0.0;
|
|
|
|
|
out_5821266491637270808[20] = 1.0;
|
|
|
|
|
out_5821266491637270808[21] = 0.0;
|
|
|
|
|
out_5821266491637270808[22] = 0.0;
|
|
|
|
|
out_5821266491637270808[23] = 0.0;
|
|
|
|
|
out_5821266491637270808[24] = 0.0;
|
|
|
|
|
out_5821266491637270808[25] = 0.0;
|
|
|
|
|
out_5821266491637270808[26] = 0.0;
|
|
|
|
|
out_5821266491637270808[27] = 0.0;
|
|
|
|
|
out_5821266491637270808[28] = 0.0;
|
|
|
|
|
out_5821266491637270808[29] = 0.0;
|
|
|
|
|
out_5821266491637270808[30] = 1.0;
|
|
|
|
|
out_5821266491637270808[31] = 0.0;
|
|
|
|
|
out_5821266491637270808[32] = 0.0;
|
|
|
|
|
out_5821266491637270808[33] = 0.0;
|
|
|
|
|
out_5821266491637270808[34] = 0.0;
|
|
|
|
|
out_5821266491637270808[35] = 0.0;
|
|
|
|
|
out_5821266491637270808[36] = 0.0;
|
|
|
|
|
out_5821266491637270808[37] = 0.0;
|
|
|
|
|
out_5821266491637270808[38] = 0.0;
|
|
|
|
|
out_5821266491637270808[39] = 0.0;
|
|
|
|
|
out_5821266491637270808[40] = 1.0;
|
|
|
|
|
out_5821266491637270808[41] = 0.0;
|
|
|
|
|
out_5821266491637270808[42] = 0.0;
|
|
|
|
|
out_5821266491637270808[43] = 0.0;
|
|
|
|
|
out_5821266491637270808[44] = 0.0;
|
|
|
|
|
out_5821266491637270808[45] = 0.0;
|
|
|
|
|
out_5821266491637270808[46] = 0.0;
|
|
|
|
|
out_5821266491637270808[47] = 0.0;
|
|
|
|
|
out_5821266491637270808[48] = 0.0;
|
|
|
|
|
out_5821266491637270808[49] = 0.0;
|
|
|
|
|
out_5821266491637270808[50] = 1.0;
|
|
|
|
|
out_5821266491637270808[51] = 0.0;
|
|
|
|
|
out_5821266491637270808[52] = 0.0;
|
|
|
|
|
out_5821266491637270808[53] = 0.0;
|
|
|
|
|
out_5821266491637270808[54] = 0.0;
|
|
|
|
|
out_5821266491637270808[55] = 0.0;
|
|
|
|
|
out_5821266491637270808[56] = 0.0;
|
|
|
|
|
out_5821266491637270808[57] = 0.0;
|
|
|
|
|
out_5821266491637270808[58] = 0.0;
|
|
|
|
|
out_5821266491637270808[59] = 0.0;
|
|
|
|
|
out_5821266491637270808[60] = 1.0;
|
|
|
|
|
out_5821266491637270808[61] = 0.0;
|
|
|
|
|
out_5821266491637270808[62] = 0.0;
|
|
|
|
|
out_5821266491637270808[63] = 0.0;
|
|
|
|
|
out_5821266491637270808[64] = 0.0;
|
|
|
|
|
out_5821266491637270808[65] = 0.0;
|
|
|
|
|
out_5821266491637270808[66] = 0.0;
|
|
|
|
|
out_5821266491637270808[67] = 0.0;
|
|
|
|
|
out_5821266491637270808[68] = 0.0;
|
|
|
|
|
out_5821266491637270808[69] = 0.0;
|
|
|
|
|
out_5821266491637270808[70] = 1.0;
|
|
|
|
|
out_5821266491637270808[71] = 0.0;
|
|
|
|
|
out_5821266491637270808[72] = 0.0;
|
|
|
|
|
out_5821266491637270808[73] = 0.0;
|
|
|
|
|
out_5821266491637270808[74] = 0.0;
|
|
|
|
|
out_5821266491637270808[75] = 0.0;
|
|
|
|
|
out_5821266491637270808[76] = 0.0;
|
|
|
|
|
out_5821266491637270808[77] = 0.0;
|
|
|
|
|
out_5821266491637270808[78] = 0.0;
|
|
|
|
|
out_5821266491637270808[79] = 0.0;
|
|
|
|
|
out_5821266491637270808[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_3387439539554904049) {
|
|
|
|
|
out_3387439539554904049[0] = state[0];
|
|
|
|
|
out_3387439539554904049[1] = state[1];
|
|
|
|
|
out_3387439539554904049[2] = state[2];
|
|
|
|
|
out_3387439539554904049[3] = state[3];
|
|
|
|
|
out_3387439539554904049[4] = state[4];
|
|
|
|
|
out_3387439539554904049[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_3387439539554904049[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_3387439539554904049[7] = state[7];
|
|
|
|
|
out_3387439539554904049[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_8369111513492043604) {
|
|
|
|
|
out_8369111513492043604[0] = 1;
|
|
|
|
|
out_8369111513492043604[1] = 0;
|
|
|
|
|
out_8369111513492043604[2] = 0;
|
|
|
|
|
out_8369111513492043604[3] = 0;
|
|
|
|
|
out_8369111513492043604[4] = 0;
|
|
|
|
|
out_8369111513492043604[5] = 0;
|
|
|
|
|
out_8369111513492043604[6] = 0;
|
|
|
|
|
out_8369111513492043604[7] = 0;
|
|
|
|
|
out_8369111513492043604[8] = 0;
|
|
|
|
|
out_8369111513492043604[9] = 0;
|
|
|
|
|
out_8369111513492043604[10] = 1;
|
|
|
|
|
out_8369111513492043604[11] = 0;
|
|
|
|
|
out_8369111513492043604[12] = 0;
|
|
|
|
|
out_8369111513492043604[13] = 0;
|
|
|
|
|
out_8369111513492043604[14] = 0;
|
|
|
|
|
out_8369111513492043604[15] = 0;
|
|
|
|
|
out_8369111513492043604[16] = 0;
|
|
|
|
|
out_8369111513492043604[17] = 0;
|
|
|
|
|
out_8369111513492043604[18] = 0;
|
|
|
|
|
out_8369111513492043604[19] = 0;
|
|
|
|
|
out_8369111513492043604[20] = 1;
|
|
|
|
|
out_8369111513492043604[21] = 0;
|
|
|
|
|
out_8369111513492043604[22] = 0;
|
|
|
|
|
out_8369111513492043604[23] = 0;
|
|
|
|
|
out_8369111513492043604[24] = 0;
|
|
|
|
|
out_8369111513492043604[25] = 0;
|
|
|
|
|
out_8369111513492043604[26] = 0;
|
|
|
|
|
out_8369111513492043604[27] = 0;
|
|
|
|
|
out_8369111513492043604[28] = 0;
|
|
|
|
|
out_8369111513492043604[29] = 0;
|
|
|
|
|
out_8369111513492043604[30] = 1;
|
|
|
|
|
out_8369111513492043604[31] = 0;
|
|
|
|
|
out_8369111513492043604[32] = 0;
|
|
|
|
|
out_8369111513492043604[33] = 0;
|
|
|
|
|
out_8369111513492043604[34] = 0;
|
|
|
|
|
out_8369111513492043604[35] = 0;
|
|
|
|
|
out_8369111513492043604[36] = 0;
|
|
|
|
|
out_8369111513492043604[37] = 0;
|
|
|
|
|
out_8369111513492043604[38] = 0;
|
|
|
|
|
out_8369111513492043604[39] = 0;
|
|
|
|
|
out_8369111513492043604[40] = 1;
|
|
|
|
|
out_8369111513492043604[41] = 0;
|
|
|
|
|
out_8369111513492043604[42] = 0;
|
|
|
|
|
out_8369111513492043604[43] = 0;
|
|
|
|
|
out_8369111513492043604[44] = 0;
|
|
|
|
|
out_8369111513492043604[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_8369111513492043604[46] = -dt*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/pow(state[1], 2);
|
|
|
|
|
out_8369111513492043604[47] = -dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_8369111513492043604[48] = -dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_8369111513492043604[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_8369111513492043604[50] = dt*(-stiffness_front*state[0] - stiffness_rear*state[0])/state[4] + 1;
|
|
|
|
|
out_8369111513492043604[51] = dt*((-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/state[4] - state[4]);
|
|
|
|
|
out_8369111513492043604[52] = dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_8369111513492043604[53] = -9.8100000000000005*dt;
|
|
|
|
|
out_8369111513492043604[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_8369111513492043604[55] = -center_to_front*dt*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/(rotational_inertia*pow(state[1], 2));
|
|
|
|
|
out_8369111513492043604[56] = -center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_8369111513492043604[57] = -center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_8369111513492043604[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_8369111513492043604[59] = dt*(-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/(rotational_inertia*state[4]);
|
|
|
|
|
out_8369111513492043604[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_8369111513492043604[61] = center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_8369111513492043604[62] = 0;
|
|
|
|
|
out_8369111513492043604[63] = 0;
|
|
|
|
|
out_8369111513492043604[64] = 0;
|
|
|
|
|
out_8369111513492043604[65] = 0;
|
|
|
|
|
out_8369111513492043604[66] = 0;
|
|
|
|
|
out_8369111513492043604[67] = 0;
|
|
|
|
|
out_8369111513492043604[68] = 0;
|
|
|
|
|
out_8369111513492043604[69] = 0;
|
|
|
|
|
out_8369111513492043604[70] = 1;
|
|
|
|
|
out_8369111513492043604[71] = 0;
|
|
|
|
|
out_8369111513492043604[72] = 0;
|
|
|
|
|
out_8369111513492043604[73] = 0;
|
|
|
|
|
out_8369111513492043604[74] = 0;
|
|
|
|
|
out_8369111513492043604[75] = 0;
|
|
|
|
|
out_8369111513492043604[76] = 0;
|
|
|
|
|
out_8369111513492043604[77] = 0;
|
|
|
|
|
out_8369111513492043604[78] = 0;
|
|
|
|
|
out_8369111513492043604[79] = 0;
|
|
|
|
|
out_8369111513492043604[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_5891460449335522331) {
|
|
|
|
|
out_5891460449335522331[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_2100071541336588997) {
|
|
|
|
|
out_2100071541336588997[0] = 0;
|
|
|
|
|
out_2100071541336588997[1] = 0;
|
|
|
|
|
out_2100071541336588997[2] = 0;
|
|
|
|
|
out_2100071541336588997[3] = 0;
|
|
|
|
|
out_2100071541336588997[4] = 0;
|
|
|
|
|
out_2100071541336588997[5] = 0;
|
|
|
|
|
out_2100071541336588997[6] = 1;
|
|
|
|
|
out_2100071541336588997[7] = 0;
|
|
|
|
|
out_2100071541336588997[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_4507289012395459306) {
|
|
|
|
|
out_4507289012395459306[0] = state[4];
|
|
|
|
|
out_4507289012395459306[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_5657997140138912133) {
|
|
|
|
|
out_5657997140138912133[0] = 0;
|
|
|
|
|
out_5657997140138912133[1] = 0;
|
|
|
|
|
out_5657997140138912133[2] = 0;
|
|
|
|
|
out_5657997140138912133[3] = 0;
|
|
|
|
|
out_5657997140138912133[4] = 1;
|
|
|
|
|
out_5657997140138912133[5] = 0;
|
|
|
|
|
out_5657997140138912133[6] = 0;
|
|
|
|
|
out_5657997140138912133[7] = 0;
|
|
|
|
|
out_5657997140138912133[8] = 0;
|
|
|
|
|
out_5657997140138912133[9] = 0;
|
|
|
|
|
out_5657997140138912133[10] = 0;
|
|
|
|
|
out_5657997140138912133[11] = 0;
|
|
|
|
|
out_5657997140138912133[12] = 0;
|
|
|
|
|
out_5657997140138912133[13] = 0;
|
|
|
|
|
out_5657997140138912133[14] = 1;
|
|
|
|
|
out_5657997140138912133[15] = 0;
|
|
|
|
|
out_5657997140138912133[16] = 0;
|
|
|
|
|
out_5657997140138912133[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_8060731896440404372) {
|
|
|
|
|
out_8060731896440404372[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_2427624788791019201) {
|
|
|
|
|
out_2427624788791019201[0] = 0;
|
|
|
|
|
out_2427624788791019201[1] = 0;
|
|
|
|
|
out_2427624788791019201[2] = 0;
|
|
|
|
|
out_2427624788791019201[3] = 0;
|
|
|
|
|
out_2427624788791019201[4] = 1;
|
|
|
|
|
out_2427624788791019201[5] = 0;
|
|
|
|
|
out_2427624788791019201[6] = 0;
|
|
|
|
|
out_2427624788791019201[7] = 0;
|
|
|
|
|
out_2427624788791019201[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_7110164364521690655) {
|
|
|
|
|
out_7110164364521690655[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_1641431777537467227) {
|
|
|
|
|
out_1641431777537467227[0] = 0;
|
|
|
|
|
out_1641431777537467227[1] = 0;
|
|
|
|
|
out_1641431777537467227[2] = 0;
|
|
|
|
|
out_1641431777537467227[3] = 0;
|
|
|
|
|
out_1641431777537467227[4] = 0;
|
|
|
|
|
out_1641431777537467227[5] = 0;
|
|
|
|
|
out_1641431777537467227[6] = 0;
|
|
|
|
|
out_1641431777537467227[7] = 1;
|
|
|
|
|
out_1641431777537467227[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_6494776334011999848) {
|
|
|
|
|
out_6494776334011999848[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_4602388100591444112) {
|
|
|
|
|
out_4602388100591444112[0] = 0;
|
|
|
|
|
out_4602388100591444112[1] = 0;
|
|
|
|
|
out_4602388100591444112[2] = 0;
|
|
|
|
|
out_4602388100591444112[3] = 1;
|
|
|
|
|
out_4602388100591444112[4] = 0;
|
|
|
|
|
out_4602388100591444112[5] = 0;
|
|
|
|
|
out_4602388100591444112[6] = 0;
|
|
|
|
|
out_4602388100591444112[7] = 0;
|
|
|
|
|
out_4602388100591444112[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_1268488922808672593) {
|
|
|
|
|
out_1268488922808672593[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_1917393444476627017) {
|
|
|
|
|
out_1917393444476627017[0] = 0;
|
|
|
|
|
out_1917393444476627017[1] = 1;
|
|
|
|
|
out_1917393444476627017[2] = 0;
|
|
|
|
|
out_1917393444476627017[3] = 0;
|
|
|
|
|
out_1917393444476627017[4] = 0;
|
|
|
|
|
out_1917393444476627017[5] = 0;
|
|
|
|
|
out_1917393444476627017[6] = 0;
|
|
|
|
|
out_1917393444476627017[7] = 0;
|
|
|
|
|
out_1917393444476627017[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_3457990282567667163) {
|
|
|
|
|
out_3457990282567667163[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_6999792461546157591) {
|
|
|
|
|
out_6999792461546157591[0] = 1;
|
|
|
|
|
out_6999792461546157591[1] = 0;
|
|
|
|
|
out_6999792461546157591[2] = 0;
|
|
|
|
|
out_6999792461546157591[3] = 0;
|
|
|
|
|
out_6999792461546157591[4] = 0;
|
|
|
|
|
out_6999792461546157591[5] = 0;
|
|
|
|
|
out_6999792461546157591[6] = 0;
|
|
|
|
|
out_6999792461546157591[7] = 0;
|
|
|
|
|
out_6999792461546157591[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_5784448398023678349) {
|
|
|
|
|
out_5784448398023678349[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_2267639879770818703) {
|
|
|
|
|
out_2267639879770818703[0] = 0;
|
|
|
|
|
out_2267639879770818703[1] = 0;
|
|
|
|
|
out_2267639879770818703[2] = 0;
|
|
|
|
|
out_2267639879770818703[3] = 0;
|
|
|
|
|
out_2267639879770818703[4] = 0;
|
|
|
|
|
out_2267639879770818703[5] = 0;
|
|
|
|
|
out_2267639879770818703[6] = 0;
|
|
|
|
|
out_2267639879770818703[7] = 0;
|
|
|
|
|
out_2267639879770818703[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_8734738848718453580) {
|
|
|
|
|
err_fun(nom_x, delta_x, out_8734738848718453580);
|
|
|
|
|
}
|
|
|
|
|
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_345708709643416341) {
|
|
|
|
|
inv_err_fun(nom_x, true_x, out_345708709643416341);
|
|
|
|
|
}
|
|
|
|
|
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_5821266491637270808) {
|
|
|
|
|
H_mod_fun(state, out_5821266491637270808);
|
|
|
|
|
}
|
|
|
|
|
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_3387439539554904049) {
|
|
|
|
|
f_fun(state, dt, out_3387439539554904049);
|
|
|
|
|
}
|
|
|
|
|
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_8369111513492043604) {
|
|
|
|
|
F_fun(state, dt, out_8369111513492043604);
|
|
|
|
|
}
|
|
|
|
|
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_5891460449335522331) {
|
|
|
|
|
h_25(state, unused, out_5891460449335522331);
|
|
|
|
|
}
|
|
|
|
|
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_2100071541336588997) {
|
|
|
|
|
H_25(state, unused, out_2100071541336588997);
|
|
|
|
|
}
|
|
|
|
|
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_4507289012395459306) {
|
|
|
|
|
h_24(state, unused, out_4507289012395459306);
|
|
|
|
|
}
|
|
|
|
|
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_5657997140138912133) {
|
|
|
|
|
H_24(state, unused, out_5657997140138912133);
|
|
|
|
|
}
|
|
|
|
|
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_8060731896440404372) {
|
|
|
|
|
h_30(state, unused, out_8060731896440404372);
|
|
|
|
|
}
|
|
|
|
|
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_2427624788791019201) {
|
|
|
|
|
H_30(state, unused, out_2427624788791019201);
|
|
|
|
|
}
|
|
|
|
|
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_7110164364521690655) {
|
|
|
|
|
h_26(state, unused, out_7110164364521690655);
|
|
|
|
|
}
|
|
|
|
|
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_1641431777537467227) {
|
|
|
|
|
H_26(state, unused, out_1641431777537467227);
|
|
|
|
|
}
|
|
|
|
|
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_6494776334011999848) {
|
|
|
|
|
h_27(state, unused, out_6494776334011999848);
|
|
|
|
|
}
|
|
|
|
|
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_4602388100591444112) {
|
|
|
|
|
H_27(state, unused, out_4602388100591444112);
|
|
|
|
|
}
|
|
|
|
|
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_1268488922808672593) {
|
|
|
|
|
h_29(state, unused, out_1268488922808672593);
|
|
|
|
|
}
|
|
|
|
|
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_1917393444476627017) {
|
|
|
|
|
H_29(state, unused, out_1917393444476627017);
|
|
|
|
|
}
|
|
|
|
|
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_3457990282567667163) {
|
|
|
|
|
h_28(state, unused, out_3457990282567667163);
|
|
|
|
|
}
|
|
|
|
|
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_6999792461546157591) {
|
|
|
|
|
H_28(state, unused, out_6999792461546157591);
|
|
|
|
|
}
|
|
|
|
|
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_5784448398023678349) {
|
|
|
|
|
h_31(state, unused, out_5784448398023678349);
|
|
|
|
|
}
|
|
|
|
|
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_2267639879770818703) {
|
|
|
|
|
H_31(state, unused, out_2267639879770818703);
|
|
|
|
|
}
|
|
|
|
|
void car_predict(double *in_x, double *in_P, double *in_Q, double dt) {
|
|
|
|
|
predict(in_x, in_P, in_Q, dt);
|
|
|
|
|