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

Shmuely/rotary gauge addons #63

Merged
merged 20 commits into from
Jul 14, 2022

Conversation

offer-shmuely
Copy link
Contributor

additional enhancement to the new gauge

@pfeerick
Copy link
Member

pfeerick commented May 12, 2022

I came across this the other day, might be of interest? I hope this widget is starting to get a little less resource hoggy? 😁

https://luadoc.edgetx.org/part_iv_-_advanced_topics/optimization_tricks

@offer-shmuely
Copy link
Contributor Author

I will check it
From tested, most of the 8% cpu that the widget take, is caused by setting the colors…. Strange

@pfeerick
Copy link
Member

Thanks the for refresh... I will review this again tonight hopefully and merge it in. Sorry for the holdup!

@pfeerick
Copy link
Member

Not sure if you realised, but it looks like tools.lua:42 will fail if RxBt is not present at all... i.e. if not used with a Betaflight/iNav setup...
image

Otherwise this is looking good. Is the positioning/color of the text for the middle guage when fullscreen intentional? It also looks like the widget doesn't like something about 2.8 when I tried the current nightly, but I suspect something is broken there, and it's not a problem with the widget since it works fine with TX16S on 2.7.1. We definitely need to see what's going on with Lua handling once there's more than one widget of these widgets running... it really starts dragging the radio UI responsiveness down - something isn't working properly in the radio firmware side.

image
image
image
image

@offer-shmuely
Copy link
Contributor Author

offer-shmuely commented Jul 13, 2022

tools.lua:42 will fail if RxBt is not present

fix with additional telemetry sources

Is the positioning/color of the text for the middle guage when fullscreen intentional?

can you please explain? I did not understand what is the issue here

It also looks like the widget doesn't like something about 2.8

still working with 2.7

once there's more than one widget of these widgets running... it really starts dragging the radio UI responsiveness down - something isn't working properly in the radio firmware side

I checked it on the start of the dev of this widget, it looks like a firmware GUI issue, I saw it with other widget as well,

did you see this bug as well?
there is an extra char after getting to getSourceName()
image

I did a workaround, but it is not pretty
image

@pfeerick
Copy link
Member

pfeerick commented Jul 14, 2022

can you please explain? I did not understand what is the issue here

Like in this screenshot... I was just asking if it (the value for the middle gauge) being big, yellow, and overlapping was intentional ;)

image

did you see this bug as well? there is an extra char after getting to getSourceName()

No (I didn't notice that one), but will look into it... it may be due to changes in string handling and a couple of cases weren't accounted for properly.

@offer-shmuely
Copy link
Contributor Author

offer-shmuely commented Jul 14, 2022

  • if the value being big was intentional
    yes

  • if yellow was intentional
    yes

  • if overlapping was intentional
    no,
    it is a side effect,
    is it critical?
    I feel like the be number is more appropriate here, even if the overlap a bit

@pfeerick
Copy link
Member

pfeerick commented Jul 14, 2022

Nope, that's fine... I was sort of expecting it to be on the guage, if only for guaranteed contrast, although it would need to be smaller, but more user exposure will inform on if that's needed ;)

edit: And that merge commit msg wasn't quite right... this was updating the widget, not adding it (#60 did that)... oops!

@pfeerick pfeerick merged commit ac15b88 into EdgeTX:master Jul 14, 2022
@offer-shmuely offer-shmuely deleted the shmuely/rotary_gauge_addons branch February 1, 2023 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants