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

cos not defined #129

Closed
thomaswelton opened this issue Jul 22, 2016 · 1 comment
Closed

cos not defined #129

thomaswelton opened this issue Jul 22, 2016 · 1 comment

Comments

@thomaswelton
Copy link

Traceback (most recent call last):
File "pokecli.py", line 120, in
main()
File "pokecli.py", line 117, in main
bot.take_step()
File "/Users/administrator/PokemonGo-Bot/bot.py", line 29, in take_step
self.stepper.take_step()
File "/Users/administrator/PokemonGo-Bot/stepper.py", line 39, in take_step
self.api.walk(self.config.walk, *position,walking_hook=self.walking_hook)
File "/Users/administrator/PokemonGo-Bot/pgoapi/pgoapi.py", line 114, in walk
dist = distance(i2f(self._position_lat), i2f(self._position_lng), lat, lng)
File "/Users/administrator/PokemonGo-Bot/pgoapi/utilities.py", line 46, in distance
a = 0.5 - cos((lat2 - lat1) * p)/2 + cos(lat1 * p) * cos(lat2 * p) * (1 - cos((lon2 - lon1) * p)) / 2
NameError: global name 'cos' is not defined

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

No branches or pull requests

2 participants