mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-04-14 10:07:39 +08:00
53 lines
1.9 KiB
Markdown
53 lines
1.9 KiB
Markdown
---
|
|
pageClass: is-wide-page
|
|
---
|
|
|
|
# GpsDump (UORB message)
|
|
|
|
This message is used to dump the raw gps communication to the log.
|
|
|
|
**TOPICS:** gps_dump
|
|
|
|
## Fields
|
|
|
|
| Name | Type | Unit [Frame] | Range/Enum | Description |
|
|
| --------- | ----------- | ------------ | ---------- | -------------------------------------------------------- |
|
|
| timestamp | `uint64` | | | time since system start (microseconds) |
|
|
| instance | `uint8` | | | Instance of GNSS receiver |
|
|
| device_id | `uint32` | | |
|
|
| len | `uint8` | | | length of data, MSB bit set = message to the gps device, |
|
|
| data | `uint8[79]` | | | data to write to the log |
|
|
|
|
## Constants
|
|
|
|
| Name | Type | Value | Description |
|
|
| --------------------------------------------------- | ------- | ----- | ----------- |
|
|
| <a id="#INSTANCE_MAIN"></a> INSTANCE_MAIN | `uint8` | 0 |
|
|
| <a id="#INSTANCE_SECONDARY"></a> INSTANCE_SECONDARY | `uint8` | 1 |
|
|
| <a id="#ORB_QUEUE_LENGTH"></a> ORB_QUEUE_LENGTH | `uint8` | 16 |
|
|
|
|
## Source Message
|
|
|
|
[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/GpsDump.msg)
|
|
|
|
::: details Click here to see original file
|
|
|
|
```c
|
|
# This message is used to dump the raw gps communication to the log.
|
|
|
|
uint64 timestamp # time since system start (microseconds)
|
|
|
|
uint8 INSTANCE_MAIN = 0
|
|
uint8 INSTANCE_SECONDARY = 1
|
|
|
|
uint8 instance # Instance of GNSS receiver
|
|
uint32 device_id
|
|
uint8 len # length of data, MSB bit set = message to the gps device,
|
|
# clear = message from the device
|
|
uint8[79] data # data to write to the log
|
|
|
|
uint8 ORB_QUEUE_LENGTH = 16
|
|
```
|
|
|
|
:::
|