From 58968efb5d51854521320dc2fe6fb5ab4f335ef1 Mon Sep 17 00:00:00 2001 From: Rustom Jehangir Date: Mon, 18 Jan 2016 21:39:46 -0800 Subject: [PATCH] Sub: Fixed joystick to camera tilt control direction --- ArduSub/radio.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ArduSub/radio.cpp b/ArduSub/radio.cpp index faafa12ae9..056c144fb3 100644 --- a/ArduSub/radio.cpp +++ b/ArduSub/radio.cpp @@ -148,9 +148,9 @@ void Sub::transform_manual_control_to_rc_override(int16_t x, int16_t y, int16_t } else if ( mode & (1 << 5) ) { init_disarm_motors(); } else if ( mode & (1 << 0) ) { - camTilt = constrain_float(camTilt-20,800,2200); - } else if ( mode & (1 << 1) ) { camTilt = constrain_float(camTilt+20,800,2200); + } else if ( mode & (1 << 1) ) { + camTilt = constrain_float(camTilt-20,800,2200); } channels[0] = 1500; // pitch