Skip to content

Commit d5c46b3

Browse files
committed
ekf2: consider GNSS vel as horizontal velocity aiding
1 parent e0d15b7 commit d5c46b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/modules/ekf2/EKF/estimator_interface.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -624,7 +624,8 @@ int EstimatorInterface::getNumberOfActiveHorizontalPositionAidingSources() const
624624

625625
int EstimatorInterface::getNumberOfActiveHorizontalVelocityAidingSources() const
626626
{
627-
return int(_control_status.flags.opt_flow)
627+
return int(_control_status.flags.gnss_vel)
628+
+ int(_control_status.flags.opt_flow)
628629
+ int(_control_status.flags.ev_vel)
629630
// Combined airspeed and sideslip fusion allows sustained wind relative dead reckoning
630631
// and so is treated as a single aiding source.

0 commit comments

Comments
 (0)