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

Heading and orientation #103

Open
gpabdo opened this issue Nov 6, 2020 · 0 comments
Open

Heading and orientation #103

gpabdo opened this issue Nov 6, 2020 · 0 comments

Comments

@gpabdo
Copy link

gpabdo commented Nov 6, 2020

I was hoping to use the sense hat for a robotics project, but it seems when I try and use both get_orientation_degrees() and get_compass() I mine as well use random.randrange(360)

while True:
  # Works great without the call to sense.get_compass()
  sense.set_imu_config( False, True, True )
  print( sense.get_orientation_degrees() )

  # When I add this, all readings become useless.
  print( sense.get_compass() )

Can anyone point out what I am doing wrong?
Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants