mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 21:57:36 +08:00
airspeed_selector: don't consider vehicle_local_position valid if dead_reckoning
This commit is contained in:
committed by
Silvan Fuhrer
parent
ac209c2e78
commit
a2f83269e9
@@ -505,7 +505,9 @@ void AirspeedModule::poll_topics()
|
||||
|
||||
|
||||
_vehicle_local_position_valid = (_time_now_usec - _vehicle_local_position.timestamp < 1_s)
|
||||
&& (_vehicle_local_position.timestamp > 0) && _vehicle_local_position.v_xy_valid;
|
||||
&& (_vehicle_local_position.timestamp > 0)
|
||||
&& _vehicle_local_position.v_xy_valid
|
||||
&& !_vehicle_local_position.dead_reckoning;
|
||||
}
|
||||
|
||||
void AirspeedModule::update_wind_estimator_sideslip()
|
||||
|
||||
Reference in New Issue
Block a user