Skip to content

Commit e9ff79d

Browse files
committed
Migrating Checkers and SensorConfigs to new SensorType values utility methods
1 parent 34e82c0 commit e9ff79d

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

android-sensors/src/main/java/com/ubikgs/androidsensors/checkers/applevel/BasicSensorRequirementChecker.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ public BasicSensorRequirementChecker() {
3434
criticalSensors = new HashSet<>(Arrays.asList(SensorType.values()));
3535

3636
criticalSensors.removeAll(Arrays.asList(
37-
SensorType.RAW_GPS_MEASUREMENTS,
38-
SensorType.RAW_GPS_NAVIGATION,
39-
SensorType.RAW_GPS_STATUS
37+
SensorType.rawGPSValues()
4038
));
4139
}
4240

android-sensors/src/main/java/com/ubikgs/androidsensors/config/BasicSensorConfig.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,7 @@ public BasicSensorConfig(long minSensorDelayMs,
4040
this.millisecondsToMicroseconds = millisecondsToMicroseconds;
4141

4242
this.sensorsRunningInMicroseconds = new HashSet<>(Arrays.asList(
43-
SensorType.ACCELEROMETER,
44-
SensorType.GRAVITY,
45-
SensorType.GYROSCOPE,
46-
SensorType.LINEAR_ACCELERATION,
47-
SensorType.MAGNETIC_FIELD,
48-
SensorType.ROTATION_VECTOR
43+
SensorType.imuValues()
4944
));
5045
}
5146

0 commit comments

Comments
 (0)