AP_NavEKF2: Remove redundant logic check

This commit is contained in:
Paul Riseborough 2016-06-09 14:48:48 +10:00 committed by Andrew Tridgell
parent bd8c804ab5
commit 26815ace7a

View File

@ -360,7 +360,7 @@ void NavEKF2_core::detectFlight()
prevInFlight = inFlight;
// Store vehicle height and range prior to takeoff for use in post takeoff checks
if (onGround && prevOnGround) {
if (onGround) {
// store vertical position at start of flight to use as a reference for ground relative checks
posDownAtTakeoff = stateStruct.position.z;
// store the range finder measurement which will be used as a reference to detect when we have taken off