Fix crash recovery timeout logic and make settings limits rational
commit381b38ca52d213a390a3d1258c54cb97e0301c25
authorBruce Luckcuck <github@etracer.net>
Thu, 12 Sep 2019 14:39:36 +0000 (12 10:39 -0400)
committerBruce Luckcuck <github@etracer.net>
Thu, 12 Sep 2019 23:53:38 +0000 (12 19:53 -0400)
treefd682c5e253a483473808e4e357efb24558508ca
parent06f682757dc81a97cfa20c7aa15b4ce6eb57a372
Fix crash recovery timeout logic and make settings limits rational
Timeout logic was ignored if the user had the accelerometer enabled and the quad wasn't within the angle limit. This was made doubly troublesome as the angle limit could be set to zero preventing crash recovery from ever deactivating.

Also adjusted the ranges of the parameters to be more rational to avoid invalid configurations.
src/main/cli/settings.c
src/main/flight/pid.c