Update OsmAndLocationProvider.java
Try different settings
This commit is contained in:
parent
6649fb1b47
commit
91301d881c
1 changed files with 4 additions and 4 deletions
|
@ -61,12 +61,12 @@ public class OsmAndLocationProvider implements SensorEventListener {
|
||||||
|
|
||||||
|
|
||||||
private final boolean USE_KALMAN_FILTER = true;
|
private final boolean USE_KALMAN_FILTER = true;
|
||||||
private final float KALMAN_COEFFICIENT = 0.015f;
|
private final float KALMAN_COEFFICIENT = 0.5f;
|
||||||
|
|
||||||
float avgValSin = 0;
|
float avgValSin = 0;
|
||||||
float avgValCos = 0;
|
float avgValCos = 0;
|
||||||
private float[] previousCompassValuesA = new float[65];
|
private float[] previousCompassValuesA = new float[5];
|
||||||
private float[] previousCompassValuesB = new float[65];
|
private float[] previousCompassValuesB = new float[5];
|
||||||
private int previousCompassIndA = 0;
|
private int previousCompassIndA = 0;
|
||||||
private int previousCompassIndB = 0;
|
private int previousCompassIndB = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue