Ticket Created
over 5 years ago

WERETECH-8397

Eclipse Watch Simulator Navigation Data Invalid

1. When accessing activity.info.track or activity.info.bearing  the units are radians with 0 as North, + values to East, -tive values to west.

2. If using Math.toDegrees(info.track) the output that is displayed  in the eclipse watch simulator for fenix 6, is the actual compass track, ie west is displayed as 270  degrees.

If sideloading the same code to the watch, it is displayed the same output as -90 degrees.

Why is there a difference between the value in the sim, and the value in the watch?

		if(info has :track && info.track != null){
			if( Math.toDegrees(info.track) >= 000 ){
				mTrack = ( Math.toDegrees(info.track) ).format("%03d");
				} else {
			//	use this to fix problem replace next line  mTrack = ( 360 + Math.toDegrees(info.track) ).format("%03d");
				mTrack = ( Math.toDegrees(info.track) ).format("%03d");
				} 
			} else {	
			mTrack = "";
			}
			
			
			//// this code returns compass track 0 - 359 in the simularion, but +180, -180 on the watch?