1
0
Fork 0

Normalize angles for bearings on tanker.

Patch from Jean PELLOTIER.
This commit is contained in:
Stuart Buchanan 2013-04-12 20:52:04 +01:00
parent fd4e61869b
commit cad64a9711

View file

@ -257,8 +257,8 @@ var Tanker = {
} }
} }
me.hOffsetN.setDoubleValue(me.bearing - ac_hdg); me.hOffsetN.setDoubleValue(view.normdeg(me.bearing - ac_hdg));
me.vOffsetN.setDoubleValue(elev - ac_pitch); me.vOffsetN.setDoubleValue(view.normdeg(elev - ac_pitch));
var droll = me.roll_target - me.roll; var droll = me.roll_target - me.roll;
if (droll > 0) { if (droll > 0) {