mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 12:55:19 +03:00
Add Lux target
This commit is contained in:
parent
e973bb149f
commit
d174314692
14 changed files with 672 additions and 19 deletions
|
@ -302,7 +302,7 @@ static const uint16_t airPWM[] = {
|
|||
};
|
||||
#endif
|
||||
|
||||
#ifdef COLIBRI_RACE
|
||||
#if defined(COLIBRI_RACE) || defined(LUX_RACE)
|
||||
static const uint16_t multiPPM[] = {
|
||||
PWM1 | (MAP_TO_PPM_INPUT << 8), // PPM input
|
||||
PWM2 | (MAP_TO_MOTOR_OUTPUT << 8),
|
||||
|
@ -658,7 +658,7 @@ if (init->useBuzzerP6) {
|
|||
type = MAP_TO_SERVO_OUTPUT;
|
||||
#endif
|
||||
|
||||
#if defined(COLIBRI_RACE)
|
||||
#if defined(COLIBRI_RACE) || defined(LUX_RACE)
|
||||
// remap PWM1+2 as servos
|
||||
if ((timerIndex == PWM6 || timerIndex == PWM7 || timerIndex == PWM8 || timerIndex == PWM9) && timerHardwarePtr->tim == TIM2)
|
||||
type = MAP_TO_SERVO_OUTPUT;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue