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

Selecting a model that has "Display checklist" turned on... #2722

Closed
1 task done
Astrohog opened this issue Nov 12, 2022 · 2 comments · Fixed by #2922
Closed
1 task done

Selecting a model that has "Display checklist" turned on... #2722

Astrohog opened this issue Nov 12, 2022 · 2 comments · Fixed by #2922
Labels
bug/regression ↩️ A new version of EdgeTX broke something

Comments

@Astrohog
Copy link

Is there an existing issue for this problem?

  • I have searched the existing issues

What part of EdgeTX is the focus of this bug?

Transmitter firmware

Current Behavior

TX16s MKI running 2.8 RC4
Enter model setup for model. Turn on "display checklist" on model setup tab. Select different model. Go back and select first model (one that should display the checklist). After selecting the model I may get a throttle and or switch warning. After clearing the warnings I'm back at the model select page rather than the checklist. If I press the return button, I exit the model select with the correct model loaded but no check list is displayed. The checklist is displayed when the power is cycled on the radio. In short the model checklist is only displayed when the power is cycled and not when switching from one model to another ( one with Display checklist turned on).

Expected Behavior

I expect that when selecting a model that has the option "Display checklist" turned on that the after selecting the model the checklist is displayed (may have to clear warnings first). I can then press the return button to exit the checklist and the selected model is loaded.

Steps To Reproduce

Load Model with "display checklist" turned on. Switch to another model. Select the first model. Verify that the checklist is displayed. May have to clear warnings first.

Version

Nightly (Please give date/commit below)

Transmitter

Radiomaster TX16S / TX16SMK2

Anything else?

Firmware 2.8 RC4

@Astrohog Astrohog added bug 🪲 Something isn't working triage Bug report awaiting review / sorting labels Nov 12, 2022
@pfeerick pfeerick added bug/regression ↩️ A new version of EdgeTX broke something and removed triage Bug report awaiting review / sorting bug 🪲 Something isn't working labels Nov 13, 2022
@pfeerick
Copy link
Member

pfeerick commented Nov 20, 2022

I think the underlying issue is because at the time this code runs, the code here checking for model notes doesn't know about the new model name...

edgetx/radio/src/opentx.cpp

Lines 741 to 743 in f84c26b

if (g_model.displayChecklist && modelHasNotes()) {
readModelNotes();
}

But there is also a secondary issue, which is that pulses is running when the model notes are shown, rather than halted until the checklist is closed, so the servos/controls are active while you're doing the checklist.

@eshifri
Copy link
Contributor

eshifri commented Nov 28, 2022

Actually, the model name is set there.
The problem is for some reason the ViewTextWindow() is not visible, when called from model_select.
The code is executed, but the text is hidden.
When the model with the notes is selected, we do not return to the main screen, but stay on the selection screen. The RTN is intercepted by invisible text viewer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/regression ↩️ A new version of EdgeTX broke something
Projects
None yet
3 participants