After re-login from stale session, bot teleports to random pokestop
Expected Behavior
Expected the bot to pick up right where it left off (location) after a successful re-login
Actual Behavior
Teleported trainer to a distant pokestop (see smooth line in screenshot)
Steps to Reproduce
Run bot till session is stale and re-logs in. Then look at the web map (submodule)
Other Information
OS:
Mac
Git Commit: (run 'git log -n 1 --pretty=format:"%H"' and paste it here)
how can i show that red line route on my map to confirm this?
On the right hand side, click "Settings", then toggle "Bot Path" on
successful re-login, we should use location cache, and not pick a new location
tagging #810 as both reference last location cache
This is (probably) due to the self.position (or self.location) not being updated correctly when walking. There are multiple instances in the codebase where position is changed but self.position is not updated - so when the session is due to expire, the position used is from the last time self.position was updated, which could be any time!
Actually.. maybe not..