Skip to content

Commit 116ca20

Browse files
authored
Merge pull request #18 from KalebKE/v1.1.5
v1.1.5
2 parents 4f928ad + 2613805 commit 116ca20

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

fsensor/build.gradle

+6-2
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,15 @@ android {
77
compileSdkVersion 26
88
buildToolsVersion '26.0.2'
99

10+
lintOptions {
11+
abortOnError false
12+
}
13+
1014
defaultConfig {
1115
minSdkVersion 14
1216
targetSdkVersion 26
13-
versionCode 1
14-
versionName "1.0"
17+
versionCode 5
18+
versionName "1.1.5"
1519

1620
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1721

fsensor/src/main/java/com/kircherelectronics/fsensor/filter/fusion/OrientationFusion.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -245,8 +245,10 @@ protected Quaternion getGyroscopeRotationVector(Quaternion previousRotationVecto
245245
}
246246

247247
protected void initializeRotationVectorGyroscopeIfRequired(Quaternion rotationVectorAccelerationMagnetic) {
248-
rotationVectorGyroscope = new Quaternion(rotationVectorAccelerationMagnetic.getScalarPart(),
248+
if(rotationVectorGyroscope == null) {
249+
rotationVectorGyroscope = new Quaternion(rotationVectorAccelerationMagnetic.getScalarPart(),
249250
rotationVectorAccelerationMagnetic.getVectorPart());
251+
}
250252
}
251253

252254
private float[] getFusedOrientation(float[] gyroscope) {

release/fsensor-release.aar

19 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)