Fixed problem with analysing only 3d data rather than vector magnitude.
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
android:versionCode="137"
|
||||
android:versionName="4.2.3a">
|
||||
android:versionName="4.2.3c">
|
||||
<!-- android:allowBackup="false" -->
|
||||
<uses-permission android:name="android.permission.BLUETOOTH" />
|
||||
<uses-permission android:name="android.permission.BLUETOOTH_ADMIN" />
|
||||
|
||||
@@ -363,6 +363,7 @@ public abstract class SdDataSource {
|
||||
z = mSdData.rawData3D[i*3 + 2];
|
||||
mSdData.rawData[i] = Math.sqrt(x*x + y*y + z*z);
|
||||
}
|
||||
mSdData.mNsamp = 125;
|
||||
} else {
|
||||
// If we do not have vector magnitude or 3d data, set the vector magnitude array to zero.
|
||||
Log.e(TAG, "ERROR - no accelerometer data received - setting it to zero");
|
||||
|
||||
Reference in New Issue
Block a user