Sub: Add pitch trim to joystick.cpp

This commit is contained in:
Rustom Jehangir 2016-04-18 17:05:06 -07:00 committed by Andrew Tridgell
parent 3670fc3547
commit d0130136f0
1 changed files with 1 additions and 1 deletions

View File

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