Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modding HDZero PR #755 to revert to 5bit compatible OSD element positioning. #958

Conversation

nerdCopter
Copy link
Member

@nerdCopter nerdCopter commented Dec 19, 2023

master Analog:
image

This PR Analog same diff (i.e. same values for osd_***_pos):
image

This PR HDZero wide positions:
01

saidinesh5 and others added 8 commits September 13, 2022 21:04
Mostly from https://github.com/iNavFlight/inav/pull/7668/files commit
Notable changes:
* And added missing functions to bitarray.h/.c, msp_serial.h/.c
* Used "drivers/max7456_symbols.h" instead of "drivers/osd_symbols.h"
* Used baudRates[portConfig->msp_baudrateIndex] instead of
baudRates[portConfig->peripheral_baudrateIndex]

Additional changes:
serial: serialPortFunction_e now needs 32 bits

How to use:

In CLI, Set FUNCTION_HDZERO_OSD to the appropriate serial port:
Eg. Assuming to use serial port 4, enter the following CLI commands to
enable FUNCTION_HDZERO_OSD in EmuFlight Configurator 3.0.1:
    serial 3 65536 115200 115200 0 115200
    save
This is because we changed the size of serialPortConfig_s.functionMask

TODO: Add the peripheral_baudrateIndex entry to serialPortConfig_s ?
As per geoffsim, the HDZero VTX hardcodes thE baudrate at 115200. So No
point making this configurable in EmuFlight As of now.
We can bring back the configurability later on if needed
Emuflight does not implement vtx tables and that causes corruption on
certain hdzero firmware. Everything seems smooth as Buttercake
@nerdCopter nerdCopter force-pushed the 20231207_hdzero_port_can_be_uint32_but_still_revert_OSD branch from 04dc823 to a46d729 Compare January 3, 2024 17:17
@nerdCopter nerdCopter marked this pull request as ready for review February 7, 2024 16:00
@nerdCopter nerdCopter merged commit 3335565 into emuflight:master Feb 7, 2024
6 checks passed
@nerdCopter nerdCopter deleted the 20231207_hdzero_port_can_be_uint32_but_still_revert_OSD branch February 7, 2024 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants