mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-05-10 14:51:15 +08:00
Revert "mc_pos_control: omit initial warning"
This reverts commit 446598d003.
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user