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

FastPWM as part of Oneshot125 (dynamic oneshot)

bool correction

IdlePulse
This commit is contained in:
borisbstyle 2015-10-01 16:38:37 +02:00
parent 77534ed6f6
commit fa9cd0440b
7 changed files with 16 additions and 20 deletions

View file

@ -128,7 +128,7 @@ static uint32_t activeFeaturesLatch = 0;
static uint8_t currentControlRateProfileIndex = 0;
controlRateConfig_t *currentControlRateProfile;
static const uint8_t EEPROM_CONF_VERSION = 108;
static const uint8_t EEPROM_CONF_VERSION = 109;
static void resetAccelerometerTrims(flightDynamicsTrims_t *accelerometerTrims)
{
@ -442,6 +442,7 @@ static void resetConf(void)
masterConfig.motor_pwm_rate = BRUSHLESS_MOTORS_PWM_RATE;
#endif
masterConfig.servo_pwm_rate = 50;
masterConfig.use_fast_pwm = 0;
#ifdef GPS
// gps/nav stuff
@ -747,14 +748,6 @@ void validateAndFixConfig(void)
featureClear(FEATURE_RX_PPM);
}
if (featureConfigured(FEATURE_ONESHOT125)) {
featureClear(FEATURE_FASTPWM);
}
if (featureConfigured(FEATURE_FASTPWM)) {
featureClear(FEATURE_ONESHOT125);
}
if (featureConfigured(FEATURE_RX_PARALLEL_PWM)) {
#if defined(STM32F10X)
// rssi adc needs the same ports