Skip to content

Track and log total distance walked#1093

Closed
ghost wants to merge 5 commits intomasterfrom
unknown repository
Closed

Track and log total distance walked#1093
ghost wants to merge 5 commits intomasterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@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.

self.steplimit2 = self.steplimit**2
self.origin_lat = self.bot.position[0]
self.origin_lon = self.bot.position[1]
self.totalDistance = 0
Copy link
Copy Markdown

@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
Copy Markdown
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
Copy Markdown
Author

ghost commented Jul 27, 2016

@MaxLeiter Updated

@solderzzc
Copy link
Copy Markdown
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