1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-17 13:25:30 +03:00

Preparation for conversion to parameter groups 12

This commit is contained in:
Martin Budden 2017-02-17 17:24:13 +00:00
parent 14a7c805c1
commit 2c667376fa
8 changed files with 118 additions and 145 deletions

View file

@ -272,9 +272,9 @@ void init(void)
serialInit(feature(FEATURE_SOFTSERIAL), SERIAL_PORT_NONE);
#endif
mixerInit(mixerConfig()->mixerMode, customMotorMixerMutable(0));
mixerInit(mixerConfig()->mixerMode);
#ifdef USE_SERVOS
servoMixerInit(customServoMixers(0));
servosInit();
#endif
uint16_t idlePulse = motorConfig()->mincommand;
@ -288,13 +288,13 @@ void init(void)
}
mixerConfigureOutput();
motorInit(&motorConfig()->dev, idlePulse, getMotorCount());
motorDevInit(&motorConfig()->dev, idlePulse, getMotorCount());
#ifdef USE_SERVOS
servoConfigureOutput();
if (isMixerUsingServos()) {
//pwm_params.useChannelForwarding = feature(FEATURE_CHANNEL_FORWARDING);
servoInit(&servoConfig()->dev);
servoDevInit(&servoConfig()->dev);
}
#endif