mirror of
https://github.com/paparazzi/paparazzi.git
synced 2026-06-07 09:36:19 +08:00
fix heading in ahrs_sim, need to check what exactly psi is that comes from the ocaml sim
This commit is contained in:
@@ -47,7 +47,9 @@ void compute_body_orientation_and_rates(void);
|
||||
void update_attitude_from_sim(void) {
|
||||
ahrs_float.ltp_to_imu_euler.phi = sim_phi;
|
||||
ahrs_float.ltp_to_imu_euler.theta = sim_theta;
|
||||
ahrs_float.ltp_to_imu_euler.psi = sim_psi;
|
||||
ahrs_float.ltp_to_imu_euler.psi = -sim_psi;
|
||||
FLOAT_ANGLE_NORMALIZE(ahrs_float.ltp_to_imu_euler.psi);
|
||||
ahrs_float.ltp_to_imu_euler.psi += M_PI/2.;
|
||||
|
||||
/* set quaternion and rotation matrix representations as well */
|
||||
FLOAT_QUAT_OF_EULERS(ahrs_float.ltp_to_imu_quat, ahrs_float.ltp_to_imu_euler);
|
||||
|
||||
Reference in New Issue
Block a user