Skip to content

Conversation

@haslinghuis
Copy link
Member

@haslinghuis haslinghuis commented Oct 21, 2021

Depends on:
betaflight/betaflight#11038 (merged)
betaflight/betaflight#11050

Fixes: #2611
Fixes: #2620

changes Firmware Sliders are setting Gyro and DTerm filters now.

Observed behaviour with current filters:

1 Now changing lowpass 1 or static lowpass or lowpass 2 dynamic filter type disables gyro slider.
2 Now changing a lowpass 1, static or lowpass 2 values disables gyro / dterm slider.

This PR changes behavior to:

  • Decoupling gyro and dterm sliders in GUI to retain separate control (@mikeller).
  • Use firmware sliders for any valid filter combination (@ctzsnooze / @sugaarK).
  • Trying to get right values from firmware after switch change
  • Removed the need to save after switching filters.
  • Fixed enabling gyro slider with a hack.
  • Fixed enabling dterm slider with a hack.
  • Fix saving lowpass 1 type.
  • Reworked to fix html for legacy and firmware
  • Bring back some old i18n

Okay - we decided to change the whole thing (@ctzsnooze thanks for functional design)

Builds:
https://dev.azure.com/Betaflight/Betaflight%20Nightlies/_build/results?buildId=4419&view=artifacts&pathAsName=false&type=publishedArtifacts

@ctzsnooze
Copy link
Member

betaflight/betaflight#11038 now changes both gyro and D static lowpass values with the sliders

@haslinghuis haslinghuis force-pushed the rfc_filters branch 9 times, most recently from 8bbd171 to f6d818d Compare October 25, 2021 00:42
@mikeller
Copy link
Member

Not sure this is working as intended:

image

Reproduction:

  • change some of the manual filter and profile independent filter settings => sliders disappear,'Enable' button appears;
  • click 'Save';
  • click 'Enable' => sliders re-appear, but the 'Enable' button does not disappear.

@haslinghuis haslinghuis force-pushed the rfc_filters branch 2 times, most recently from a8641d7 to 2bcd8eb Compare October 26, 2021 09:43
@haslinghuis
Copy link
Member Author

haslinghuis commented Oct 28, 2021

@mikeller Thanks for reviewing. I am fighting the fact that if we want to keep the gyro and dterm sliders enabled when changing filter checkboxes - it will move all values regardless the status of the checkboxes. Have to think about a solution for this, as I don't want to add 4 additional sliders 😛
EDIT: Added a RFC for firmware to make it happen.

@blckmn
Copy link
Member

blckmn commented Nov 17, 2021

AUTOMERGE: (FAIL)

  • github identifies PR as mergeable -> FAIL
  • assigned to a milestone -> PASS
  • cooling off period lapsed -> PASS
  • commit count less or equal to three -> PASS
  • Don't merge label NOT found -> PASS
  • at least one RN: label found -> PASS
  • Tested label found -> PASS
  • assigned to an approver -> PASS
  • approver count at least three -> FAIL

Fix manual input

improve gyro and dterm

Fix expo

Fix enabling gyro dyn lpf 1 to use slider value instead of default

Fix enabling dterm dyn lpf 1 to use slider value instead of default

Change labels to static

Refactor left panel

right panel

Add switches

latest fixes

save filter type on lp1

Remove need to save if changing switches

Change lowpass html

Change slider on/off behavior

Fix enable/disable filter mode selectors

Reworked to work with legacy and firmware sliders

Change gyro warning limit to 1.4 as in 10.7 (limon)
limonspb
limonspb previously approved these changes Nov 19, 2021
ctzsnooze
ctzsnooze previously approved these changes Nov 23, 2021
@ctzsnooze
Copy link
Member

Fantastic work. End result is really intuitive and simple to use. Well worth the effort! Tested and works great.

@haslinghuis haslinghuis dismissed stale reviews from ctzsnooze and limonspb via 92948e2 November 25, 2021 03:31
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 5 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

No Coverage information No Coverage information
0.0% 0.0% Duplication

@haslinghuis
Copy link
Member Author

Sorry merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

For Discussion: Cosmetic Issues on 'Filter Settings' Tab Some issues with Filters tab of PID tuning page for 4.3

7 participants