Don't use get_compass as it breaks get_orientation

This commit is contained in:
Nick O'Leary
2016-05-09 15:14:56 +01:00
parent b0c5c8c8f4
commit 34c42eed61
2 changed files with 3 additions and 2 deletions

View File

@@ -196,7 +196,8 @@ def idle_work():
now = time.time()
if hf_enabled and (now-last_hf_time > hf_interval):
orientation = SH.get_orientation()
compass = SH.get_compass()
# Calling get_compass interferes with get_orientation - so just reuse its value
compass = orientation['yaw']
gyro = SH.get_gyroscope_raw()
accel = SH.get_accelerometer_raw()