mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-28 22:23:33 +08:00
style fix
This commit is contained in:
committed by
Lorenz Meier
parent
e6f7af2dcf
commit
f26972704e
@@ -225,8 +225,7 @@ bool MulticopterLandDetector::_get_ground_contact_state()
|
|||||||
// If pilots commands down or in auto mode and we are already below minimal thrust and we do not move down we assume ground contact
|
// If pilots commands down or in auto mode and we are already below minimal thrust and we do not move down we assume ground contact
|
||||||
// TODO: we need an accelerometer based check for vertical movement for flying without GPS
|
// TODO: we need an accelerometer based check for vertical movement for flying without GPS
|
||||||
if (manual_control_idle_or_auto && (_has_low_thrust() || hit_ground) && (!horizontalMovement || !_has_position_lock())
|
if (manual_control_idle_or_auto && (_has_low_thrust() || hit_ground) && (!horizontalMovement || !_has_position_lock())
|
||||||
&&
|
&& (!verticalMovement || !_has_altitude_lock())) {
|
||||||
(!verticalMovement || !_has_altitude_lock())) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user