nitroman123 / Ship-Simulator-Realistic

0 stars 0 forks source link

Compass Display is Incorrect by 180 deg #19

Open jesawyers opened 2 years ago

jesawyers commented 2 years ago

Exiting Syros with mini map in north up mode.

Based on the mini map my heading should be around 115 deg.

The compass is showing an error of 180 degrees. If you take the displayed compass heading of 295 and subtract 180 you get the correct heading of 115 degrees.

image

nitroman123 commented 2 years ago

when the north up is selected the compass doesnt change i think it shows correct but not sure.

jesawyers commented 2 years ago

Compass is incorrect. If the mini map is north up, then the mini map is showing the correct direction the ship is pointed. This means 090 is to the right on the mini map, 180 is down, 270 is to the left. Based on this and how the ship is oriented on the mini map, the ships heading is around 115 deg.

jesawyers commented 2 years ago

Yes I agree that when in north up mode that the compass does not change.

image

jesawyers commented 2 years ago

This was done on the Full screen map which is always in north up mode.

nitroman123 commented 2 years ago

This was done on the Full screen map which is always in north up mode.

thats correct so i need to divide by 180 ?

jesawyers commented 2 years ago

Subtracting 180 in this situation will give the correct heading.

If you simply subtract 180 from your current calculation, you will need to check to see if the new heading is less that 000 or >= 359.99999 (360).

Simply subtracting 180 from your current calculation could give you values not between 000 or 359.9999 (360).