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

Made it more positive.

This commit is contained in:
mikeller 2018-07-01 19:14:31 +12:00
parent fb83ea4b52
commit b308eef6e9
3 changed files with 5 additions and 5 deletions

View file

@ -245,14 +245,14 @@ static void validateAndFixConfig(void)
rxConfigMutable()->rssi_src_frame_errors = false;
}
if (rcSmoothingIsOff() || rxConfig()->rcInterpolationChannels == INTERPOLATION_CHANNELS_T) {
if (!rcSmoothingIsEnabled() || rxConfig()->rcInterpolationChannels == INTERPOLATION_CHANNELS_T) {
for (unsigned i = 0; i < MAX_PROFILE_COUNT; i++) {
pidProfilesMutable(i)->dtermSetpointWeight = 0;
}
}
#if defined(USE_THROTTLE_BOOST)
if (rcSmoothingIsOff() ||
if (!rcSmoothingIsEnabled() ||
!(rxConfig()->rcInterpolationChannels == INTERPOLATION_CHANNELS_RPYT
|| rxConfig()->rcInterpolationChannels == INTERPOLATION_CHANNELS_T
|| rxConfig()->rcInterpolationChannels == INTERPOLATION_CHANNELS_RPT)) {

View file

@ -732,9 +732,9 @@ void initRcProcessing(void)
}
}
bool rcSmoothingIsOff(void)
bool rcSmoothingIsEnabled(void)
{
return (
return !(
#if defined(USE_RC_SMOOTHING_FILTER)
rxConfig()->rc_smoothing_type == RC_SMOOTHING_TYPE_INTERPOLATION &&
#endif

View file

@ -39,6 +39,6 @@ void updateRcCommands(void);
void resetYawAxis(void);
void initRcProcessing(void);
bool isMotorsReversed(void);
bool rcSmoothingIsOff(void);
bool rcSmoothingIsEnabled(void);
int rcSmoothingGetValue(int whichValue);
bool rcSmoothingAutoCalculate(void);