Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix follow me position setpoint #8203

Merged
merged 2 commits into from
Oct 29, 2017
Merged

Fix follow me position setpoint #8203

merged 2 commits into from
Oct 29, 2017

Conversation

julianoes
Copy link
Contributor

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_setpoint 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 PR fixes this problem and should unblock the DroneCore follow me implementation.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants