New betaflight hd #87
Merged
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 enables "True HD" mode in Betaflight, without the use of FakeHD.
Note that this requires a Betaflight Flight Controller build from after 12/4/2022 and that currently fixes to the Configurator to make this feature work correctly are pending.
In this PR we:
Add support for a new MSP message 188 SET_CANVAS_SIZE, which after MSP API minor version 45 on Betaflight, will set the "canvas size" selectable in the Betaflight configurator to HD mode and the specified dimension (60x22).
Automatically send this new message and set the canvas size to 60x22 if the appropriate Betaflight version is detected.
Add a new configuration option
disable_betaflight_hdon the VTx side to allow users who don't want HD mode (because they love their FakeHD setup, because they want Big Fonts, etc.) to disable this feature.We also cleanup the use of defines and switch to enums in many places, as well as lay the groundwork for supporting Betaflight 4-page "warning level" fonts, although this feature will require a rewrite of the font loading system and is not currently implemented.