mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-22 15:53:56 -04:00
AP_NavEKF2: Remove redundant logic check
This commit is contained in:
parent
bd8c804ab5
commit
26815ace7a
@ -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…
Reference in New Issue
Block a user