Skip to content

Commit

Permalink
doc: update DPT structure comments
Browse files Browse the repository at this point in the history
Improve the comments describing DPT structure.
  • Loading branch information
tkurki committed Dec 18, 2023
1 parent 3d8989f commit a027c8a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
13 changes: 8 additions & 5 deletions sentences/DPT-surface.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
/**
DPT - Depth of Water
$--DPT,x.x,x.x*hh
Fields:
- Water depth relative to transducer, meters
- Offset from transducer, meters. Positive means distance from transducer to water line, negative means distance from transducer to keel
- Checksum
1 2 3 4
| | | |
$--DPT,x.x,x.x,x.x*hh<CR><LF>
Field Number:
1. Water depth relative to transducer, meters
2. Offset from transducer, meters positive means distance from transducer to water line negative means distance from transducer to keel
3. Maximum range scale in use (NMEA 3.0 and above)
4. Checksum
*/
// NMEA0183 Encoder DPT $IIDPT,9.2,1.1*4B
const nmea = require('../nmea.js')
Expand Down
14 changes: 9 additions & 5 deletions sentences/DPT.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
/**
Depth:
$IIDPT,x.x,x.x,,*hh
I I_Sensor offset, >0 = surface transducer distance, >0 = keel transducer distance.
I_Bottom transducer distance
DPT - Depth of Water
1 2 3 4
| | | |
$--DPT,x.x,x.x,x.x*hh<CR><LF>
Field Number:
1. Water depth relative to transducer, meters
2. Offset from transducer, meters positive means distance from transducer to water line negative means distance from transducer to keel
3. Maximum range scale in use (NMEA 3.0 and above)
4. Checksum
*/
// NMEA0183 Encoder DPT $IIDPT,69.21,-0.001*60
const nmea = require('../nmea.js')
Expand Down

0 comments on commit a027c8a

Please sign in to comment.