mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 22:05:17 +03:00
remove dynamic filtering as a mode
This commit is contained in:
parent
a2453d1980
commit
26b1cd4237
3 changed files with 1 additions and 7 deletions
|
@ -146,7 +146,6 @@ static const box_t boxes[CHECKBOX_ITEM_COUNT + 1] = {
|
|||
{ BOX3DDISABLESWITCH, "DISABLE 3D SWITCH", 29},
|
||||
{ BOXFPVANGLEMIX, "FPV ANGLE MIX", 30},
|
||||
{ BOXBLACKBOXERASE, "BLACKBOX ERASE (>30s)", 31 },
|
||||
{ BOXDYNAMICFILTER, "DYNAMIC FILTER", 32 },
|
||||
{ CHECKBOX_ITEM_COUNT, NULL, 0xFF }
|
||||
};
|
||||
|
||||
|
@ -307,10 +306,6 @@ void initActiveBoxIds(void)
|
|||
activeBoxIds[activeBoxIdCount++] = BOXANTIGRAVITY;
|
||||
}
|
||||
|
||||
if (!feature(FEATURE_DYNAMIC_FILTER)) {
|
||||
activeBoxIds[activeBoxIdCount++] = BOXDYNAMICFILTER;
|
||||
}
|
||||
|
||||
if (sensors(SENSOR_ACC)) {
|
||||
activeBoxIds[activeBoxIdCount++] = BOXANGLE;
|
||||
activeBoxIds[activeBoxIdCount++] = BOXHORIZON;
|
||||
|
|
|
@ -54,7 +54,6 @@ typedef enum {
|
|||
BOX3DDISABLESWITCH,
|
||||
BOXFPVANGLEMIX,
|
||||
BOXBLACKBOXERASE,
|
||||
BOXDYNAMICFILTER,
|
||||
CHECKBOX_ITEM_COUNT
|
||||
} boxId_e;
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ const gyroFftData_t *gyroFftData(int axis)
|
|||
|
||||
bool isDynamicFilterActive(void)
|
||||
{
|
||||
return (IS_RC_MODE_ACTIVE(BOXDYNAMICFILTER) || feature(FEATURE_DYNAMIC_FILTER));
|
||||
return feature(FEATURE_DYNAMIC_FILTER);
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue