Skip to content

Commit

Permalink
feature: assure non-AI talker support
Browse files Browse the repository at this point in the history
Add test and minimum ggencoder version so that we support
non-AI talker ids.
  • Loading branch information
tkurki committed Feb 8, 2020
1 parent 2e370bc commit 4eb87c2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"dependencies": {
"@signalk/nmea0183-utilities": "^0.7.0",
"@signalk/signalk-schema": "^1.1.1",
"ggencoder": "^1.0.2",
"ggencoder": "^1.0.3",
"moment-timezone": "^0.5.21",
"split": "^1.0.1"
},
Expand Down
4 changes: 2 additions & 2 deletions test/VDM.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ describe('VDM', function() {
delta.updates[0].values[2].value.should.equal( 3.049090203930291)
})

it('class B position report', () => {
const delta = new Parser().parse('!AIVDM,1,1,,A,B6CdCm0t3`tba35f@V9faHi7kP06,0*58\n')
it('class B position report with non-AI talker', () => {
const delta = new Parser().parse('!BSVDM,1,1,,A,B6CdCm0t3`tba35f@V9faHi7kP06,0*41\n')
delta.updates[0].values.find(pathValue => pathValue.path === 'sensors.ais.class').value.should.equal('B')
})

Expand Down

0 comments on commit 4eb87c2

Please sign in to comment.