mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-31 18:21:37 +08:00
mc_pos_control: set triplets.valid to first time when landed
This commit is contained in:
@@ -2344,6 +2344,11 @@ MulticopterPositionControl::task_main()
|
|||||||
_takeoff_vel_limit = -0.5f;
|
_takeoff_vel_limit = -0.5f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* set triplets to invalid if we just landed */
|
||||||
|
if (_vehicle_land_detected.landed && !was_landed) {
|
||||||
|
_pos_sp_triplet.current.valid = false;
|
||||||
|
}
|
||||||
|
|
||||||
was_landed = _vehicle_land_detected.landed;
|
was_landed = _vehicle_land_detected.landed;
|
||||||
|
|
||||||
update_ref();
|
update_ref();
|
||||||
|
|||||||
Reference in New Issue
Block a user