From 563f712f100547f3eb189bac515e574ea809d03b Mon Sep 17 00:00:00 2001 From: Mikhail Zakharov Date: Thu, 7 Jan 2021 17:11:49 -0500 Subject: [PATCH] flip pitch --- compat.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compat.py b/compat.py index 2312048..2f4a7c0 100644 --- a/compat.py +++ b/compat.py @@ -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)