From c05cd6828078dab9ede5a701b16644085b03e816 Mon Sep 17 00:00:00 2001 From: Scott Bender Date: Mon, 7 Jun 2021 16:09:20 -0400 Subject: [PATCH] fix: don't convert putTarget heaading value (#16) --- raymarinen2k.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/raymarinen2k.js b/raymarinen2k.js index 74c73cf..746f045 100644 --- a/raymarinen2k.js +++ b/raymarinen2k.js @@ -119,7 +119,7 @@ module.exports = function(app) { if ( state !== 'wind' ) { return { message: 'Autopilot not in wind vane mode', ...FAILURE_RES } } else { - var new_value = Math.trunc(degsToRad(value) * 10000) + var new_value = Math.trunc(value * 10000) var msg = util.format(wind_direction_command, (new Date()).toISOString(), default_src, autopilot_dst, padd((new_value & 0xff).toString(16), 2), padd(((new_value >> 8) & 0xff).toString(16), 2))