File tree 3 files changed +9
-3
lines changed
src/main/java/com/kircherelectronics/fsensor/filter/fusion
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,15 @@ android {
7
7
compileSdkVersion 26
8
8
buildToolsVersion ' 26.0.2'
9
9
10
+ lintOptions {
11
+ abortOnError false
12
+ }
13
+
10
14
defaultConfig {
11
15
minSdkVersion 14
12
16
targetSdkVersion 26
13
- versionCode 1
14
- versionName " 1.0 "
17
+ versionCode 5
18
+ versionName " 1.1.5 "
15
19
16
20
testInstrumentationRunner " android.support.test.runner.AndroidJUnitRunner"
17
21
Original file line number Diff line number Diff line change @@ -245,8 +245,10 @@ protected Quaternion getGyroscopeRotationVector(Quaternion previousRotationVecto
245
245
}
246
246
247
247
protected void initializeRotationVectorGyroscopeIfRequired (Quaternion rotationVectorAccelerationMagnetic ) {
248
- rotationVectorGyroscope = new Quaternion (rotationVectorAccelerationMagnetic .getScalarPart (),
248
+ if (rotationVectorGyroscope == null ) {
249
+ rotationVectorGyroscope = new Quaternion (rotationVectorAccelerationMagnetic .getScalarPart (),
249
250
rotationVectorAccelerationMagnetic .getVectorPart ());
251
+ }
250
252
}
251
253
252
254
private float [] getFusedOrientation (float [] gyroscope ) {
You can’t perform that action at this time.
0 commit comments