1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-23 00:05:33 +03:00

Replace gimbal_flags with FEATURE_CHANNEL_FORWARDING and gimbal_mode.

Gimbals are only one use of channel forwarding, PWM video switchers and
PWM buzzers are others.
This commit is contained in:
Dominic Clifton 2015-07-08 16:41:29 +01:00
parent 4ead898f6f
commit 7b91524ba2
10 changed files with 23 additions and 16 deletions

View file

@ -249,7 +249,7 @@ void init(void)
#ifdef USE_SERVOS
pwm_params.useServos = isMixerUsingServos();
pwm_params.extraServos = currentProfile->gimbalConfig.gimbal_flags & GIMBAL_FORWARDAUX;
pwm_params.useChannelForwarding = feature(FEATURE_CHANNEL_FORWARDING);
pwm_params.servoCenterPulse = masterConfig.escAndServoConfig.servoCenterPulse;
pwm_params.servoPwmRate = masterConfig.servo_pwm_rate;
#endif