Fixed wing cruise throttle in-flight adjustment via another channel position #11
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR changes the adjustment handling for the fixed wing cruise throttle setting in-flight. Instead of step over time value to add (or subtract), use direct channel position (offset from center) as the adjustment value.
This makes it possible to map one of the trim switches (which are unused by Inav anyway) to a separate channel, and then use that channel as the adjustment source. The throttle trim switch fits very well for this task.
Then, while in-flight, it's possible to use the adjustments logic to have the cruise throttle setting adjusted to either speed up or down the model in auto-throttle modes. Great for those windy days when you need extra oomph to face the wind or for flying formation with your friends and have that fine adjustment of throttle to keep the formation tight.
Below is a screenshot of an example of the adjustment setup for accomplishing this task. First, on the radio handset side, the trim switch must be mapped to a spare channel (in this case ch 12). Then the configuration is set so that the adjustments are enabled by the same channel positions that enable cruise and altitude hold modes (ch6 and ch7 at the marked positions). So whenever either of these modes is active, the trim based adjustment is automatically enabled. This could be enabled via yet another spare channel, instead. Refer to the official Inav documentation on how to use the adjustments logic for further info here.