mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-02-23 00:04:02 -04:00
Sub: Add camera source toggle and input hold button options
This commit is contained in:
parent
f26602ab6d
commit
c711fedc4c
@ -107,6 +107,8 @@ void Sub::handle_jsbutton_press(uint8_t button, bool shift) {
|
||||
break;
|
||||
case JSButton::button_function_t::k_camera_trigger:
|
||||
break;
|
||||
case JSButton::button_function_t::k_camera_source_toggle:
|
||||
break;
|
||||
case JSButton::button_function_t::k_lights1_cycle:
|
||||
{
|
||||
static bool increasing = true;
|
||||
@ -177,6 +179,8 @@ void Sub::handle_jsbutton_press(uint8_t button, bool shift) {
|
||||
case JSButton::button_function_t::k_trim_pitch_dec:
|
||||
pitchTrim = constrain_float(pitchTrim-10,-200,200);
|
||||
break;
|
||||
case JSButton::button_function_t::k_input_hold_toggle:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user