app/rcc/scripts/native/nmea_2000.md
Decodes common marine PGNs (attitude, position, speed, depth and environment) from preprocessed CAN frames. Values latch between frames.
[CAN id: 4 bytes little-endian][data length][data: up to 8 bytes]
The PGN is extracted from the 29-bit CAN identifier.
This template has no parameters.
| Channel | Value | PGN |
|---|---|---|
| 1-3 | Yaw, pitch, roll (degrees) | 127257 |
| 4-5 | Latitude, longitude (degrees) | 129025 |
| 6-8 | COG (degrees), SOG (knots), reference | 129026 |
| 9-10 | Water speed, ground speed (knots) | 128259 |
| 11-12 | Depth (m), transducer offset (m) | 128267 |
| 13-14 | Water and outside temperature (Celsius) | 130310 |
| 15-17 | Pressure (hPa), air temperature (Celsius), humidity (%) | 130311 |
Select the Binary (raw bytes) decoder. Frames with unknown PGNs are ignored.