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

NV14 - module settings not displaying/updating correctly #4952

Closed
1 task done
pfeerick opened this issue May 2, 2024 · 10 comments · Fixed by #4953
Closed
1 task done

NV14 - module settings not displaying/updating correctly #4952

pfeerick opened this issue May 2, 2024 · 10 comments · Fixed by #4953
Labels
blocks-release Releases shouldn't go out without this fix bug/regression ↩️ A new version of EdgeTX broke something
Milestone

Comments

@pfeerick
Copy link
Member

pfeerick commented May 2, 2024

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

When opening the Internal RF module settings on NV14, with a configured module, it says AFHDS3 instead of AFHDS2A in the choice field on inital page load
snapshot_01
but allows selecting AFHDS2A in the popup list, but even then it needs to be selected twice to show all AFHDS2A options (the RF power field is missing on the initial selection)
snapshot_02

Expected Behavior

That AFHDS2A be selected correctly, and not require muitple selections to show all options.

Steps To Reproduce

  1. With 2.10-RC3, go into Model Settings -> Internal RF
  2. Witness it showing AFHDS3 on a AFHDS2A-only handset
  3. Press on the Mode option, and see it now offer OFF and AFHDS2A as only choices
  4. Press on the AFHDS2A, and see it load almost correctly.
  5. Repeat 3, and see the RF Power option now appear.

1-4 are repeatable in simulator, the 5th entry depends on hardware check.

Version

Other (Please specify below)

Transmitter

Flysky NV14

Operating System (OS)

No response

OS Version

No response

Anything else?

#4942 fixes an unrelated error in afhds2a_settings.cpp
Looks like AFHDS3 layout could do a smaller receiver id field as the range button is going off screen.

@pfeerick pfeerick added bug/regression ↩️ A new version of EdgeTX broke something blocks-release Releases shouldn't go out without this fix labels May 2, 2024
@pfeerick pfeerick added this to the 2.10 milestone May 2, 2024
@philmoz
Copy link
Collaborator

philmoz commented May 2, 2024

I'm not seeing this in Companion/simulator downloaded from the 2.10 RC3 release, or in a self build.

Can you share the etx file.

@pfeerick
Copy link
Member Author

pfeerick commented May 2, 2024

Interesting... so Companion Simulator is obviously pre-loading something that simu and radio don't ... which is one of the reasons I never using the Companion simulator to ab test stuff as it doesn't simulate the radio as well as simu does. The screenshots were from simu, which is behaving exacly the same as hardware with a nearly 'at defaults' config.

NV14-simu.zip

@pfeerick
Copy link
Member Author

pfeerick commented May 2, 2024

Something is seems to be happening further back in the load process... as it isn't initialising the RF ... so the module page "bug" may be limited to simply the RF power settings not loading/updating correctly... it seems like it is actually mis-interpreting AFHDS2A as AFHDS3 somewhere on read-back (even though it is correctly saved as TYPE_FLYSKY_AFHDS2A), and the GUI is then acting accordingly.

@philmoz
Copy link
Collaborator

philmoz commented May 2, 2024

It's the presences of the 'subType' property which is not being written correctly I think.
Companion does not write this; but your model file has it.

In r_modSubType function the module type gets overwritten because subType == 0 (AFHDS3).

@philmoz
Copy link
Collaborator

philmoz commented May 2, 2024

Can you try #4953 on the actual radio.

@pfeerick
Copy link
Member Author

pfeerick commented May 2, 2024

Yes, that fixes the major issue on radio... it now boots up knowing it has AFHDS2A as the active RF, and is settings/reading it back correctly on reboot - not incorrect reference to AFHDS3 anymore.

Can you think of a simple way to trigger/refresh showAFHDS2Options correctly after having selected AFHDS2A as the active module type (i.e. New Model => OFF => AFHDS2A would be the workflow).

@philmoz
Copy link
Collaborator

philmoz commented May 2, 2024

Do you mean the 'RF Power' option? That appears to rely on the firmware version being received from telemetry data, so needs the receiver to be bound and sending telemetry.

If you leave and re-enter the Internal RF setup page does it show up?

@pfeerick
Copy link
Member Author

pfeerick commented May 2, 2024

Do you mean the 'RF Power' option?

Yes

That appears to rely on the firmware version being received from telemetry data, so needs the receiver to be bound and sending telemetry.

getNV14RfFwVersion() does not require a receiver to be connected - it is querying the internal RF version which is available once the module has booted. i.e. it needs a refresh after a delay if the version is high enough.

If you leave and re-enter the Internal RF setup page does it show up?

Yes. You can simply turn the RF on, exit the page and re-enter the page.

@philmoz
Copy link
Collaborator

philmoz commented May 2, 2024

Try the updated version of PR 4953

@pfeerick
Copy link
Member Author

pfeerick commented May 2, 2024

Yup, that got it... can even see the option being added in as the module reports it's version just after enabling it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocks-release Releases shouldn't go out without this fix bug/regression ↩️ A new version of EdgeTX broke something
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants