mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-11-09 04:41:36 +08:00
WIP: Continue adding support for Trigger slots
This commit is contained in:
@@ -600,7 +600,14 @@ void RCUpdate::UpdateManualSwitches(const hrt_abstime ×tamp_sample)
|
||||
switches.mode_slot = num_slots;
|
||||
}
|
||||
|
||||
} else if (_param_rc_map_flightmode_buttons.get() > 0) {
|
||||
}
|
||||
|
||||
for (uint8_t trig_slot = 0; trig_slot < RC_TRIG_SLOT_COUNT; trig_slot++) {
|
||||
|
||||
const bool is_btn = _param_rc_trig_btn_mask.get() && (1 << trig_slot);
|
||||
}
|
||||
|
||||
else if (_param_rc_map_flightmode_buttons.get() > 0) {
|
||||
switches.mode_slot = manual_control_switches_s::MODE_SLOT_NONE;
|
||||
bool is_consistent_button_press = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user