Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cannot turn on OSD switch in Configuration tab
#16
Hi again,
 
Just a quick follow up about this
 
I'm a developer as well (not used to using C/C++ language however). So just for learning purpose, I decided to try to compile BetaFlight as well using the following two useful documents I found:
https://github.com/betaflight/betaflight...0Ubuntu.md
https://github.com/betaflight/betaflight...Version.md
 
In short, I installed Ubuntu in a VM (using VirtualBox) then I cloned BetaFlight sources.
After it I checked out version 4.0.6 (it was the last official release for my FC) using the following command:
git checkout 4.0.6
After it I edited the file betaflight/src/main/target/LUX_RACE/target.h then I added following lines:
 
#define USE_OSD
#define USE_OSD_OVER_MSP_DISPLAYPORT
#define USE_OSD_ADJUSTMENTS
#define USE_OSD_PROFILES
#define USE_OSD_STICK_OVERLAY
 
This is because these lines are not defined by default in file betaflight/src/main/target/common_pre.h
By default these lines are defined only if the FC as more than 256K FLASH mamory size and since the LUXV2 FC has 256K (not more than 256K) it does not meet this condition. So, by directly adding these lines into the file betaflight/src/main/target/LUX_RACE/target.h it activates OSD options.
 
Now, just build it using command
make TARGET=LUXV2_RACE
and the file betaflight_4.0.6_LUXV2_RACE.hex will be created. Just flash your FC using this new file. I flashed mine and now I can see OSD data in my DJI goggles. It worked :-)
 
Important note:
If I decide to fly using this custom firmware, I will do a lot of tests to be sure there is no problem. If by default, OSD options are enabled only with FC with more than 256K of flash memory, there is probably a good reason to it. I would not want to get an "Out of memory" error during my flight ;-). Anyway, I decided to buy a new F7 FC. I posted this information here just for information purpose.


Thanks for all the help I received.

G. Plante
[-] The following 1 user Likes gplante2's post:
  • SnowLeopardFPV
Reply
Login to remove this ad | Register Here
#17
That is good to know. Proof of concept works. Good luck if you decide to use the firmware for flight. It might be something you can bring up with the developer on github to see if there might be any issue.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  [SOLVED] betaflight 4.4 rx configuration for frsky r-xsr sim_tcr 7 3,023 18-May-2024, 07:25 PM
Last Post: SnowLeopardFPV
  Gps rescue test with a switch fail Mad35 23 959 26-Feb-2024, 02:37 AM
Last Post: SnowLeopardFPV
  ELRS: LUA script to switch from internal to external module? voidbrain 4 249 21-Jan-2024, 10:19 AM
Last Post: BadRaven
  Modes tab CLI zomer 2 452 20-Aug-2023, 02:45 PM
Last Post: BadRaven
  OSD shifted right with Avatar V2 VTX and BF 4.4.2 ghawkins 3 905 07-Aug-2023, 03:20 PM
Last Post: mstc


Login to remove this ad | Register Here