mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Revert "mc_pos_control: omit initial warning"
This reverts commit 446598d00359d42acef2619c157a493d2997edd5. The first warning was due to a race condition that is fixed by the previous commit; don't omit the first warning anymore
This commit is contained in:
parent
e7a2c1d88e
commit
1016600ded
@ -427,7 +427,7 @@ void MulticopterPositionControl::Run()
|
||||
|
||||
} else {
|
||||
// Failsafe
|
||||
if ((time_stamp_now - _last_warn) > 2_s && _last_warn > 0) {
|
||||
if ((time_stamp_now - _last_warn) > 2_s) {
|
||||
PX4_WARN("invalid setpoints");
|
||||
_last_warn = time_stamp_now;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user