Skip to content

Commit

Permalink
#237: add communication/callsignVhf to 129794 and 129810 (#238)
Browse files Browse the repository at this point in the history
  • Loading branch information
wellenvogel authored Sep 1, 2024
1 parent f3747ab commit 0499e79
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pgns/129794.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ module.exports = [
return n2k.fields['Type of ship']
}
},
{
node: 'communication.callsignVhf',
source: 'Callsign'
},
{
node: 'design.beam',
source: 'Beam'
Expand Down
4 changes: 4 additions & 0 deletions pgns/129810.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,10 @@ module.exports = [
node: 'design.beam',
source: 'Beam'
},
{
node: 'communication.callsignVhf',
source: 'Callsign'
},
{
node: 'sensors.ais.fromBow',
source: 'Position reference from Bow'
Expand Down
1 change: 1 addition & 0 deletions test/129794_ais_class_a_static_data.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ describe('129794 AIS Class A Static and Voyage Related Data', function () {
)
tree.should.have.nested.property('sensors.ais.fromBow.value', 147.0)
tree.should.have.nested.property('sensors.ais.fromCenter.value', 8)
tree.should.have.nested.property('communication.callsignVhf.value', '3FJJ4')
delete tree.design.aisShipType
//TODO enable when sensors.ais.class is in the schema
//tree.should.be.validSignalKVesselIgnoringIdentity
Expand Down

0 comments on commit 0499e79

Please sign in to comment.