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

Some follow-me fixes #566

Merged
merged 5 commits into from
Oct 1, 2018
Merged

Some follow-me fixes #566

merged 5 commits into from
Oct 1, 2018

Conversation

julianoes
Copy link
Collaborator

This fixes #408 and makes the example a bit easier to understand. The path is changed from a semi-circular path (which I had broken in the meantime) to just a square. Also, we're now following from behind which is most intuitive to start with.

This changes the follow me path to just a simple square.

Also, this fixes a previous bug where it rushed through the locations
too quickly because each if would increment count_.
Otherwise we land before the follow me action has been done.
Flying lower and especially behind makes it more obvious what is
happening.
We only need the placeholder once, `using namespace` is not really
needed.
Copy link
Collaborator

@hamishwillee hamishwillee left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By inspection looks much better. In my sim looks like this:
image

SO approving. But if you can get a better screenshot of the square that would be helpful for the docs update :-)

@julianoes
Copy link
Collaborator Author

It's a weird square but that's because it tries to be behind the target which makes it sway in the corners, I believe.

}
sleep_for(seconds(1));
++count_;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep!

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.

Follow Me example behaviour has changed in latest firmware
3 participants