mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-17 14:17:36 +08:00
clang-tidy readability-simplify-boolean-expr
This commit is contained in:
@@ -563,11 +563,7 @@ bool BlockLocalPositionEstimator::landed()
|
||||
|
||||
bool disarmed_not_falling = (!_sub_armed.get().armed) && (!_sub_land.get().freefall);
|
||||
|
||||
if (!(_sub_land.get().landed || disarmed_not_falling)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
return _sub_land.get().landed || disarmed_not_falling;
|
||||
}
|
||||
|
||||
void BlockLocalPositionEstimator::publishLocalPos()
|
||||
|
||||
Reference in New Issue
Block a user