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

Track and log total distance walked #1093

Closed
wants to merge 5 commits into from
Closed

Track and log total distance walked #1093

wants to merge 5 commits into from

Conversation

ghost
Copy link

@ghost ghost commented Jul 27, 2016

Short Description: Tracks and logs total distance walked. Easy way to monitor how far you have walked, that way you know about when you can hatch your eggs.

@@ -31,6 +30,7 @@ def __init__(self, bot):
self.steplimit2 = self.steplimit**2
self.origin_lat = self.bot.position[0]
self.origin_lon = self.bot.position[1]
self.totalDistance = 0
Copy link

@MaxLeiter MaxLeiter Jul 27, 2016

Choose a reason for hiding this comment

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

this project abides by PEP8, so please use _ instead of camelCase

@bstpierr
Copy link
Contributor

This won't necessarily be correct. The game will discount any movement that is done too quickly. I already have a PR to track distance as well as many other stats: #1059

…ger to log total distance using users distance_unit in config.
@ghost
Copy link
Author

ghost commented Jul 27, 2016

@MaxLeiter Updated

@solderzzc
Copy link
Contributor

solderzzc commented Jul 27, 2016

we don't accept PR on master branch to keep thing easy. Please submit to dev if still need.

@solderzzc solderzzc closed this Jul 27, 2016
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.

4 participants