|
|
|
@@ -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_5338539537467249660) {
|
|
|
|
|
out_5338539537467249660[0] = delta_x[0] + nom_x[0];
|
|
|
|
|
out_5338539537467249660[1] = delta_x[1] + nom_x[1];
|
|
|
|
|
out_5338539537467249660[2] = delta_x[2] + nom_x[2];
|
|
|
|
|
out_5338539537467249660[3] = delta_x[3] + nom_x[3];
|
|
|
|
|
out_5338539537467249660[4] = delta_x[4] + nom_x[4];
|
|
|
|
|
out_5338539537467249660[5] = delta_x[5] + nom_x[5];
|
|
|
|
|
out_5338539537467249660[6] = delta_x[6] + nom_x[6];
|
|
|
|
|
out_5338539537467249660[7] = delta_x[7] + nom_x[7];
|
|
|
|
|
out_5338539537467249660[8] = delta_x[8] + nom_x[8];
|
|
|
|
|
void err_fun(double *nom_x, double *delta_x, double *out_8915787360473543346) {
|
|
|
|
|
out_8915787360473543346[0] = delta_x[0] + nom_x[0];
|
|
|
|
|
out_8915787360473543346[1] = delta_x[1] + nom_x[1];
|
|
|
|
|
out_8915787360473543346[2] = delta_x[2] + nom_x[2];
|
|
|
|
|
out_8915787360473543346[3] = delta_x[3] + nom_x[3];
|
|
|
|
|
out_8915787360473543346[4] = delta_x[4] + nom_x[4];
|
|
|
|
|
out_8915787360473543346[5] = delta_x[5] + nom_x[5];
|
|
|
|
|
out_8915787360473543346[6] = delta_x[6] + nom_x[6];
|
|
|
|
|
out_8915787360473543346[7] = delta_x[7] + nom_x[7];
|
|
|
|
|
out_8915787360473543346[8] = delta_x[8] + nom_x[8];
|
|
|
|
|
}
|
|
|
|
|
void inv_err_fun(double *nom_x, double *true_x, double *out_9051106561155768401) {
|
|
|
|
|
out_9051106561155768401[0] = -nom_x[0] + true_x[0];
|
|
|
|
|
out_9051106561155768401[1] = -nom_x[1] + true_x[1];
|
|
|
|
|
out_9051106561155768401[2] = -nom_x[2] + true_x[2];
|
|
|
|
|
out_9051106561155768401[3] = -nom_x[3] + true_x[3];
|
|
|
|
|
out_9051106561155768401[4] = -nom_x[4] + true_x[4];
|
|
|
|
|
out_9051106561155768401[5] = -nom_x[5] + true_x[5];
|
|
|
|
|
out_9051106561155768401[6] = -nom_x[6] + true_x[6];
|
|
|
|
|
out_9051106561155768401[7] = -nom_x[7] + true_x[7];
|
|
|
|
|
out_9051106561155768401[8] = -nom_x[8] + true_x[8];
|
|
|
|
|
void inv_err_fun(double *nom_x, double *true_x, double *out_6947442446622693276) {
|
|
|
|
|
out_6947442446622693276[0] = -nom_x[0] + true_x[0];
|
|
|
|
|
out_6947442446622693276[1] = -nom_x[1] + true_x[1];
|
|
|
|
|
out_6947442446622693276[2] = -nom_x[2] + true_x[2];
|
|
|
|
|
out_6947442446622693276[3] = -nom_x[3] + true_x[3];
|
|
|
|
|
out_6947442446622693276[4] = -nom_x[4] + true_x[4];
|
|
|
|
|
out_6947442446622693276[5] = -nom_x[5] + true_x[5];
|
|
|
|
|
out_6947442446622693276[6] = -nom_x[6] + true_x[6];
|
|
|
|
|
out_6947442446622693276[7] = -nom_x[7] + true_x[7];
|
|
|
|
|
out_6947442446622693276[8] = -nom_x[8] + true_x[8];
|
|
|
|
|
}
|
|
|
|
|
void H_mod_fun(double *state, double *out_6056943757456444737) {
|
|
|
|
|
out_6056943757456444737[0] = 1.0;
|
|
|
|
|
out_6056943757456444737[1] = 0.0;
|
|
|
|
|
out_6056943757456444737[2] = 0.0;
|
|
|
|
|
out_6056943757456444737[3] = 0.0;
|
|
|
|
|
out_6056943757456444737[4] = 0.0;
|
|
|
|
|
out_6056943757456444737[5] = 0.0;
|
|
|
|
|
out_6056943757456444737[6] = 0.0;
|
|
|
|
|
out_6056943757456444737[7] = 0.0;
|
|
|
|
|
out_6056943757456444737[8] = 0.0;
|
|
|
|
|
out_6056943757456444737[9] = 0.0;
|
|
|
|
|
out_6056943757456444737[10] = 1.0;
|
|
|
|
|
out_6056943757456444737[11] = 0.0;
|
|
|
|
|
out_6056943757456444737[12] = 0.0;
|
|
|
|
|
out_6056943757456444737[13] = 0.0;
|
|
|
|
|
out_6056943757456444737[14] = 0.0;
|
|
|
|
|
out_6056943757456444737[15] = 0.0;
|
|
|
|
|
out_6056943757456444737[16] = 0.0;
|
|
|
|
|
out_6056943757456444737[17] = 0.0;
|
|
|
|
|
out_6056943757456444737[18] = 0.0;
|
|
|
|
|
out_6056943757456444737[19] = 0.0;
|
|
|
|
|
out_6056943757456444737[20] = 1.0;
|
|
|
|
|
out_6056943757456444737[21] = 0.0;
|
|
|
|
|
out_6056943757456444737[22] = 0.0;
|
|
|
|
|
out_6056943757456444737[23] = 0.0;
|
|
|
|
|
out_6056943757456444737[24] = 0.0;
|
|
|
|
|
out_6056943757456444737[25] = 0.0;
|
|
|
|
|
out_6056943757456444737[26] = 0.0;
|
|
|
|
|
out_6056943757456444737[27] = 0.0;
|
|
|
|
|
out_6056943757456444737[28] = 0.0;
|
|
|
|
|
out_6056943757456444737[29] = 0.0;
|
|
|
|
|
out_6056943757456444737[30] = 1.0;
|
|
|
|
|
out_6056943757456444737[31] = 0.0;
|
|
|
|
|
out_6056943757456444737[32] = 0.0;
|
|
|
|
|
out_6056943757456444737[33] = 0.0;
|
|
|
|
|
out_6056943757456444737[34] = 0.0;
|
|
|
|
|
out_6056943757456444737[35] = 0.0;
|
|
|
|
|
out_6056943757456444737[36] = 0.0;
|
|
|
|
|
out_6056943757456444737[37] = 0.0;
|
|
|
|
|
out_6056943757456444737[38] = 0.0;
|
|
|
|
|
out_6056943757456444737[39] = 0.0;
|
|
|
|
|
out_6056943757456444737[40] = 1.0;
|
|
|
|
|
out_6056943757456444737[41] = 0.0;
|
|
|
|
|
out_6056943757456444737[42] = 0.0;
|
|
|
|
|
out_6056943757456444737[43] = 0.0;
|
|
|
|
|
out_6056943757456444737[44] = 0.0;
|
|
|
|
|
out_6056943757456444737[45] = 0.0;
|
|
|
|
|
out_6056943757456444737[46] = 0.0;
|
|
|
|
|
out_6056943757456444737[47] = 0.0;
|
|
|
|
|
out_6056943757456444737[48] = 0.0;
|
|
|
|
|
out_6056943757456444737[49] = 0.0;
|
|
|
|
|
out_6056943757456444737[50] = 1.0;
|
|
|
|
|
out_6056943757456444737[51] = 0.0;
|
|
|
|
|
out_6056943757456444737[52] = 0.0;
|
|
|
|
|
out_6056943757456444737[53] = 0.0;
|
|
|
|
|
out_6056943757456444737[54] = 0.0;
|
|
|
|
|
out_6056943757456444737[55] = 0.0;
|
|
|
|
|
out_6056943757456444737[56] = 0.0;
|
|
|
|
|
out_6056943757456444737[57] = 0.0;
|
|
|
|
|
out_6056943757456444737[58] = 0.0;
|
|
|
|
|
out_6056943757456444737[59] = 0.0;
|
|
|
|
|
out_6056943757456444737[60] = 1.0;
|
|
|
|
|
out_6056943757456444737[61] = 0.0;
|
|
|
|
|
out_6056943757456444737[62] = 0.0;
|
|
|
|
|
out_6056943757456444737[63] = 0.0;
|
|
|
|
|
out_6056943757456444737[64] = 0.0;
|
|
|
|
|
out_6056943757456444737[65] = 0.0;
|
|
|
|
|
out_6056943757456444737[66] = 0.0;
|
|
|
|
|
out_6056943757456444737[67] = 0.0;
|
|
|
|
|
out_6056943757456444737[68] = 0.0;
|
|
|
|
|
out_6056943757456444737[69] = 0.0;
|
|
|
|
|
out_6056943757456444737[70] = 1.0;
|
|
|
|
|
out_6056943757456444737[71] = 0.0;
|
|
|
|
|
out_6056943757456444737[72] = 0.0;
|
|
|
|
|
out_6056943757456444737[73] = 0.0;
|
|
|
|
|
out_6056943757456444737[74] = 0.0;
|
|
|
|
|
out_6056943757456444737[75] = 0.0;
|
|
|
|
|
out_6056943757456444737[76] = 0.0;
|
|
|
|
|
out_6056943757456444737[77] = 0.0;
|
|
|
|
|
out_6056943757456444737[78] = 0.0;
|
|
|
|
|
out_6056943757456444737[79] = 0.0;
|
|
|
|
|
out_6056943757456444737[80] = 1.0;
|
|
|
|
|
void H_mod_fun(double *state, double *out_3915375183282538117) {
|
|
|
|
|
out_3915375183282538117[0] = 1.0;
|
|
|
|
|
out_3915375183282538117[1] = 0.0;
|
|
|
|
|
out_3915375183282538117[2] = 0.0;
|
|
|
|
|
out_3915375183282538117[3] = 0.0;
|
|
|
|
|
out_3915375183282538117[4] = 0.0;
|
|
|
|
|
out_3915375183282538117[5] = 0.0;
|
|
|
|
|
out_3915375183282538117[6] = 0.0;
|
|
|
|
|
out_3915375183282538117[7] = 0.0;
|
|
|
|
|
out_3915375183282538117[8] = 0.0;
|
|
|
|
|
out_3915375183282538117[9] = 0.0;
|
|
|
|
|
out_3915375183282538117[10] = 1.0;
|
|
|
|
|
out_3915375183282538117[11] = 0.0;
|
|
|
|
|
out_3915375183282538117[12] = 0.0;
|
|
|
|
|
out_3915375183282538117[13] = 0.0;
|
|
|
|
|
out_3915375183282538117[14] = 0.0;
|
|
|
|
|
out_3915375183282538117[15] = 0.0;
|
|
|
|
|
out_3915375183282538117[16] = 0.0;
|
|
|
|
|
out_3915375183282538117[17] = 0.0;
|
|
|
|
|
out_3915375183282538117[18] = 0.0;
|
|
|
|
|
out_3915375183282538117[19] = 0.0;
|
|
|
|
|
out_3915375183282538117[20] = 1.0;
|
|
|
|
|
out_3915375183282538117[21] = 0.0;
|
|
|
|
|
out_3915375183282538117[22] = 0.0;
|
|
|
|
|
out_3915375183282538117[23] = 0.0;
|
|
|
|
|
out_3915375183282538117[24] = 0.0;
|
|
|
|
|
out_3915375183282538117[25] = 0.0;
|
|
|
|
|
out_3915375183282538117[26] = 0.0;
|
|
|
|
|
out_3915375183282538117[27] = 0.0;
|
|
|
|
|
out_3915375183282538117[28] = 0.0;
|
|
|
|
|
out_3915375183282538117[29] = 0.0;
|
|
|
|
|
out_3915375183282538117[30] = 1.0;
|
|
|
|
|
out_3915375183282538117[31] = 0.0;
|
|
|
|
|
out_3915375183282538117[32] = 0.0;
|
|
|
|
|
out_3915375183282538117[33] = 0.0;
|
|
|
|
|
out_3915375183282538117[34] = 0.0;
|
|
|
|
|
out_3915375183282538117[35] = 0.0;
|
|
|
|
|
out_3915375183282538117[36] = 0.0;
|
|
|
|
|
out_3915375183282538117[37] = 0.0;
|
|
|
|
|
out_3915375183282538117[38] = 0.0;
|
|
|
|
|
out_3915375183282538117[39] = 0.0;
|
|
|
|
|
out_3915375183282538117[40] = 1.0;
|
|
|
|
|
out_3915375183282538117[41] = 0.0;
|
|
|
|
|
out_3915375183282538117[42] = 0.0;
|
|
|
|
|
out_3915375183282538117[43] = 0.0;
|
|
|
|
|
out_3915375183282538117[44] = 0.0;
|
|
|
|
|
out_3915375183282538117[45] = 0.0;
|
|
|
|
|
out_3915375183282538117[46] = 0.0;
|
|
|
|
|
out_3915375183282538117[47] = 0.0;
|
|
|
|
|
out_3915375183282538117[48] = 0.0;
|
|
|
|
|
out_3915375183282538117[49] = 0.0;
|
|
|
|
|
out_3915375183282538117[50] = 1.0;
|
|
|
|
|
out_3915375183282538117[51] = 0.0;
|
|
|
|
|
out_3915375183282538117[52] = 0.0;
|
|
|
|
|
out_3915375183282538117[53] = 0.0;
|
|
|
|
|
out_3915375183282538117[54] = 0.0;
|
|
|
|
|
out_3915375183282538117[55] = 0.0;
|
|
|
|
|
out_3915375183282538117[56] = 0.0;
|
|
|
|
|
out_3915375183282538117[57] = 0.0;
|
|
|
|
|
out_3915375183282538117[58] = 0.0;
|
|
|
|
|
out_3915375183282538117[59] = 0.0;
|
|
|
|
|
out_3915375183282538117[60] = 1.0;
|
|
|
|
|
out_3915375183282538117[61] = 0.0;
|
|
|
|
|
out_3915375183282538117[62] = 0.0;
|
|
|
|
|
out_3915375183282538117[63] = 0.0;
|
|
|
|
|
out_3915375183282538117[64] = 0.0;
|
|
|
|
|
out_3915375183282538117[65] = 0.0;
|
|
|
|
|
out_3915375183282538117[66] = 0.0;
|
|
|
|
|
out_3915375183282538117[67] = 0.0;
|
|
|
|
|
out_3915375183282538117[68] = 0.0;
|
|
|
|
|
out_3915375183282538117[69] = 0.0;
|
|
|
|
|
out_3915375183282538117[70] = 1.0;
|
|
|
|
|
out_3915375183282538117[71] = 0.0;
|
|
|
|
|
out_3915375183282538117[72] = 0.0;
|
|
|
|
|
out_3915375183282538117[73] = 0.0;
|
|
|
|
|
out_3915375183282538117[74] = 0.0;
|
|
|
|
|
out_3915375183282538117[75] = 0.0;
|
|
|
|
|
out_3915375183282538117[76] = 0.0;
|
|
|
|
|
out_3915375183282538117[77] = 0.0;
|
|
|
|
|
out_3915375183282538117[78] = 0.0;
|
|
|
|
|
out_3915375183282538117[79] = 0.0;
|
|
|
|
|
out_3915375183282538117[80] = 1.0;
|
|
|
|
|
}
|
|
|
|
|
void f_fun(double *state, double dt, double *out_705784528218461978) {
|
|
|
|
|
out_705784528218461978[0] = state[0];
|
|
|
|
|
out_705784528218461978[1] = state[1];
|
|
|
|
|
out_705784528218461978[2] = state[2];
|
|
|
|
|
out_705784528218461978[3] = state[3];
|
|
|
|
|
out_705784528218461978[4] = state[4];
|
|
|
|
|
out_705784528218461978[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_705784528218461978[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_705784528218461978[7] = state[7];
|
|
|
|
|
out_705784528218461978[8] = state[8];
|
|
|
|
|
void f_fun(double *state, double dt, double *out_8434982008934914079) {
|
|
|
|
|
out_8434982008934914079[0] = state[0];
|
|
|
|
|
out_8434982008934914079[1] = state[1];
|
|
|
|
|
out_8434982008934914079[2] = state[2];
|
|
|
|
|
out_8434982008934914079[3] = state[3];
|
|
|
|
|
out_8434982008934914079[4] = state[4];
|
|
|
|
|
out_8434982008934914079[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_8434982008934914079[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_8434982008934914079[7] = state[7];
|
|
|
|
|
out_8434982008934914079[8] = state[8];
|
|
|
|
|
}
|
|
|
|
|
void F_fun(double *state, double dt, double *out_8947584327419905805) {
|
|
|
|
|
out_8947584327419905805[0] = 1;
|
|
|
|
|
out_8947584327419905805[1] = 0;
|
|
|
|
|
out_8947584327419905805[2] = 0;
|
|
|
|
|
out_8947584327419905805[3] = 0;
|
|
|
|
|
out_8947584327419905805[4] = 0;
|
|
|
|
|
out_8947584327419905805[5] = 0;
|
|
|
|
|
out_8947584327419905805[6] = 0;
|
|
|
|
|
out_8947584327419905805[7] = 0;
|
|
|
|
|
out_8947584327419905805[8] = 0;
|
|
|
|
|
out_8947584327419905805[9] = 0;
|
|
|
|
|
out_8947584327419905805[10] = 1;
|
|
|
|
|
out_8947584327419905805[11] = 0;
|
|
|
|
|
out_8947584327419905805[12] = 0;
|
|
|
|
|
out_8947584327419905805[13] = 0;
|
|
|
|
|
out_8947584327419905805[14] = 0;
|
|
|
|
|
out_8947584327419905805[15] = 0;
|
|
|
|
|
out_8947584327419905805[16] = 0;
|
|
|
|
|
out_8947584327419905805[17] = 0;
|
|
|
|
|
out_8947584327419905805[18] = 0;
|
|
|
|
|
out_8947584327419905805[19] = 0;
|
|
|
|
|
out_8947584327419905805[20] = 1;
|
|
|
|
|
out_8947584327419905805[21] = 0;
|
|
|
|
|
out_8947584327419905805[22] = 0;
|
|
|
|
|
out_8947584327419905805[23] = 0;
|
|
|
|
|
out_8947584327419905805[24] = 0;
|
|
|
|
|
out_8947584327419905805[25] = 0;
|
|
|
|
|
out_8947584327419905805[26] = 0;
|
|
|
|
|
out_8947584327419905805[27] = 0;
|
|
|
|
|
out_8947584327419905805[28] = 0;
|
|
|
|
|
out_8947584327419905805[29] = 0;
|
|
|
|
|
out_8947584327419905805[30] = 1;
|
|
|
|
|
out_8947584327419905805[31] = 0;
|
|
|
|
|
out_8947584327419905805[32] = 0;
|
|
|
|
|
out_8947584327419905805[33] = 0;
|
|
|
|
|
out_8947584327419905805[34] = 0;
|
|
|
|
|
out_8947584327419905805[35] = 0;
|
|
|
|
|
out_8947584327419905805[36] = 0;
|
|
|
|
|
out_8947584327419905805[37] = 0;
|
|
|
|
|
out_8947584327419905805[38] = 0;
|
|
|
|
|
out_8947584327419905805[39] = 0;
|
|
|
|
|
out_8947584327419905805[40] = 1;
|
|
|
|
|
out_8947584327419905805[41] = 0;
|
|
|
|
|
out_8947584327419905805[42] = 0;
|
|
|
|
|
out_8947584327419905805[43] = 0;
|
|
|
|
|
out_8947584327419905805[44] = 0;
|
|
|
|
|
out_8947584327419905805[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_8947584327419905805[46] = -dt*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/pow(state[1], 2);
|
|
|
|
|
out_8947584327419905805[47] = -dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_8947584327419905805[48] = -dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_8947584327419905805[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_8947584327419905805[50] = dt*(-stiffness_front*state[0] - stiffness_rear*state[0])/state[4] + 1;
|
|
|
|
|
out_8947584327419905805[51] = dt*((-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/state[4] - state[4]);
|
|
|
|
|
out_8947584327419905805[52] = dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_8947584327419905805[53] = -9.8100000000000005*dt;
|
|
|
|
|
out_8947584327419905805[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_8947584327419905805[55] = -center_to_front*dt*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/(rotational_inertia*pow(state[1], 2));
|
|
|
|
|
out_8947584327419905805[56] = -center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_8947584327419905805[57] = -center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_8947584327419905805[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_8947584327419905805[59] = dt*(-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/(rotational_inertia*state[4]);
|
|
|
|
|
out_8947584327419905805[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_8947584327419905805[61] = center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_8947584327419905805[62] = 0;
|
|
|
|
|
out_8947584327419905805[63] = 0;
|
|
|
|
|
out_8947584327419905805[64] = 0;
|
|
|
|
|
out_8947584327419905805[65] = 0;
|
|
|
|
|
out_8947584327419905805[66] = 0;
|
|
|
|
|
out_8947584327419905805[67] = 0;
|
|
|
|
|
out_8947584327419905805[68] = 0;
|
|
|
|
|
out_8947584327419905805[69] = 0;
|
|
|
|
|
out_8947584327419905805[70] = 1;
|
|
|
|
|
out_8947584327419905805[71] = 0;
|
|
|
|
|
out_8947584327419905805[72] = 0;
|
|
|
|
|
out_8947584327419905805[73] = 0;
|
|
|
|
|
out_8947584327419905805[74] = 0;
|
|
|
|
|
out_8947584327419905805[75] = 0;
|
|
|
|
|
out_8947584327419905805[76] = 0;
|
|
|
|
|
out_8947584327419905805[77] = 0;
|
|
|
|
|
out_8947584327419905805[78] = 0;
|
|
|
|
|
out_8947584327419905805[79] = 0;
|
|
|
|
|
out_8947584327419905805[80] = 1;
|
|
|
|
|
void F_fun(double *state, double dt, double *out_3819147273868264887) {
|
|
|
|
|
out_3819147273868264887[0] = 1;
|
|
|
|
|
out_3819147273868264887[1] = 0;
|
|
|
|
|
out_3819147273868264887[2] = 0;
|
|
|
|
|
out_3819147273868264887[3] = 0;
|
|
|
|
|
out_3819147273868264887[4] = 0;
|
|
|
|
|
out_3819147273868264887[5] = 0;
|
|
|
|
|
out_3819147273868264887[6] = 0;
|
|
|
|
|
out_3819147273868264887[7] = 0;
|
|
|
|
|
out_3819147273868264887[8] = 0;
|
|
|
|
|
out_3819147273868264887[9] = 0;
|
|
|
|
|
out_3819147273868264887[10] = 1;
|
|
|
|
|
out_3819147273868264887[11] = 0;
|
|
|
|
|
out_3819147273868264887[12] = 0;
|
|
|
|
|
out_3819147273868264887[13] = 0;
|
|
|
|
|
out_3819147273868264887[14] = 0;
|
|
|
|
|
out_3819147273868264887[15] = 0;
|
|
|
|
|
out_3819147273868264887[16] = 0;
|
|
|
|
|
out_3819147273868264887[17] = 0;
|
|
|
|
|
out_3819147273868264887[18] = 0;
|
|
|
|
|
out_3819147273868264887[19] = 0;
|
|
|
|
|
out_3819147273868264887[20] = 1;
|
|
|
|
|
out_3819147273868264887[21] = 0;
|
|
|
|
|
out_3819147273868264887[22] = 0;
|
|
|
|
|
out_3819147273868264887[23] = 0;
|
|
|
|
|
out_3819147273868264887[24] = 0;
|
|
|
|
|
out_3819147273868264887[25] = 0;
|
|
|
|
|
out_3819147273868264887[26] = 0;
|
|
|
|
|
out_3819147273868264887[27] = 0;
|
|
|
|
|
out_3819147273868264887[28] = 0;
|
|
|
|
|
out_3819147273868264887[29] = 0;
|
|
|
|
|
out_3819147273868264887[30] = 1;
|
|
|
|
|
out_3819147273868264887[31] = 0;
|
|
|
|
|
out_3819147273868264887[32] = 0;
|
|
|
|
|
out_3819147273868264887[33] = 0;
|
|
|
|
|
out_3819147273868264887[34] = 0;
|
|
|
|
|
out_3819147273868264887[35] = 0;
|
|
|
|
|
out_3819147273868264887[36] = 0;
|
|
|
|
|
out_3819147273868264887[37] = 0;
|
|
|
|
|
out_3819147273868264887[38] = 0;
|
|
|
|
|
out_3819147273868264887[39] = 0;
|
|
|
|
|
out_3819147273868264887[40] = 1;
|
|
|
|
|
out_3819147273868264887[41] = 0;
|
|
|
|
|
out_3819147273868264887[42] = 0;
|
|
|
|
|
out_3819147273868264887[43] = 0;
|
|
|
|
|
out_3819147273868264887[44] = 0;
|
|
|
|
|
out_3819147273868264887[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_3819147273868264887[46] = -dt*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/pow(state[1], 2);
|
|
|
|
|
out_3819147273868264887[47] = -dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_3819147273868264887[48] = -dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_3819147273868264887[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_3819147273868264887[50] = dt*(-stiffness_front*state[0] - stiffness_rear*state[0])/state[4] + 1;
|
|
|
|
|
out_3819147273868264887[51] = dt*((-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/state[4] - state[4]);
|
|
|
|
|
out_3819147273868264887[52] = dt*stiffness_front*state[0]/state[1];
|
|
|
|
|
out_3819147273868264887[53] = -9.8100000000000005*dt;
|
|
|
|
|
out_3819147273868264887[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_3819147273868264887[55] = -center_to_front*dt*stiffness_front*(-state[2] - state[3] + state[7])*state[0]/(rotational_inertia*pow(state[1], 2));
|
|
|
|
|
out_3819147273868264887[56] = -center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_3819147273868264887[57] = -center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_3819147273868264887[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_3819147273868264887[59] = dt*(-center_to_front*stiffness_front*state[0] + center_to_rear*stiffness_rear*state[0])/(rotational_inertia*state[4]);
|
|
|
|
|
out_3819147273868264887[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_3819147273868264887[61] = center_to_front*dt*stiffness_front*state[0]/(rotational_inertia*state[1]);
|
|
|
|
|
out_3819147273868264887[62] = 0;
|
|
|
|
|
out_3819147273868264887[63] = 0;
|
|
|
|
|
out_3819147273868264887[64] = 0;
|
|
|
|
|
out_3819147273868264887[65] = 0;
|
|
|
|
|
out_3819147273868264887[66] = 0;
|
|
|
|
|
out_3819147273868264887[67] = 0;
|
|
|
|
|
out_3819147273868264887[68] = 0;
|
|
|
|
|
out_3819147273868264887[69] = 0;
|
|
|
|
|
out_3819147273868264887[70] = 1;
|
|
|
|
|
out_3819147273868264887[71] = 0;
|
|
|
|
|
out_3819147273868264887[72] = 0;
|
|
|
|
|
out_3819147273868264887[73] = 0;
|
|
|
|
|
out_3819147273868264887[74] = 0;
|
|
|
|
|
out_3819147273868264887[75] = 0;
|
|
|
|
|
out_3819147273868264887[76] = 0;
|
|
|
|
|
out_3819147273868264887[77] = 0;
|
|
|
|
|
out_3819147273868264887[78] = 0;
|
|
|
|
|
out_3819147273868264887[79] = 0;
|
|
|
|
|
out_3819147273868264887[80] = 1;
|
|
|
|
|
}
|
|
|
|
|
void h_25(double *state, double *unused, double *out_2254220722034703808) {
|
|
|
|
|
out_2254220722034703808[0] = state[6];
|
|
|
|
|
void h_25(double *state, double *unused, double *out_303213511435387109) {
|
|
|
|
|
out_303213511435387109[0] = state[6];
|
|
|
|
|
}
|
|
|
|
|
void H_25(double *state, double *unused, double *out_3196612090340869642) {
|
|
|
|
|
out_3196612090340869642[0] = 0;
|
|
|
|
|
out_3196612090340869642[1] = 0;
|
|
|
|
|
out_3196612090340869642[2] = 0;
|
|
|
|
|
out_3196612090340869642[3] = 0;
|
|
|
|
|
out_3196612090340869642[4] = 0;
|
|
|
|
|
out_3196612090340869642[5] = 0;
|
|
|
|
|
out_3196612090340869642[6] = 1;
|
|
|
|
|
out_3196612090340869642[7] = 0;
|
|
|
|
|
out_3196612090340869642[8] = 0;
|
|
|
|
|
void H_25(double *state, double *unused, double *out_2764320936553766794) {
|
|
|
|
|
out_2764320936553766794[0] = 0;
|
|
|
|
|
out_2764320936553766794[1] = 0;
|
|
|
|
|
out_2764320936553766794[2] = 0;
|
|
|
|
|
out_2764320936553766794[3] = 0;
|
|
|
|
|
out_2764320936553766794[4] = 0;
|
|
|
|
|
out_2764320936553766794[5] = 0;
|
|
|
|
|
out_2764320936553766794[6] = 1;
|
|
|
|
|
out_2764320936553766794[7] = 0;
|
|
|
|
|
out_2764320936553766794[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_24(double *state, double *unused, double *out_271697475624632785) {
|
|
|
|
|
out_271697475624632785[0] = state[4];
|
|
|
|
|
out_271697475624632785[1] = state[5];
|
|
|
|
|
void h_24(double *state, double *unused, double *out_7477436593008546893) {
|
|
|
|
|
out_7477436593008546893[0] = state[4];
|
|
|
|
|
out_7477436593008546893[1] = state[5];
|
|
|
|
|
}
|
|
|
|
|
void H_24(double *state, double *unused, double *out_1023962491335370076) {
|
|
|
|
|
out_1023962491335370076[0] = 0;
|
|
|
|
|
out_1023962491335370076[1] = 0;
|
|
|
|
|
out_1023962491335370076[2] = 0;
|
|
|
|
|
out_1023962491335370076[3] = 0;
|
|
|
|
|
out_1023962491335370076[4] = 1;
|
|
|
|
|
out_1023962491335370076[5] = 0;
|
|
|
|
|
out_1023962491335370076[6] = 0;
|
|
|
|
|
out_1023962491335370076[7] = 0;
|
|
|
|
|
out_1023962491335370076[8] = 0;
|
|
|
|
|
out_1023962491335370076[9] = 0;
|
|
|
|
|
out_1023962491335370076[10] = 0;
|
|
|
|
|
out_1023962491335370076[11] = 0;
|
|
|
|
|
out_1023962491335370076[12] = 0;
|
|
|
|
|
out_1023962491335370076[13] = 0;
|
|
|
|
|
out_1023962491335370076[14] = 1;
|
|
|
|
|
out_1023962491335370076[15] = 0;
|
|
|
|
|
out_1023962491335370076[16] = 0;
|
|
|
|
|
out_1023962491335370076[17] = 0;
|
|
|
|
|
void H_24(double *state, double *unused, double *out_591671337548267228) {
|
|
|
|
|
out_591671337548267228[0] = 0;
|
|
|
|
|
out_591671337548267228[1] = 0;
|
|
|
|
|
out_591671337548267228[2] = 0;
|
|
|
|
|
out_591671337548267228[3] = 0;
|
|
|
|
|
out_591671337548267228[4] = 1;
|
|
|
|
|
out_591671337548267228[5] = 0;
|
|
|
|
|
out_591671337548267228[6] = 0;
|
|
|
|
|
out_591671337548267228[7] = 0;
|
|
|
|
|
out_591671337548267228[8] = 0;
|
|
|
|
|
out_591671337548267228[9] = 0;
|
|
|
|
|
out_591671337548267228[10] = 0;
|
|
|
|
|
out_591671337548267228[11] = 0;
|
|
|
|
|
out_591671337548267228[12] = 0;
|
|
|
|
|
out_591671337548267228[13] = 0;
|
|
|
|
|
out_591671337548267228[14] = 1;
|
|
|
|
|
out_591671337548267228[15] = 0;
|
|
|
|
|
out_591671337548267228[16] = 0;
|
|
|
|
|
out_591671337548267228[17] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_30(double *state, double *unused, double *out_4185794200589335996) {
|
|
|
|
|
out_4185794200589335996[0] = state[4];
|
|
|
|
|
void h_30(double *state, double *unused, double *out_146026843084257964) {
|
|
|
|
|
out_146026843084257964[0] = state[4];
|
|
|
|
|
}
|
|
|
|
|
void H_30(double *state, double *unused, double *out_3067273143197629572) {
|
|
|
|
|
out_3067273143197629572[0] = 0;
|
|
|
|
|
out_3067273143197629572[1] = 0;
|
|
|
|
|
out_3067273143197629572[2] = 0;
|
|
|
|
|
out_3067273143197629572[3] = 0;
|
|
|
|
|
out_3067273143197629572[4] = 1;
|
|
|
|
|
out_3067273143197629572[5] = 0;
|
|
|
|
|
out_3067273143197629572[6] = 0;
|
|
|
|
|
out_3067273143197629572[7] = 0;
|
|
|
|
|
out_3067273143197629572[8] = 0;
|
|
|
|
|
void H_30(double *state, double *unused, double *out_5282653895061015421) {
|
|
|
|
|
out_5282653895061015421[0] = 0;
|
|
|
|
|
out_5282653895061015421[1] = 0;
|
|
|
|
|
out_5282653895061015421[2] = 0;
|
|
|
|
|
out_5282653895061015421[3] = 0;
|
|
|
|
|
out_5282653895061015421[4] = 1;
|
|
|
|
|
out_5282653895061015421[5] = 0;
|
|
|
|
|
out_5282653895061015421[6] = 0;
|
|
|
|
|
out_5282653895061015421[7] = 0;
|
|
|
|
|
out_5282653895061015421[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_26(double *state, double *unused, double *out_2826166669579966168) {
|
|
|
|
|
out_2826166669579966168[0] = state[7];
|
|
|
|
|
void h_26(double *state, double *unused, double *out_5108406840765551196) {
|
|
|
|
|
out_5108406840765551196[0] = state[7];
|
|
|
|
|
}
|
|
|
|
|
void H_26(double *state, double *unused, double *out_544891228533186582) {
|
|
|
|
|
out_544891228533186582[0] = 0;
|
|
|
|
|
out_544891228533186582[1] = 0;
|
|
|
|
|
out_544891228533186582[2] = 0;
|
|
|
|
|
out_544891228533186582[3] = 0;
|
|
|
|
|
out_544891228533186582[4] = 0;
|
|
|
|
|
out_544891228533186582[5] = 0;
|
|
|
|
|
out_544891228533186582[6] = 0;
|
|
|
|
|
out_544891228533186582[7] = 1;
|
|
|
|
|
out_544891228533186582[8] = 0;
|
|
|
|
|
void H_26(double *state, double *unused, double *out_977182382320289430) {
|
|
|
|
|
out_977182382320289430[0] = 0;
|
|
|
|
|
out_977182382320289430[1] = 0;
|
|
|
|
|
out_977182382320289430[2] = 0;
|
|
|
|
|
out_977182382320289430[3] = 0;
|
|
|
|
|
out_977182382320289430[4] = 0;
|
|
|
|
|
out_977182382320289430[5] = 0;
|
|
|
|
|
out_977182382320289430[6] = 0;
|
|
|
|
|
out_977182382320289430[7] = 1;
|
|
|
|
|
out_977182382320289430[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_27(double *state, double *unused, double *out_8002831971529567978) {
|
|
|
|
|
out_8002831971529567978[0] = state[3];
|
|
|
|
|
void h_27(double *state, double *unused, double *out_2578742329048439243) {
|
|
|
|
|
out_2578742329048439243[0] = state[3];
|
|
|
|
|
}
|
|
|
|
|
void H_27(double *state, double *unused, double *out_892509831397204661) {
|
|
|
|
|
out_892509831397204661[0] = 0;
|
|
|
|
|
out_892509831397204661[1] = 0;
|
|
|
|
|
out_892509831397204661[2] = 0;
|
|
|
|
|
out_892509831397204661[3] = 1;
|
|
|
|
|
out_892509831397204661[4] = 0;
|
|
|
|
|
out_892509831397204661[5] = 0;
|
|
|
|
|
out_892509831397204661[6] = 0;
|
|
|
|
|
out_892509831397204661[7] = 0;
|
|
|
|
|
out_892509831397204661[8] = 0;
|
|
|
|
|
void H_27(double *state, double *unused, double *out_3107890583260590510) {
|
|
|
|
|
out_3107890583260590510[0] = 0;
|
|
|
|
|
out_3107890583260590510[1] = 0;
|
|
|
|
|
out_3107890583260590510[2] = 0;
|
|
|
|
|
out_3107890583260590510[3] = 1;
|
|
|
|
|
out_3107890583260590510[4] = 0;
|
|
|
|
|
out_3107890583260590510[5] = 0;
|
|
|
|
|
out_3107890583260590510[6] = 0;
|
|
|
|
|
out_3107890583260590510[7] = 0;
|
|
|
|
|
out_3107890583260590510[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_29(double *state, double *unused, double *out_1729836553144526340) {
|
|
|
|
|
out_1729836553144526340[0] = state[1];
|
|
|
|
|
void h_29(double *state, double *unused, double *out_9166570255524734406) {
|
|
|
|
|
out_9166570255524734406[0] = state[1];
|
|
|
|
|
}
|
|
|
|
|
void H_29(double *state, double *unused, double *out_820852895472346372) {
|
|
|
|
|
out_820852895472346372[0] = 0;
|
|
|
|
|
out_820852895472346372[1] = 1;
|
|
|
|
|
out_820852895472346372[2] = 0;
|
|
|
|
|
out_820852895472346372[3] = 0;
|
|
|
|
|
out_820852895472346372[4] = 0;
|
|
|
|
|
out_820852895472346372[5] = 0;
|
|
|
|
|
out_820852895472346372[6] = 0;
|
|
|
|
|
out_820852895472346372[7] = 0;
|
|
|
|
|
out_820852895472346372[8] = 0;
|
|
|
|
|
void H_29(double *state, double *unused, double *out_5792885239375407605) {
|
|
|
|
|
out_5792885239375407605[0] = 0;
|
|
|
|
|
out_5792885239375407605[1] = 1;
|
|
|
|
|
out_5792885239375407605[2] = 0;
|
|
|
|
|
out_5792885239375407605[3] = 0;
|
|
|
|
|
out_5792885239375407605[4] = 0;
|
|
|
|
|
out_5792885239375407605[5] = 0;
|
|
|
|
|
out_5792885239375407605[6] = 0;
|
|
|
|
|
out_5792885239375407605[7] = 0;
|
|
|
|
|
out_5792885239375407605[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_28(double *state, double *unused, double *out_7332927978418735539) {
|
|
|
|
|
out_7332927978418735539[0] = state[0];
|
|
|
|
|
void h_28(double *state, double *unused, double *out_3182058213724916760) {
|
|
|
|
|
out_3182058213724916760[0] = state[0];
|
|
|
|
|
}
|
|
|
|
|
void H_28(double *state, double *unused, double *out_1142777376092979879) {
|
|
|
|
|
out_1142777376092979879[0] = 1;
|
|
|
|
|
out_1142777376092979879[1] = 0;
|
|
|
|
|
out_1142777376092979879[2] = 0;
|
|
|
|
|
out_1142777376092979879[3] = 0;
|
|
|
|
|
out_1142777376092979879[4] = 0;
|
|
|
|
|
out_1142777376092979879[5] = 0;
|
|
|
|
|
out_1142777376092979879[6] = 0;
|
|
|
|
|
out_1142777376092979879[7] = 0;
|
|
|
|
|
out_1142777376092979879[8] = 0;
|
|
|
|
|
void H_28(double *state, double *unused, double *out_710486222305877031) {
|
|
|
|
|
out_710486222305877031[0] = 1;
|
|
|
|
|
out_710486222305877031[1] = 0;
|
|
|
|
|
out_710486222305877031[2] = 0;
|
|
|
|
|
out_710486222305877031[3] = 0;
|
|
|
|
|
out_710486222305877031[4] = 0;
|
|
|
|
|
out_710486222305877031[5] = 0;
|
|
|
|
|
out_710486222305877031[6] = 0;
|
|
|
|
|
out_710486222305877031[7] = 0;
|
|
|
|
|
out_710486222305877031[8] = 0;
|
|
|
|
|
}
|
|
|
|
|
void h_31(double *state, double *unused, double *out_362684964594470021) {
|
|
|
|
|
out_362684964594470021[0] = state[8];
|
|
|
|
|
void h_31(double *state, double *unused, double *out_6060380466866428752) {
|
|
|
|
|
out_6060380466866428752[0] = state[8];
|
|
|
|
|
}
|
|
|
|
|
void H_31(double *state, double *unused, double *out_3227258052217830070) {
|
|
|
|
|
out_3227258052217830070[0] = 0;
|
|
|
|
|
out_3227258052217830070[1] = 0;
|
|
|
|
|
out_3227258052217830070[2] = 0;
|
|
|
|
|
out_3227258052217830070[3] = 0;
|
|
|
|
|
out_3227258052217830070[4] = 0;
|
|
|
|
|
out_3227258052217830070[5] = 0;
|
|
|
|
|
out_3227258052217830070[6] = 0;
|
|
|
|
|
out_3227258052217830070[7] = 0;
|
|
|
|
|
out_3227258052217830070[8] = 1;
|
|
|
|
|
void H_31(double *state, double *unused, double *out_1603390484553640906) {
|
|
|
|
|
out_1603390484553640906[0] = 0;
|
|
|
|
|
out_1603390484553640906[1] = 0;
|
|
|
|
|
out_1603390484553640906[2] = 0;
|
|
|
|
|
out_1603390484553640906[3] = 0;
|
|
|
|
|
out_1603390484553640906[4] = 0;
|
|
|
|
|
out_1603390484553640906[5] = 0;
|
|
|
|
|
out_1603390484553640906[6] = 0;
|
|
|
|
|
out_1603390484553640906[7] = 0;
|
|
|
|
|
out_1603390484553640906[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_5338539537467249660) {
|
|
|
|
|
err_fun(nom_x, delta_x, out_5338539537467249660);
|
|
|
|
|
void car_err_fun(double *nom_x, double *delta_x, double *out_8915787360473543346) {
|
|
|
|
|
err_fun(nom_x, delta_x, out_8915787360473543346);
|
|
|
|
|
}
|
|
|
|
|
void car_inv_err_fun(double *nom_x, double *true_x, double *out_9051106561155768401) {
|
|
|
|
|
inv_err_fun(nom_x, true_x, out_9051106561155768401);
|
|
|
|
|
void car_inv_err_fun(double *nom_x, double *true_x, double *out_6947442446622693276) {
|
|
|
|
|
inv_err_fun(nom_x, true_x, out_6947442446622693276);
|
|
|
|
|
}
|
|
|
|
|
void car_H_mod_fun(double *state, double *out_6056943757456444737) {
|
|
|
|
|
H_mod_fun(state, out_6056943757456444737);
|
|
|
|
|
void car_H_mod_fun(double *state, double *out_3915375183282538117) {
|
|
|
|
|
H_mod_fun(state, out_3915375183282538117);
|
|
|
|
|
}
|
|
|
|
|
void car_f_fun(double *state, double dt, double *out_705784528218461978) {
|
|
|
|
|
f_fun(state, dt, out_705784528218461978);
|
|
|
|
|
void car_f_fun(double *state, double dt, double *out_8434982008934914079) {
|
|
|
|
|
f_fun(state, dt, out_8434982008934914079);
|
|
|
|
|
}
|
|
|
|
|
void car_F_fun(double *state, double dt, double *out_8947584327419905805) {
|
|
|
|
|
F_fun(state, dt, out_8947584327419905805);
|
|
|
|
|
void car_F_fun(double *state, double dt, double *out_3819147273868264887) {
|
|
|
|
|
F_fun(state, dt, out_3819147273868264887);
|
|
|
|
|
}
|
|
|
|
|
void car_h_25(double *state, double *unused, double *out_2254220722034703808) {
|
|
|
|
|
h_25(state, unused, out_2254220722034703808);
|
|
|
|
|
void car_h_25(double *state, double *unused, double *out_303213511435387109) {
|
|
|
|
|
h_25(state, unused, out_303213511435387109);
|
|
|
|
|
}
|
|
|
|
|
void car_H_25(double *state, double *unused, double *out_3196612090340869642) {
|
|
|
|
|
H_25(state, unused, out_3196612090340869642);
|
|
|
|
|
void car_H_25(double *state, double *unused, double *out_2764320936553766794) {
|
|
|
|
|
H_25(state, unused, out_2764320936553766794);
|
|
|
|
|
}
|
|
|
|
|
void car_h_24(double *state, double *unused, double *out_271697475624632785) {
|
|
|
|
|
h_24(state, unused, out_271697475624632785);
|
|
|
|
|
void car_h_24(double *state, double *unused, double *out_7477436593008546893) {
|
|
|
|
|
h_24(state, unused, out_7477436593008546893);
|
|
|
|
|
}
|
|
|
|
|
void car_H_24(double *state, double *unused, double *out_1023962491335370076) {
|
|
|
|
|
H_24(state, unused, out_1023962491335370076);
|
|
|
|
|
void car_H_24(double *state, double *unused, double *out_591671337548267228) {
|
|
|
|
|
H_24(state, unused, out_591671337548267228);
|
|
|
|
|
}
|
|
|
|
|
void car_h_30(double *state, double *unused, double *out_4185794200589335996) {
|
|
|
|
|
h_30(state, unused, out_4185794200589335996);
|
|
|
|
|
void car_h_30(double *state, double *unused, double *out_146026843084257964) {
|
|
|
|
|
h_30(state, unused, out_146026843084257964);
|
|
|
|
|
}
|
|
|
|
|
void car_H_30(double *state, double *unused, double *out_3067273143197629572) {
|
|
|
|
|
H_30(state, unused, out_3067273143197629572);
|
|
|
|
|
void car_H_30(double *state, double *unused, double *out_5282653895061015421) {
|
|
|
|
|
H_30(state, unused, out_5282653895061015421);
|
|
|
|
|
}
|
|
|
|
|
void car_h_26(double *state, double *unused, double *out_2826166669579966168) {
|
|
|
|
|
h_26(state, unused, out_2826166669579966168);
|
|
|
|
|
void car_h_26(double *state, double *unused, double *out_5108406840765551196) {
|
|
|
|
|
h_26(state, unused, out_5108406840765551196);
|
|
|
|
|
}
|
|
|
|
|
void car_H_26(double *state, double *unused, double *out_544891228533186582) {
|
|
|
|
|
H_26(state, unused, out_544891228533186582);
|
|
|
|
|
void car_H_26(double *state, double *unused, double *out_977182382320289430) {
|
|
|
|
|
H_26(state, unused, out_977182382320289430);
|
|
|
|
|
}
|
|
|
|
|
void car_h_27(double *state, double *unused, double *out_8002831971529567978) {
|
|
|
|
|
h_27(state, unused, out_8002831971529567978);
|
|
|
|
|
void car_h_27(double *state, double *unused, double *out_2578742329048439243) {
|
|
|
|
|
h_27(state, unused, out_2578742329048439243);
|
|
|
|
|
}
|
|
|
|
|
void car_H_27(double *state, double *unused, double *out_892509831397204661) {
|
|
|
|
|
H_27(state, unused, out_892509831397204661);
|
|
|
|
|
void car_H_27(double *state, double *unused, double *out_3107890583260590510) {
|
|
|
|
|
H_27(state, unused, out_3107890583260590510);
|
|
|
|
|
}
|
|
|
|
|
void car_h_29(double *state, double *unused, double *out_1729836553144526340) {
|
|
|
|
|
h_29(state, unused, out_1729836553144526340);
|
|
|
|
|
void car_h_29(double *state, double *unused, double *out_9166570255524734406) {
|
|
|
|
|
h_29(state, unused, out_9166570255524734406);
|
|
|
|
|
}
|
|
|
|
|
void car_H_29(double *state, double *unused, double *out_820852895472346372) {
|
|
|
|
|
H_29(state, unused, out_820852895472346372);
|
|
|
|
|
void car_H_29(double *state, double *unused, double *out_5792885239375407605) {
|
|
|
|
|
H_29(state, unused, out_5792885239375407605);
|
|
|
|
|
}
|
|
|
|
|
void car_h_28(double *state, double *unused, double *out_7332927978418735539) {
|
|
|
|
|
h_28(state, unused, out_7332927978418735539);
|
|
|
|
|
void car_h_28(double *state, double *unused, double *out_3182058213724916760) {
|
|
|
|
|
h_28(state, unused, out_3182058213724916760);
|
|
|
|
|
}
|
|
|
|
|
void car_H_28(double *state, double *unused, double *out_1142777376092979879) {
|
|
|
|
|
H_28(state, unused, out_1142777376092979879);
|
|
|
|
|
void car_H_28(double *state, double *unused, double *out_710486222305877031) {
|
|
|
|
|
H_28(state, unused, out_710486222305877031);
|
|
|
|
|
}
|
|
|
|
|
void car_h_31(double *state, double *unused, double *out_362684964594470021) {
|
|
|
|
|
h_31(state, unused, out_362684964594470021);
|
|
|
|
|
void car_h_31(double *state, double *unused, double *out_6060380466866428752) {
|
|
|
|
|
h_31(state, unused, out_6060380466866428752);
|
|
|
|
|
}
|
|
|
|
|
void car_H_31(double *state, double *unused, double *out_3227258052217830070) {
|
|
|
|
|
H_31(state, unused, out_3227258052217830070);
|
|
|
|
|
void car_H_31(double *state, double *unused, double *out_1603390484553640906) {
|
|
|
|
|
H_31(state, unused, out_1603390484553640906);
|
|
|
|
|
}
|
|
|
|
|
void car_predict(double *in_x, double *in_P, double *in_Q, double dt) {
|
|
|
|
|
predict(in_x, in_P, in_Q, dt);
|
|
|
|
|