Browse Source

Sub: Add camera source toggle and input hold button options

master
Jacob Walser 8 years ago committed by Andrew Tridgell
parent
commit
c711fedc4c
  1. 4
      ArduSub/joystick.cpp

4
ArduSub/joystick.cpp

@ -107,6 +107,8 @@ void Sub::handle_jsbutton_press(uint8_t button, bool shift) { @@ -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) { @@ -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…
Cancel
Save