mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-03 14:38:52 +08:00
New Crowdin translations - zh-CN (#26488)
Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
This commit is contained in:
co-authored by
Crowdin Bot
parent
7ef57f6262
commit
47d5971f42
@@ -1,8 +1,35 @@
|
||||
---
|
||||
pageClass: is-wide-page
|
||||
---
|
||||
|
||||
# PowerButtonState (UORB message)
|
||||
|
||||
power button state notification message
|
||||
power button state notification message.
|
||||
|
||||
[source file](https://github.com/PX4/PX4-Autopilot/blob/main/msg/PowerButtonState.msg)
|
||||
**TOPICS:** power_buttonstate
|
||||
|
||||
## Fields
|
||||
|
||||
| 参数名 | 类型 | Unit [Frame] | Range/Enum | 描述 |
|
||||
| --------- | -------- | ---------------------------------------------------------------- | ---------- | --------------------------------------------------------- |
|
||||
| timestamp | `uint64` | | | time since system start (microseconds) |
|
||||
| event | `uint8` | | | one of PWR_BUTTON_STATE_\* |
|
||||
|
||||
## Constants
|
||||
|
||||
| 参数名 | 类型 | 值 | 描述 |
|
||||
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- | - | ------------------------------------------------------------------------------------------ |
|
||||
| <a href="#PWR_BUTTON_STATE_IDEL"></a> PWR_BUTTON_STATE_IDEL | `uint8` | 0 | Button went up without meeting shutdown button down time (delete event) |
|
||||
| <a href="#PWR_BUTTON_STATE_DOWN"></a> PWR_BUTTON_STATE_DOWN | `uint8` | 1 | Button went Down |
|
||||
| <a href="#PWR_BUTTON_STATE_UP"></a> PWR_BUTTON_STATE_UP | `uint8` | 2 | Button went Up |
|
||||
| <a href="#PWR_BUTTON_STATE_REQUEST_SHUTDOWN"></a> PWR_BUTTON_STATE_REQUEST_SHUTDOWN | `uint8` | 3 | Button went Up after meeting shutdown button down time |
|
||||
|
||||
## Source Message
|
||||
|
||||
[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/PowerButtonState.msg)
|
||||
|
||||
:::details
|
||||
Click here to see original file
|
||||
|
||||
```c
|
||||
# power button state notification message
|
||||
@@ -15,5 +42,6 @@ uint8 PWR_BUTTON_STATE_UP = 2 # Button went Up
|
||||
uint8 PWR_BUTTON_STATE_REQUEST_SHUTDOWN = 3 # Button went Up after meeting shutdown button down time
|
||||
|
||||
uint8 event # one of PWR_BUTTON_STATE_*
|
||||
|
||||
```
|
||||
|
||||
:::
|
||||
|
||||
Reference in New Issue
Block a user