Browse Source

AP_NavEKF2: Remove redundant logic check

mission-4.1.18
Paul Riseborough 9 years ago committed by Andrew Tridgell
parent
commit
26815ace7a
  1. 2
      libraries/AP_NavEKF2/AP_NavEKF2_VehicleStatus.cpp

2
libraries/AP_NavEKF2/AP_NavEKF2_VehicleStatus.cpp

@ -360,7 +360,7 @@ void NavEKF2_core::detectFlight() @@ -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

Loading…
Cancel
Save