mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 17:55:30 +03:00
Made it more positive.
This commit is contained in:
parent
fb83ea4b52
commit
b308eef6e9
3 changed files with 5 additions and 5 deletions
|
@ -245,14 +245,14 @@ static void validateAndFixConfig(void)
|
||||||
rxConfigMutable()->rssi_src_frame_errors = false;
|
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++) {
|
for (unsigned i = 0; i < MAX_PROFILE_COUNT; i++) {
|
||||||
pidProfilesMutable(i)->dtermSetpointWeight = 0;
|
pidProfilesMutable(i)->dtermSetpointWeight = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if defined(USE_THROTTLE_BOOST)
|
#if defined(USE_THROTTLE_BOOST)
|
||||||
if (rcSmoothingIsOff() ||
|
if (!rcSmoothingIsEnabled() ||
|
||||||
!(rxConfig()->rcInterpolationChannels == INTERPOLATION_CHANNELS_RPYT
|
!(rxConfig()->rcInterpolationChannels == INTERPOLATION_CHANNELS_RPYT
|
||||||
|| rxConfig()->rcInterpolationChannels == INTERPOLATION_CHANNELS_T
|
|| rxConfig()->rcInterpolationChannels == INTERPOLATION_CHANNELS_T
|
||||||
|| rxConfig()->rcInterpolationChannels == INTERPOLATION_CHANNELS_RPT)) {
|
|| rxConfig()->rcInterpolationChannels == INTERPOLATION_CHANNELS_RPT)) {
|
||||||
|
|
|
@ -732,9 +732,9 @@ void initRcProcessing(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool rcSmoothingIsOff(void)
|
bool rcSmoothingIsEnabled(void)
|
||||||
{
|
{
|
||||||
return (
|
return !(
|
||||||
#if defined(USE_RC_SMOOTHING_FILTER)
|
#if defined(USE_RC_SMOOTHING_FILTER)
|
||||||
rxConfig()->rc_smoothing_type == RC_SMOOTHING_TYPE_INTERPOLATION &&
|
rxConfig()->rc_smoothing_type == RC_SMOOTHING_TYPE_INTERPOLATION &&
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -39,6 +39,6 @@ void updateRcCommands(void);
|
||||||
void resetYawAxis(void);
|
void resetYawAxis(void);
|
||||||
void initRcProcessing(void);
|
void initRcProcessing(void);
|
||||||
bool isMotorsReversed(void);
|
bool isMotorsReversed(void);
|
||||||
bool rcSmoothingIsOff(void);
|
bool rcSmoothingIsEnabled(void);
|
||||||
int rcSmoothingGetValue(int whichValue);
|
int rcSmoothingGetValue(int whichValue);
|
||||||
bool rcSmoothingAutoCalculate(void);
|
bool rcSmoothingAutoCalculate(void);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue