From 09c96ad8c8d18b24844c8ff451996de4fce19fbf Mon Sep 17 00:00:00 2001 From: Jason Protzman Date: Fri, 2 Dec 2022 16:47:41 -0500 Subject: [PATCH 1/2] Update to accomodate ShipModul Miniplex The Shipmodul Miniplex now uses R and C to represent a message being received or sent. This update adds C to each PSMDST message so that the Miniplex will accept the message. Example: $PSMDST,C,XX,YY,ZZ --- raymarinest.js | 1 + 1 file changed, 1 insertion(+) diff --git a/raymarinest.js b/raymarinest.js index a45ab92..32cdf10 100644 --- a/raymarinest.js +++ b/raymarinest.js @@ -68,6 +68,7 @@ module.exports = function(app) { var sentence = toSentence([ '$PSMDST', + 'C', datagram ]) app.emit(outputEvent, sentence) From 5b61ab3d2b1f731d3af6a5fcb9a2139977434e71 Mon Sep 17 00:00:00 2001 From: Jason Protzman Date: Fri, 2 Dec 2022 17:34:35 -0500 Subject: [PATCH 2/2] Changing to include original PSMDST This change will include both the original PSMDST and the new PSMDST with C based on ShipModul current firmware. --- raymarinest.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/raymarinest.js b/raymarinest.js index 32cdf10..f09a281 100644 --- a/raymarinest.js +++ b/raymarinest.js @@ -66,6 +66,12 @@ module.exports = function(app) { app.debug("datagram: " + datagram) app.emit(outputEvent, sentence) + var sentence = toSentence([ + '$PSMDST', + datagram + ]) + app.emit(outputEvent, sentence) + var sentence = toSentence([ '$PSMDST', 'C',