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:
bresch 2021-07-28 11:22:58 +02:00 committed by Daniel Agar
parent e7a2c1d88e
commit 1016600ded

View File

@ -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;
}