From 36fa30aa069cf2bcc817120bbd69c3f30e0cc213 Mon Sep 17 00:00:00 2001 From: tokugawa Date: Sat, 26 Apr 2014 10:10:34 -0400 Subject: [PATCH] Removed averages from compass for recording purposes. When walking it seems to jump around more than without it, so removed until I can figure out why. --- UNCCScavenger/src/edu/uncc/scavenger/CompassActivity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/UNCCScavenger/src/edu/uncc/scavenger/CompassActivity.java b/UNCCScavenger/src/edu/uncc/scavenger/CompassActivity.java index 3697021..76f6829 100644 --- a/UNCCScavenger/src/edu/uncc/scavenger/CompassActivity.java +++ b/UNCCScavenger/src/edu/uncc/scavenger/CompassActivity.java @@ -175,7 +175,7 @@ public class CompassActivity extends Activity implements SensorEventListener //Rotate compass and arrow. Rotations must be opposite to counteract device movement compassRoseView.setRotation((long)(-1 * trueHeading)); - arrowView.setRotation((long)(-1 * finalRotation)); + arrowView.setRotation((long)(-1 * rotateArrow)); if(locationListener.getDistance() <= SEARCH_PROXIMITY) {