Files
PX4-Autopilot/docs/en/msg_docs/PowerButtonState.md
PX4BuildBot d965df930c docs: auto-sync metadata [skip ci]
Co-Authored-By: PX4 BuildBot <bot@px4.io>
2026-02-23 18:34:11 +00:00

2.3 KiB

pageClass
pageClass
is-wide-page

PowerButtonState (UORB message)

power button state notification message.

TOPICS: power_button_state

Fields

Name Type Unit [Frame] Range/Enum Description
timestamp uint64 time since system start (microseconds)
event uint8 one of PWRBUTTON_STATE*

Constants

Name Type Value Description
PWR_BUTTON_STATE_IDEL uint8 0 Button went up without meeting shutdown button down time (delete event)
PWR_BUTTON_STATE_DOWN uint8 1 Button went Down
PWR_BUTTON_STATE_UP uint8 2 Button went Up
PWR_BUTTON_STATE_REQUEST_SHUTDOWN uint8 3 Button went Up after meeting shutdown button down time

Source Message

Source file (GitHub)

::: details Click here to see original file

# power button state notification message

uint64 timestamp			    # time since system start (microseconds)

uint8 PWR_BUTTON_STATE_IDEL = 0             # Button went up without meeting shutdown button down time (delete event)
uint8 PWR_BUTTON_STATE_DOWN = 1             # Button went Down
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_*

:::