Reset d_min to 0 if >= D gain for a given axis
commit6e72d5bd5bd73bffa86f80bbef71d59d04301bf3
authorBruce Luckcuck <github@etracer.net>
Sat, 4 May 2019 14:40:19 +0000 (4 10:40 -0400)
committerBruce Luckcuck <github@etracer.net>
Sat, 4 May 2019 14:40:19 +0000 (4 10:40 -0400)
tree05a88285ec095b5008c6113a2b6171fd038e5c28
parentde1c1d537710a02058c13921486146053c47e232
Reset d_min to 0 if >= D gain for a given axis
Eliminates the dual-mode disabled logic for d_min for consistency. Previously d_min would logically be disabled if set to 0, or if >= the related D gain. This produces an inconsistent behavior with the Configurator in that it applies validation and will reset d_min to 0 in this case - causing an unexpected settings change just by saving on the PID Tuning tab.

This change aligns the validation in the firmware and Configurator.
src/main/fc/config.c