Skip to content

Commit

Permalink
fix: send delta for mmsi for AIS pgns (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbender9 authored and tkurki committed Nov 23, 2017
1 parent 1baf1e9 commit 600b4d9
Show file tree
Hide file tree
Showing 8 changed files with 64 additions and 0 deletions.
8 changes: 8 additions & 0 deletions pgns/129038.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,14 @@ module.exports = [
return n2k.fields['Nav Status']
}
},
{
node: '',
value: function (n2k) {
return {
mmsi: n2k.fields["User ID"].toString()
}
}
},
{
context: getMmsiContext
}
Expand Down
8 changes: 8 additions & 0 deletions pgns/129039.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ module.exports = [
source: 'Heading',
node: 'navigation.headingTrue'
},
{
node: '',
value: function (n2k) {
return {
mmsi: n2k.fields["User ID"].toString()
}
}
},
{
context: getMmsiContext
}
Expand Down
8 changes: 8 additions & 0 deletions pgns/129040.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,14 @@ module.exports = [
)
}
},
{
node: '',
value: function (n2k) {
return {
mmsi: n2k.fields["User ID"].toString()
}
}
},
{
context: getMmsiContext
}
Expand Down
8 changes: 8 additions & 0 deletions pgns/129041.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,14 @@ module.exports = [
)
}
},
{
node: '',
value: function (n2k) {
return {
mmsi: n2k.fields["User ID"].toString()
}
}
},
{
context: function (n2k) {
return 'atons.urn:mrn:imo:mmsi:' + n2k.fields['User ID']
Expand Down
8 changes: 8 additions & 0 deletions pgns/129794.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,14 @@ module.exports = [
)
}
},
{
node: '',
value: function (n2k) {
return {
mmsi: n2k.fields["User ID"].toString()
}
}
},
{
context: getMmsiContext
}
Expand Down
8 changes: 8 additions & 0 deletions pgns/129809.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ module.exports = [
}
}
},
{
node: '',
value: function (n2k) {
return {
mmsi: n2k.fields["User ID"].toString()
}
}
},
{
context: getMmsiContext
}
Expand Down
8 changes: 8 additions & 0 deletions pgns/129810.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ module.exports = [
)
}
},
{
node: '',
value: function (n2k) {
return {
mmsi: n2k.fields["User ID"].toString()
}
}
},
{
context: getMmsiContext
}
Expand Down
8 changes: 8 additions & 0 deletions pgns/130842.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ module.exports = [
)
}
},
{
node: '',
value: function (n2k) {
return {
mmsi: n2k.fields["User ID"].toString()
}
}
},
{
context: getMmsiContext
}
Expand Down

0 comments on commit 600b4d9

Please sign in to comment.