From 6f7c7c557af2c28e3fe41ffa13a93e74e1349535 Mon Sep 17 00:00:00 2001
From: Ivan Epifanov <[EMAIL REDACTED]>
Date: Sat, 5 Dec 2020 22:38:12 +0300
Subject: [PATCH] sensors corrections
---
src/sensor/vita/SDL_vitasensor.c | 5 +++--
src/sensor/vita/SDL_vitasensor.h | 2 +-
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/sensor/vita/SDL_vitasensor.c b/src/sensor/vita/SDL_vitasensor.c
index 5e74397af..e54d279aa 100644
--- a/src/sensor/vita/SDL_vitasensor.c
+++ b/src/sensor/vita/SDL_vitasensor.c
@@ -44,9 +44,10 @@ SDL_VITA_SensorInit(void)
{
sceMotionReset();
sceMotionStartSampling();
-// sceMotionMagnetometerOn();
+ // not sure if these are needed, we are reading unfiltered state
sceMotionSetAngleThreshold(0);
- sceMotionSetGyroBiasCorrection(SCE_FALSE);
+ sceMotionSetDeadband(SCE_FALSE);
+ sceMotionSetTiltCorrection(SCE_FALSE);
SDL_sensors_count = 2;
diff --git a/src/sensor/vita/SDL_vitasensor.h b/src/sensor/vita/SDL_vitasensor.h
index 0c16044e1..b10384231 100644
--- a/src/sensor/vita/SDL_vitasensor.h
+++ b/src/sensor/vita/SDL_vitasensor.h
@@ -24,7 +24,7 @@
struct sensor_hwdata
{
float data[3];
- int counter;
+ Uint32 counter;
};
/* vi: set ts=4 sw=4 expandtab: */