Skip to content

Commit

Permalink
flip pitch
Browse files Browse the repository at this point in the history
  • Loading branch information
mzakharo committed Jan 7, 2021
1 parent 092ee9d commit 563f712
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,9 @@ def onSensorChanged(self, event):
#use cos theta/2 instead of calculated azimuth, for better accuracy?
values[0] = event.values[3]

#flip pitch direction for graph to follow phone movement
values[1] = -values[1]

with self.lock:
self.q.append(values)
self.tq.append(event.timestamp)
Expand Down

0 comments on commit 563f712

Please sign in to comment.