LandDetector: switch land flags to properies instead of one state

This commit is contained in:
Matthias Grob
2019-10-16 00:47:01 -04:00
committed by Daniel Agar
parent 1e1549a169
commit 679e4fedf5
5 changed files with 20 additions and 71 deletions
@@ -135,10 +135,10 @@ private:
vehicle_land_detected_s _vehicle_land_detected = {
.timestamp = 0,
.alt_max = -1.0f,
.landed = true,
.freefall = false,
.ground_contact = false,
.maybe_landed = false,
.ground_contact = true,
.maybe_landed = true,
.landed = true,
};
vehicle_attitude_setpoint_s _att_sp{}; /**< vehicle attitude setpoint */