Browse Source

sensors corrections

Ivan Epifanov 4 years ago
parent
commit
6f7c7c557a
2 changed files with 4 additions and 3 deletions
  1. 3 2
      src/sensor/vita/SDL_vitasensor.c
  2. 1 1
      src/sensor/vita/SDL_vitasensor.h

+ 3 - 2
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;
 

+ 1 - 1
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: */