AI headings above 360 modded by 360.

pull/578/head
Eric Westphal 2017-03-16 17:33:59 -04:00
rodzic 2a40f80e5e
commit 551b2fc3e9
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -74,7 +74,7 @@ function ahrsRenderer(locationId) {
for (i=-200; i<=920; i+=20) {
if (i%60==0) {
this.headingMarks.line(i, 175, i, 178);
this.headingMarks.text((i<0 ? (i/2+360) : i/2).toString()).x(i).cy(185).addClass('markText');
this.headingMarks.text(((i<0 ? (i/2+360) : i/2)%360).toString()).x(i).cy(185).addClass('markText');
this.headingMarks.line(i, 192, i, 195);
} else {
this.headingMarks.line(i, 175, i, 195).style('stroke-width', 1);