From d0130136f0272416690e6797735fd8bde34bb2c5 Mon Sep 17 00:00:00 2001 From: Rustom Jehangir Date: Mon, 18 Apr 2016 17:05:06 -0700 Subject: [PATCH] Sub: Add pitch trim to joystick.cpp --- ArduSub/joystick.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduSub/joystick.cpp b/ArduSub/joystick.cpp index 25bdf8ca64..e856fb9f6d 100644 --- a/ArduSub/joystick.cpp +++ b/ArduSub/joystick.cpp @@ -49,7 +49,7 @@ void Sub::transform_manual_control_to_rc_override(int16_t x, int16_t y, int16_t } // Set channels to override - channels[0] = 1500; // pitch + channels[0] = 1500 + pitchTrim; // pitch channels[1] = 1500 + rollTrim; // roll channels[2] = z*throttleScale+throttleBase; // throttle channels[3] = r*rpyScale+rpyCenter; // yaw