Merge pull request #374 from PX4/pr-ekfInitFix

EKF: Prevent possible /0 due to incorrect initial values
This commit is contained in:
Paul Riseborough
2018-01-04 08:15:08 +11:00
committed by GitHub
+2 -2
View File
@@ -266,10 +266,10 @@ private:
bool _fuse_hor_vel_aux{false}; ///< true when auxiliary horizontal velocity measurement should be fused
float _posObsNoiseNE{0.0f}; ///< 1-STD observtion noise used for the fusion of NE position data (m)
float _posInnovGateNE{0.0f}; ///< Number of standard deviations used for the NE position fusion innovation consistency check
float _posInnovGateNE{1.0f}; ///< Number of standard deviations used for the NE position fusion innovation consistency check
Vector2f _velObsVarNE; ///< 1-STD observation noise variance used for the fusion of NE velocity data (m/sec)**2
float _hvelInnovGate{0.0f}; ///< Number of standard deviations used for the horizontal velocity fusion innovation consistency check
float _hvelInnovGate{1.0f}; ///< Number of standard deviations used for the horizontal velocity fusion innovation consistency check
// variables used when position data is being fused using a relative position odometry model
bool _fuse_hpos_as_odom{false}; ///< true when the NE position data is being fused using an odometry assumption