mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-13 12:00:35 +08:00
ekf2: split gnss pos/vel flags
They can be selected independently in the control parameter, so there is no reason why they should share the same flag.
This commit is contained in:
committed by
Mathieu Bresciani
parent
da3a0656d4
commit
2aaa54037c
@@ -561,7 +561,8 @@ void AirspeedModule::poll_topics()
|
||||
_gnss_lpos_valid = (_time_now_usec - _vehicle_local_position.timestamp < 1_s)
|
||||
&& (_vehicle_local_position.timestamp > 0)
|
||||
&& _vehicle_local_position.v_xy_valid
|
||||
&& _estimator_status.control_mode_flags & (1 << estimator_status_s::CS_GPS);
|
||||
&& (_estimator_status.control_mode_flags & (1 << estimator_status_s::CS_GNSS_POS)
|
||||
|| _estimator_status.control_mode_flags & (static_cast<uint64_t>(1) << estimator_status_s::CS_GNSS_VEL));
|
||||
}
|
||||
|
||||
void AirspeedModule::update_wind_estimator_sideslip()
|
||||
|
||||
Reference in New Issue
Block a user