docs: auto-sync metadata [skip ci]

Co-Authored-By: PX4 BuildBot <bot@px4.io>
This commit is contained in:
PX4BuildBot
2026-02-11 22:43:01 +00:00
parent 01b348c86b
commit 36b5e1e1bb
374 changed files with 12147 additions and 1765 deletions
+51 -2
View File
@@ -1,6 +1,54 @@
---
pageClass: is-wide-page
---
# ManualControlSwitches (UORB message)
[source file](https://github.com/PX4/PX4-Autopilot/blob/main/msg/ManualControlSwitches.msg)
**TOPICS:** manual_controlswitches
## Fields
| Name | Type | Unit [Frame] | Range/Enum | Description |
| ------------------------ | -------- | ------------ | ---------- | ------------------------------------------------------------- |
| timestamp | `uint64` | | | time since system start (microseconds) |
| timestamp_sample | `uint64` | | | the timestamp of the raw data (microseconds) |
| mode_slot | `uint8` | | | the slot a specific model selector is in |
| arm_switch | `uint8` | | | arm/disarm switch: _DISARMED_, ARMED |
| return_switch | `uint8` | | | return to launch 2 position switch (mandatory): _NORMAL_, RTL |
| loiter_switch | `uint8` | | | loiter 2 position switch (optional): _MISSION_, LOITER |
| offboard_switch | `uint8` | | | offboard 2 position switch (optional): _NORMAL_, OFFBOARD |
| kill_switch | `uint8` | | | throttle kill: _NORMAL_, KILL |
| termination_switch | `uint8` | | | trigger termination which cannot be undone |
| gear_switch | `uint8` | | | landing gear switch: _DOWN_, UP |
| transition_switch | `uint8` | | | VTOL transition switch: \_HOVER, FORWARD_FLIGHT |
| photo_switch | `uint8` | | | Photo trigger switch |
| video_switch | `uint8` | | | Photo trigger switch |
| engage_main_motor_switch | `uint8` | | | Engage the main motor (for helicopters) |
| payload_power_switch | `uint8` | | | Payload power switch |
| switch_changes | `uint32` | | | number of switch changes |
## Constants
| Name | Type | Value | Description |
| --------------------------------------------------- | ------- | ----- | --------------------------------- |
| <a href="#SWITCH_POS_NONE"></a> SWITCH_POS_NONE | `uint8` | 0 | switch is not mapped |
| <a href="#SWITCH_POS_ON"></a> SWITCH_POS_ON | `uint8` | 1 | switch activated (value = 1) |
| <a href="#SWITCH_POS_MIDDLE"></a> SWITCH_POS_MIDDLE | `uint8` | 2 | middle position (value = 0) |
| <a href="#SWITCH_POS_OFF"></a> SWITCH_POS_OFF | `uint8` | 3 | switch not activated (value = -1) |
| <a href="#MODE_SLOT_NONE"></a> MODE_SLOT_NONE | `uint8` | 0 | no mode slot assigned |
| <a href="#MODE_SLOT_1"></a> MODE_SLOT_1 | `uint8` | 1 | mode slot 1 selected |
| <a href="#MODE_SLOT_2"></a> MODE_SLOT_2 | `uint8` | 2 | mode slot 2 selected |
| <a href="#MODE_SLOT_3"></a> MODE_SLOT_3 | `uint8` | 3 | mode slot 3 selected |
| <a href="#MODE_SLOT_4"></a> MODE_SLOT_4 | `uint8` | 4 | mode slot 4 selected |
| <a href="#MODE_SLOT_5"></a> MODE_SLOT_5 | `uint8` | 5 | mode slot 5 selected |
| <a href="#MODE_SLOT_6"></a> MODE_SLOT_6 | `uint8` | 6 | mode slot 6 selected |
| <a href="#MODE_SLOT_NUM"></a> MODE_SLOT_NUM | `uint8` | 6 | number of slots |
## Source Message
[Source file (GitHub)](https://github.com/PX4/PX4-Autopilot/blob/main/msg/ManualControlSwitches.msg)
::: details Click here to see original file
```c
uint64 timestamp # time since system start (microseconds)
@@ -40,5 +88,6 @@ uint8 engage_main_motor_switch # Engage the main motor (for helicopters)
uint8 payload_power_switch # Payload power switch
uint32 switch_changes # number of switch changes
```
:::