mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
Additional yaw handling on land
This commit is contained in:
parent
e2812e34f8
commit
3307c71e6d
@ -548,7 +548,6 @@ MissionBlock::set_land_item(struct mission_item_s *item, bool at_current_locatio
|
||||
|
||||
item->altitude = 0;
|
||||
item->altitude_is_relative = false;
|
||||
item->yaw = NAN;
|
||||
item->loiter_radius = _navigator->get_loiter_radius();
|
||||
item->loiter_direction = 1;
|
||||
item->acceptance_radius = _navigator->get_acceptance_radius();
|
||||
|
||||
@ -267,6 +267,7 @@ RTL::set_rtl_item()
|
||||
}
|
||||
|
||||
case RTL_STATE_LAND: {
|
||||
_mission_item.yaw = _navigator->get_home_position()->yaw;
|
||||
set_land_item(&_mission_item, false);
|
||||
|
||||
mavlink_log_critical(_navigator->get_mavlink_log_pub(), "RTL: land at home");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user