Got the live ac35 data working in paralell with the parse and the app. Boats move and the live data works correctly. We need to fix the markers now

#story[818]
This commit is contained in:
Kusal Ekanayake
2017-04-27 16:18:33 +12:00
parent 104fd86179
commit 0a22812165
5 changed files with 7 additions and 5 deletions
@@ -594,7 +594,7 @@ public class CanvasController {
yAxisLocation += (int) Math.round(distanceScaleFactor * Math.sin(angleFromReference) * distanceFromReference);
} else if (angleFromReference < 0 && angleFromReference >= -Math.PI / 2) {
//System.out.println("3");
System.out.println(distanceFromReference);
// System.out.println(distanceFromReference);
angleFromReference = Math.abs(angleFromReference);
System.out.println(Math.cos(angleFromReference) * distanceFromReference);
xAxisLocation -= (int) Math.round(distanceScaleFactor * Math.sin(angleFromReference) * distanceFromReference);