1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-16 12:55:19 +03:00

Fixed servo mapping on cc3d for tricopter configuration

This commit is contained in:
U-THINKPADWIN\František Horínek 2015-06-22 11:08:24 +02:00 committed by borisbstyle
parent 63f88cc208
commit 7a3acbabef

View file

@ -664,6 +664,12 @@ if (init->useBuzzerP6) {
type = MAP_TO_SERVO_OUTPUT;
#endif
#if defined(CC3D)
// remap PWM9+10 as servos
if ((timerIndex == PWM9 || timerIndex == PWM10) && timerHardwarePtr->tim == TIM1)
type = MAP_TO_SERVO_OUTPUT;
#endif
#if defined(SPARKY)
// remap PWM1+2 as servos
if ((timerIndex == PWM1 || timerIndex == PWM2) && timerHardwarePtr->tim == TIM15)