mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
ekf2: fix odom body rate sign bug
This commit is contained in:
parent
b454095776
commit
98c8cbb27f
@ -1251,7 +1251,7 @@ void EKF2::publish_odometry(const hrt_abstime ×tamp, const imuSample &imu,
|
||||
|
||||
// Vehicle odometry angular rates
|
||||
const Vector3f gyro_bias = _ekf.getGyroBias();
|
||||
const Vector3f rates(imu.delta_ang * imu.delta_ang_dt);
|
||||
const Vector3f rates(imu.delta_ang / imu.delta_ang_dt);
|
||||
odom.rollspeed = rates(0) - gyro_bias(0);
|
||||
odom.pitchspeed = rates(1) - gyro_bias(1);
|
||||
odom.yawspeed = rates(2) - gyro_bias(2);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user