mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-25 16:23:34 +08:00
Takeoff: on completion estabilish loiter at current position for FW
Signed-off-by: Silvan Fuhrer <silvan@auterion.com>
This commit is contained in:
committed by
Jacob Dahl
parent
9499b32be6
commit
e691db3cfe
@@ -77,7 +77,8 @@ Takeoff::on_active()
|
|||||||
_mission_item.nav_cmd = NAV_CMD_IDLE;
|
_mission_item.nav_cmd = NAV_CMD_IDLE;
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
if (pos_sp_triplet->current.valid) {
|
if (pos_sp_triplet->current.valid
|
||||||
|
&& _navigator->get_vstatus()->vehicle_type == vehicle_status_s::VEHICLE_TYPE_ROTARY_WING) {
|
||||||
setLoiterItemFromCurrentPositionSetpoint(&_mission_item);
|
setLoiterItemFromCurrentPositionSetpoint(&_mission_item);
|
||||||
|
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user