-
Notifications
You must be signed in to change notification settings - Fork 24
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
get_location() returning rounded floating point #39
Comments
Hi, what do you get as the return value? |
{'x': 0, 'y': -1} (had to tell the Sphero to spin first, otherwise None is returned) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, the get_location() api seems to return a value that is either a rounded floating point, or an integer value that was transformed into a floating value. I'm suspecting it's the latter because of the binary locator flags in [1] and the StreamingService classes in spherov2.py/spherov2/controls/v2.py.
[1]:
To reproduce this:
I am working with Python 3.11.3 64-bit, spherov2 version 0.12, and a Sphero SPRK+.
Other than this issue, this has been a great and simple package to work with, thank you!
The text was updated successfully, but these errors were encountered: