mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-13 22:13:35 +08:00
Update src/modules/fw_wind_estimator/FixedwingWindEstimator.cpp
Co-authored-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
co-authored by
Silvan Fuhrer
parent
c8cc5ac9a0
commit
a2f5a8eb5d
@@ -162,7 +162,7 @@ void FixedwingWindEstimator::Run()
|
||||
perf_begin(_loop_perf);
|
||||
|
||||
// only run controller if angular velocity changed
|
||||
if (_vehicle_angular_velocity_sub.updated() || (hrt_elapsed_time(&_last_run) > 20_ms)) { //TODO rate!
|
||||
if (_vehicle_angular_velocity_sub.updated() || (hrt_elapsed_time(&_last_run) > 20_ms)) {
|
||||
|
||||
// only update parameters if they changed
|
||||
bool params_updated = _parameter_update_sub.updated();
|
||||
|
||||
Reference in New Issue
Block a user