mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
Fixed servo mapping on cc3d for tricopter configuration
This commit is contained in:
parent
63f88cc208
commit
7a3acbabef
1 changed files with 6 additions and 0 deletions
|
@ -664,6 +664,12 @@ if (init->useBuzzerP6) {
|
||||||
type = MAP_TO_SERVO_OUTPUT;
|
type = MAP_TO_SERVO_OUTPUT;
|
||||||
#endif
|
#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)
|
#if defined(SPARKY)
|
||||||
// remap PWM1+2 as servos
|
// remap PWM1+2 as servos
|
||||||
if ((timerIndex == PWM1 || timerIndex == PWM2) && timerHardwarePtr->tim == TIM15)
|
if ((timerIndex == PWM1 || timerIndex == PWM2) && timerHardwarePtr->tim == TIM15)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue