Skip to content

Commit

Permalink
fix: sending wrong command for putWind (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 authored Jun 4, 2021
1 parent 304e1eb commit 9fd6802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raymarinen2k.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ module.exports = function(app) {
return { message: 'Autopilot not in wind vane mode', ...FAILURE_RES }
} else {
var new_value = Math.trunc(degsToRad(value) * 10000)
var msg = util.format(heading_command, (new Date()).toISOString(), default_src,
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))

sendN2k([msg])
Expand Down

0 comments on commit 9fd6802

Please sign in to comment.