Sub: Add camera source toggle and input hold button options

This commit is contained in:
Jacob Walser 2017-02-07 14:28:35 -05:00 committed by Andrew Tridgell
parent f26602ab6d
commit c711fedc4c
1 changed files with 4 additions and 0 deletions

View File

@ -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;
}
}