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

Custom font works only when flashing VRX? #9

Open
lesharodin opened this issue Dec 26, 2022 · 15 comments
Open

Custom font works only when flashing VRX? #9

lesharodin opened this issue Dec 26, 2022 · 15 comments

Comments

@lesharodin
Copy link

lesharodin commented Dec 26, 2022

Seems like new font only works when we reflash VRX with a *.bmp file in ./Resource folder?
I tried several times add new font without reflashing VRX, it didnt work.
I put font and reflash VRX - it works.
I delete font - goes back to stock.
I put font again - still stock..
Reflash with font in folder - get custom font to work again...
Is it bug or we must change Readme there?

I have SharkByte with 40.8F.4E.

@antony-weber
Copy link

Have same issue. Font works after flashing VTX with fornt in sdcard. If I delete or replace font VRX start to draw osd with default font. So I need to reflash any of my VTXes to make new font work.

@ondrascz
Copy link
Contributor

On VRX-4 it works as expected. just copy BTFL.bmp to Resource and power cycle the VRX

@antony-weber
Copy link

antony-weber commented Dec 26, 2022

It looks like sharkbyte vrx firmware issue. I test it with two hdzero tinywhoops, both have same firmware, but different osd elements. After some manipulations one have custom osd font, but another have default one at the same time. Also there maybe some glyph addressing error. I convert walksnail font to have same glyph size, same glyph locations and same resolution as the example one. It works, but letters are shifted one position. So i have '@' instead of letter 'A'. And if i shift glyphs to fix letters I have '@' instead of '0'. It is possible that some symbols on osd break custom fonts until next power cycle or maybe even until next firmware flashing process. Need more tests. Unfortunatly I have neither vrx-4 no hdzero googles to test custom fonts, only my sharkbyte vrx :(
IMG_20221227_020700_825
This must be 'DISARMED' )))

p.s. It's my custom font issue. Rainbow font works, and it work after repower, no need to reflash. But I have different fonts on two quads, both flashed with bf 4.4

@antony-weber
Copy link

@ligenxxxx I think we need add to readme that image must be in BMP3 format. I use imagemagick to convert font and it use BMP5 by default, so file header have different size and adrressing glyphs was broken.

@antony-weber
Copy link

Finally I found issue with font. When I repower vrx first scan found my vtx, but with default font, then I go to vrx menu and scan band again. After second scan both of my test whoops have custom osd font.

@ligenxxxx
Copy link
Member

Finally I found issue with font. When I repower vrx first scan found my vtx, but with default font, then I go to vrx menu and scan band again. After second scan both of my test whoops have custom osd font.

I recommend inserting the SD card first, then power cycle.

@ligenxxxx
Copy link
Member

@ligenxxxx I think we need add to readme that image must be in BMP3 format. I use imagemagick to convert font and it use BMP5 by default, so file header have different size and adrressing glyphs was broken.

Sorry I don't know much about this, Can you do it?

@antony-weber
Copy link

antony-weber commented Dec 27, 2022

Ok. I make pull request later.

p.s. Maybe later if VRX firmware source code wii be published I can fix reading another versions of bmp format.

@antony-weber
Copy link

Finally I found issue with font. When I repower vrx first scan found my vtx, but with default font, then I go to vrx menu and scan band again. After second scan both of my test whoops have custom osd font.

I recommend inserting the SD card first, then power cycle.

I remove sdcard only for file manipulation wner vrx is switched off. I don't like hotplug.

@antony-weber
Copy link

@ligenxxxx
Does VRX use same code to load font as hdzero googles?

@lesharodin
Copy link
Author

Finally I found issue with font. When I repower vrx first scan found my vtx, but with default font, then I go to vrx menu and scan band again. After second scan both of my test whoops have custom osd font.

Can confirm, custom font appears only afrer manual rescan.
@ligenxxxx can you look into a code why it does not appears after first boot system scan?

doc_2022-12-27_19-36-32.mp4

@oldrootbeer
Copy link
Contributor

I have the sb vrx. My font changes to the sd card one if I go into the vrx menu then back to the camera image

@lesharodin
Copy link
Author

I have the sb vrx. My font changes to the sd card one if I go into the vrx menu then back to the camera image

Tested, yes its not about rescan as I though earlier, we just need to go to menu and go back.

doc_2022-12-27_19-41-54.mp4

@Muirson
Copy link

Muirson commented Jan 9, 2023

I also has this issue about the font not loading until you scan..

@CorvusMonitoring
Copy link

I'm also totally stuck since 2 weeks of different experiments.
I use HDzero ecobundle Vtx with a Fc running Inav, and sharkbyte Vrx
No OSD displayed, even after reflashing everything, upload custom fonts on sharkbyte, checked the wiring etc.
I can have OSD when the board run Betafpv, so it's not a wiring issue. I noticed that the settings on Inav configurator are not the same than betaflight (no I did not checked the MSP toggle on the port tab ;) )
I need OSD to finish the fine tuning, really embarrassing situation...

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

No branches or pull requests

7 participants