mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
navigator: bring follow me back to life
The function `mission_item_to_position_setpoint()` is called in `FollowTarget::update_position_sp()`. The nav_cmd is a NAV_CMD_DO_FOLLOW_REPOSITION as set earlier in `set_follow_target_item`. Since `mission_item_to_position_setpointi` returns early because the item presumably contains no position, the lat/lon of the mission_item are not copied over to the position_setpoint and therefore the vehicle will never move in follow me position mode.
This commit is contained in:
parent
10de946cdf
commit
6d8d6323cb
@ -475,7 +475,8 @@ MissionBlock::item_contains_position(const mission_item_s &item)
|
||||
item.nav_cmd == NAV_CMD_TAKEOFF ||
|
||||
item.nav_cmd == NAV_CMD_LOITER_TO_ALT ||
|
||||
item.nav_cmd == NAV_CMD_VTOL_TAKEOFF ||
|
||||
item.nav_cmd == NAV_CMD_VTOL_LAND;
|
||||
item.nav_cmd == NAV_CMD_VTOL_LAND ||
|
||||
item.nav_cmd == NAV_CMD_DO_FOLLOW_REPOSITION;
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user