mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-02 05:04:08 +08:00
flow_fusion: corrected sign of gyro data when it is taken from the ekf
gyro data Signed-off-by: Roman <bapstroman@gmail.com>
This commit is contained in:
parent
c6ed2ccfcd
commit
c8af315aa7
@ -564,7 +564,8 @@ bool Ekf::calcOptFlowBodyRateComp()
|
||||
|
||||
} else {
|
||||
// Use the EKF gyro data if optical flow sensor gyro data is not available
|
||||
_flow_sample_delayed.gyroXYZ = _imu_del_ang_of;
|
||||
// for clarification of the sign see definition of flowSample and imuSample in common.h
|
||||
_flow_sample_delayed.gyroXYZ = - _imu_del_ang_of;
|
||||
_flow_gyro_bias.zero();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user