From 745d93f4db2543b4d007ea373f59173b1c3e8888 Mon Sep 17 00:00:00 2001 From: Adrien van den Bossche <vandenbo@univ-tlse2.fr> Date: Fri, 19 Jun 2020 15:55:39 +0200 Subject: [PATCH] Revert "Update README.md" This reverts commit d12c25c2334ca1b72b73b4f8f8a5d16edb088dd5 --- README.md | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index e9a982e..338f742 100644 --- a/README.md +++ b/README.md @@ -17,9 +17,9 @@ Locapack is distributed under the GPLv3 license. Please refer to the `LICENSE` f ### Packet general structure -| 2B | 2B | 0/5B | 1B (opt) | variable | 1B | 1B | variable | -|:--------:|:-----------------:|:-----------:|:-------------:|:-----------:|:--------------:|:-------------:|:-----------------------------:| -| `header` | `sequence_number` | `timestamp` | `movement_id` | `device_id` | `payload_type` | `payload_len` | `localisation_packet_payload` | +| 2B | 2B | 0/5B | 1B (opt) | variable | 1B | variable | +|:--------:|:-----------------:|:-----------:|:-------------:|:-----------:|:-------------:|:-----------------------------:| +| `header` | `sequence_number` | `timestamp` | `movement_id` | `device_id` | `payload_len` | `localisation_packet_payload` | The `sequence_number` field is mandatory. @@ -29,8 +29,6 @@ The `movement_id` field is optional and its presence is announced in the header. The `device_id` field length is annouced in the header. A length of 0 means that the field is not present in the packet, for example if the `device_id` is the same as the source address of the packet. -The `payload_type` field contains the type of localisation packet in the payload. - The `payload_len` field contains the length of the payload. The `localisation_packet_payload` length depends on the `localisation_packet_type` annouced in the header. @@ -64,8 +62,8 @@ Transport of GNSS coordinates. Altitude and DOP are optionnal. ##### Payload general structure -| 1B | 4B | 4B | 0/4B | 0/4B | -|----------|------------|-------------|------------|-------| +| 1B | 4B | 4B | 0/4B | 0/4B | +|----------|-------------|-------------|------------|-------| | `header` | `latitude` | `longitude` | `altitude` | `dop` | The `latitude` field is a C-type float and is mandatory. -- GitLab