Wind arrow now points in the direction the wind is blowing, as per P.O feedback (again....).

main
fjc40 9 years ago
parent a9fde95b39
commit eb980c436e

@ -136,12 +136,8 @@ public class ArrowController {
* @param bearing The bearing to use to rotate arrow.
*/
private void updateWindBearing(Bearing bearing) {
//We need to display wind-from, so add 180 degrees.
Bearing fromBearing = Bearing.fromDegrees(bearing.degrees() + 180d);
//Rotate the wind arrow.
arrowStackPane.setRotate(fromBearing.degrees());
arrowStackPane.setRotate(bearing.degrees());
}

Loading…
Cancel
Save