mirror of
https://github.com/PX4/PX4-Autopilot.git
synced 2026-11-22 14:19:57 +08:00
45 lines
3.3 KiB
Markdown
45 lines
3.3 KiB
Markdown
---
|
|
pageClass: is-wide-page
|
|
---
|
|
|
|
# EscEepromRead (UORB message)
|
|
|
|
**TOPICS:** esc_eeprom_read
|
|
|
|
## Fields
|
|
|
|
| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 |
|
|
| ---------------------------------------------------------------------- | ----------- | ---------------------------------------------------------------- | ---------- | ------------------------------------------------------------------------------------------------ |
|
|
| <a id="fld_timestamp"></a>timestamp | `uint64` | us | | Time since system start |
|
|
| <a id="fld_timestamp_sample"></a>timestamp_sample | `uint64` | us | | Time the dump was read from the ESC. Unchanged when a cached dump is republished |
|
|
| <a id="fld_firmware"></a>firmware | `uint8` | | | ESC firmware type (see ESC_FIRMWARE enum in MAVLink) |
|
|
| <a id="fld_index"></a>index | `uint8` | | | Index of the ESC (0 = ESC1, 1 = ESC2, etc.) |
|
|
| <a id="fld_length"></a>length | `uint16` | | | Length of valid data |
|
|
| <a id="fld_data"></a>data | `uint8[48]` | | | Raw ESC EEPROM data |
|
|
|
|
## Constants
|
|
|
|
| 参数名 | 类型 | 值 | 描述 |
|
|
| ----------------------------------------------------------------------------------------- | ------- | -- | ------------------------------------------------------------------------------------------------------------------- |
|
|
| <a id="#ORB_QUEUE_LENGTH"></a> ORB_QUEUE_LENGTH | `uint8` | 12 | One dump per ESC, up to esc_status CONNECTED_ESC_MAX |
|
|
|
|
## Source Message
|
|
|
|
[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/EscEepromRead.msg)
|
|
|
|
:::details
|
|
Click here to see original file
|
|
|
|
```c
|
|
uint64 timestamp # [us] Time since system start
|
|
uint64 timestamp_sample # [us] Time the dump was read from the ESC. Unchanged when a cached dump is republished
|
|
uint8 firmware # [-] ESC firmware type (see ESC_FIRMWARE enum in MAVLink)
|
|
uint8 index # [-] Index of the ESC (0 = ESC1, 1 = ESC2, etc.)
|
|
uint16 length # [-] Length of valid data
|
|
uint8[48] data # [-] Raw ESC EEPROM data
|
|
|
|
uint8 ORB_QUEUE_LENGTH = 12 # One dump per ESC, up to esc_status CONNECTED_ESC_MAX
|
|
```
|
|
|
|
:::
|