mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-30 17:04:08 +08:00
mc_pos_control: set triplets.valid to first time when landed
This commit is contained in:
parent
9e383f2cd3
commit
00c9e4b79f
@ -2344,6 +2344,11 @@ MulticopterPositionControl::task_main()
|
||||
_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;
|
||||
|
||||
update_ref();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user