third time's the charm (fixed + confirmed tiltmix gimbal)
git-svn-id: https://afrodevices.googlecode.com/svn/trunk/baseflight@251 7c89a4a9-59b9-e629-4cfe-3a2d53b20e61
This commit is contained in:
parent
fc4693af3a
commit
785443789c
5723
obj/baseflight.hex
5723
obj/baseflight.hex
File diff suppressed because it is too large
Load Diff
|
@ -347,8 +347,8 @@ void mixTable(void)
|
|||
|
||||
if (rcOptions[BOXCAMSTAB]) {
|
||||
if (cfg.gimbal_flags & GIMBAL_MIXTILT) {
|
||||
servo[0] -= (-cfg.gimbal_roll_gain) * angle[PITCH] / 16 - cfg.gimbal_roll_gain * angle[ROLL] / 16;
|
||||
servo[1] += (-cfg.gimbal_roll_gain) * angle[PITCH] / 16 - cfg.gimbal_roll_gain * angle[ROLL] / 16;
|
||||
servo[0] -= (-cfg.gimbal_pitch_gain) * angle[PITCH] / 16 - cfg.gimbal_roll_gain * angle[ROLL] / 16;
|
||||
servo[1] += (-cfg.gimbal_pitch_gain) * angle[PITCH] / 16 + cfg.gimbal_roll_gain * angle[ROLL] / 16;
|
||||
} else {
|
||||
servo[0] += cfg.gimbal_pitch_gain * angle[PITCH] / 16;
|
||||
servo[1] += cfg.gimbal_roll_gain * angle[ROLL] / 16;
|
||||
|
|
Loading…
Reference in New Issue