Skip to content

Commit

Permalink
Emit both $STALK and $PSMDST (#12)
Browse files Browse the repository at this point in the history
* Emit both $STALK and $PSMDST

Adds support fro Miniplex 3 multiplexers with seatalk translation
  • Loading branch information
joabakk authored Jan 26, 2021
1 parent a63530b commit bf555fc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ To be able to acknowledge pilot related alarms through the GUI you need to insta

This currently only supports Raymarine NMEA 2000 and Raymarine Seatalk 1 Autopilots, but I'll be adding support for other autopilots as needed.

For Seatalk 1 Autopilots to work, a device that can translate Seatalk datagrams back and forth within an NMEA0183 sentence is required. They may be purchased from [Digital Yacht](https://digitalyachtamerica.com/product/st-nmea-usb/)) or [gadgetpool](http://www.gadgetpool.eu/product_info.php?products_id=54). For an example guide, see [TinyNMEA-USB.md](TinyNMEA-USB.md)
For Seatalk 1 Autopilots to work, a device that can translate Seatalk datagrams back and forth within an NMEA0183 sentence is required. They may be purchased from [Digital Yacht](https://digitalyachtamerica.com/product/st-nmea-usb/), [Shipmodul (Miniplex 3)](http://www.shipmodul.com/en/index.html) or [gadgetpool](http://www.gadgetpool.eu/product_info.php?products_id=54). For an example guide, see [TinyNMEA-USB.md](TinyNMEA-USB.md)

Also, signalk-to-nmea0183 plugin with APB (for route control) and MWV (for wind steer) should be enabled.

Expand Down
6 changes: 6 additions & 0 deletions raymarinest.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,12 @@ module.exports = function(app) {
])
app.debug("datagram: " + datagram)
app.emit(outputEvent, sentence)

var sentence = toSentence([
'$PSMDST',
datagram
])
app.emit(outputEvent, sentence)
}

pilot.putTargetHeading = (context, path, value, cb) => {
Expand Down

0 comments on commit bf555fc

Please sign in to comment.