Throttlebased EzLanding (#12094)
commitae71256da701a44e063fae28a2306972748b0622
authortbolin <tobias_bolin@hotmail.com>
Sat, 9 Dec 2023 01:36:41 +0000 (9 02:36 +0100)
committerGitHub <noreply@github.com>
Sat, 9 Dec 2023 01:36:41 +0000 (9 02:36 +0100)
treefe1b750b856621d748e89a9b40e1e3c291934226
parentd3830b6b347bb2949594e98be1d9942b16266cfe
Throttlebased EzLanding (#12094)

* ezLanding

* Add ez_landing throttle mode

* Correct EzLanding scaling of motorMixRange

* Correct mixer_type switch bracing style

* Remove motor value cliping ez landing mode

- rename mixer type cli setting to EZLANDING from EZLANDING_THROTTLE
- remove EZLANDING_CLIP cli setting
- double default ez_landing_threshold
- halve default ez_landing_limit
- check  and  limits in cli settings
- remove mixer type dependent settings in mixer_init
- remove clip based code in mixer.c

* Change ez_landing setting values and refactoring

- Halve defaul ez_landing_threshold setting and double in init instead.
  Now stick deflection equal to ez_landing_threshold should give approimately full authority.
  Previously it was the point where the mixer was allowed to raise the throttle to 100 % (which wouuld never be required)
- Increase ez_landing_threshold maximum to 200 (from 100) to allow settings that increase authority by a little at full stick deflection
- Increase ez_landing_limit maximum to 75 which is the point where EzLanding should act identical to the Legacy mixer with airmode on
- remove throttle percent from
- simplify calculation of , since throttle stick deflection is no longer involved
- update/remove outdated comments

* Remove old EZLANDING entries in mixerType enum

* Add mixer_type setting to blackbox log header

---------

Co-authored-by: ctzsnooze <chris.thompson@sydney.edu.au>
Co-authored-by: Mark Haslinghuis <mark@numloq.nl>
14 files changed:
src/main/blackbox/blackbox.c
src/main/build/debug.c
src/main/build/debug.h
src/main/cli/settings.c
src/main/cli/settings.h
src/main/fc/parameter_names.h
src/main/fc/rc.c
src/main/fc/rc.h
src/main/flight/mixer.c
src/main/flight/mixer.h
src/main/flight/mixer_init.c
src/main/flight/mixer_init.h
src/main/flight/pid.c
src/main/flight/pid.h