mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 06:23:33 +08:00
Added external vision noise parameters etc and position offset
This commit is contained in:
committed by
Paul Riseborough
parent
ff8f03b5dd
commit
b681c9a5d0
+1
-1
@@ -311,7 +311,7 @@ bool Ekf::update()
|
||||
_fuse_height = true;
|
||||
|
||||
// correct position and height for offset relative to IMU
|
||||
Vector3f pos_offset_body = _params.visn_pos_body - _params.imu_pos_body;
|
||||
Vector3f pos_offset_body = _params.ev_pos_body - _params.imu_pos_body;
|
||||
Vector3f pos_offset_earth = _R_to_earth * pos_offset_body;
|
||||
_ev_sample_delayed.posNED(0) -= pos_offset_earth(0);
|
||||
_ev_sample_delayed.posNED(1) -= pos_offset_earth(1);
|
||||
|
||||
Reference in New Issue
Block a user