UNPKG

@signalk/n2k-signalk

Version:

NMEA 2000 to SignalK conversion library

18 lines 615 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const ts_pgns_1 = require("@canboat/ts-pgns"); module.exports = [ { source: 'headingToSteerCourse', node: function (n2k) { const reference = n2k.fields.headingReference === ts_pgns_1.DirectionReference.Magnetic ? 'Magnetic' : 'True'; return `steering.autopilot.target.heading${reference}`; }, filter: function (n2k) { return typeof n2k.fields.headingToSteerCourse !== 'undefined'; } } ]; //# sourceMappingURL=127237.js.map