diff --git a/README.md b/README.md index b0bd36024b4cc0964c8778bf6fc7e741a53938cf..93ab5fc66cac2adbf0632b0e1abf1e45e49442ac 100644 --- a/README.md +++ b/README.md @@ -64,8 +64,9 @@ LocaPack is available as a Node-RED Palette, ie a collection of nodes to produce ### JSON messages -LocaPack messages are also available in JSON. Example of a Universal GNSS localisation packet: +LocaPack messages are also available in JSON. +Example of a Universal GNSS localisation packet: ```json { "header": { @@ -92,6 +93,37 @@ LocaPack messages are also available in JSON. Example of a Universal GNSS locali } ``` +Example of a Locally Referenced localisation packet: +```json +{ + "LocaPack": { + "header": { + "protocol_version": 1, + "device_id_size": 2, + "packet_type": 2, + "movement_id_presence_flag": false, + "timestamp_presence_flag": true + }, + "sequence_number": 163, + "timestamp": 1630289, + "device_id": 124, + "payload": [224,0,0,128,63,0,0,0,64,0,0,64,64,0,0,128,64,136,119,102,85,68,51,34,17], + "locallyReferencedPacket": { + "header": { + "z_presence_flag": true, + "dop_presence_flag": true, + "frameofref_id_presence_flag": true + }, + "x": 1, + "y": 2, + "z": 3, + "dop": 4, + "frameofref_id": 9833440827789222000 + } + } +} +``` + ## License Locapack is distributed under the GPLv3 license. Please refer to the `LICENSE` file.