Skip to content

Commit

Permalink
fix: don't convert putTarget heading value - seatalk (#17)
Browse files Browse the repository at this point in the history
same as #16 but forseatalk
  • Loading branch information
joabakk authored Aug 19, 2021
1 parent d7c51af commit dadeef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion raymarinest.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ module.exports = function(app) {
if ( state !== 'wind' ) {
return { message: 'Autopilot not in wind vane mode', ...FAILURE_RES }
} else {
var new_value = Math.trunc(radsToDeg(value))
var new_value = Math.trunc(value)
if (new_value > 180) new_value-=180
var XX = 2* parseInt(new_value/256)
var YY = 2*(new_value-XX)
Expand Down

0 comments on commit dadeef7

Please sign in to comment.