-
-
Notifications
You must be signed in to change notification settings - Fork 145
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
Position OSD Elements via Script #463
Conversation
I did something wrong I think, I want to remove all commits expect the last two how descriped here: |
I'm trying this now, and I'm not sure I understand how it's supposed to work. I can't change anything. It goes through all retries and the changes won't take effect. |
The Adress you can change to select the osd element you want to change. |
Here is a Video |
Did you see the video? What system do you have for me it works perfekt, I have a taranis x light pro. |
Yes, I saw the video. I have a taranis qx7. Tested with fport and tracer. FC config is minimal. Just rx and osd enabled. I can make changes in the configurator and they show up in the script. It may be that my test setup is a little too minimal. |
What I'm not sure if the addresses are always the same or if they depend what's aktivated for example gps, but I do not know how to read out the availible elements due to the config like the betaflight editor do. If anybody can help me there maybe that's better?! |
They should be the same. I got it working here by clearing the values table before preparing the payload when saving. See one of the comments above for explanation. |
I'll just add that this doesn't work with ELRS because |
I did most changes expect this two:
|
I changed all the things, hopefully I get everything ;-). Thx for your good Ideas it helps me to improve my programming skills ;-). |
Almost there. Just some minor things that need fixing. |
hopefully all is ok now ;-) |
Looks good 🙂 Just need to squash/fixup to one commit now |
Hopefully all is fine now, I´m not shure if I did everything right, but I hope only on commit is visible with the right input. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me 🙂
src/SCRIPTS/BF/PAGES/pos_osd.lua
Outdated
local fieldThirdProfile = bit32.band(bit32.rshift(profiles, 1), 1) | ||
local fieldFourthProfile = bit32.band(bit32.rshift(profiles, 2), 1) | ||
return fieldPos, fieldFirstProfile, fieldThirdProfile, fieldFourthProfile |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Logic stays the same but guess:
FieldFourthProfile
should be FieldThirdProfile
FieldThirdProfile
should be FieldSecondProfile
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lol good catch. 🥇
@druckgott Please fix 😁
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will fix tomorrow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It´s fixed
d3fbbf9
Add Page for Position OSD Elements (Betaflight 4.4 MSP) Add osd pos Page Update pos_osd.lua Update pages.lua Update pos_osd.lua
I added a new page where all osd elements are listet and you can select via the first filed by changing the number up and down each osd element.
On the lower area you can see the name of the osd element and more lower you can see the position value and the profil where this osd element is visible.
You can change the position and also the profil and then save the value and the osd will be updated.