From 551b2fc3e9faa7f8f6f132cd3933657fd6786f7d Mon Sep 17 00:00:00 2001 From: Eric Westphal Date: Thu, 16 Mar 2017 17:33:59 -0400 Subject: [PATCH] AI headings above 360 modded by 360. --- web/plates/js/ahrs.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/plates/js/ahrs.js b/web/plates/js/ahrs.js index 09560a28..4816cbbe 100644 --- a/web/plates/js/ahrs.js +++ b/web/plates/js/ahrs.js @@ -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);