sense_the_rythm

rythm game for ESense Earable
git clone git://source.orangerot.dev:/university/sense_the_rythm.git
Log | Files | Refs | README | LICENSE

commit 94463a490c039d79a7a5fcd642c0ed2411a509cd
parent 4c1d029216c29f786f12fa278b9dd7bf39129235
Author: Orangerot <purple@orangerot.dev>
Date:   Mon, 13 Jan 2025 20:42:13 +0100

fix: calibrate input ranges for gyroscope (better but left/right still not good)

Diffstat:
Mlib/utils/esense_input.dart | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/lib/utils/esense_input.dart b/lib/utils/esense_input.dart @@ -139,10 +139,10 @@ class ESenseInput { } InputDirection getInputDirection(ArrowDirection expect) { - inputDirection.up = z > 270 && z < 340; - inputDirection.down = z > 40 && z < 180; - inputDirection.left = y > 40 && y < 180; - inputDirection.right = y > 270 && y < 340; + inputDirection.up = z > 180 && z < 340; + inputDirection.down = z > 20 && z < 180; + inputDirection.left = y > 0 && y < 180; + inputDirection.right = y > 180 && y < 360; if (expect == ArrowDirection.up && inputDirection.up || expect == ArrowDirection.down && inputDirection.down) {