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

Strange startup in the simulator with GX12. #5795

Closed
1 task done
philmoz opened this issue Jan 17, 2025 · 0 comments · Fixed by #5797
Closed
1 task done

Strange startup in the simulator with GX12. #5795

philmoz opened this issue Jan 17, 2025 · 0 comments · Fixed by #5797
Labels
bug 🪲 Something isn't working triage Bug report awaiting review / sorting

Comments

@philmoz
Copy link
Collaborator

philmoz commented Jan 17, 2025

Is there an existing issue for this problem?

  • I have searched the existing issues

What part of EdgeTX is the focus of this bug?

Simulator

Current Behavior

In the attached .etx file for the GX12 I am seeing this weird behaviour in the simulator on MacOS and Ubuntu (not tested Windows).

The two model files in the .etx document are identical.
Both are configured with each of the 6 function switches as independent 2POS switches with start state set to restore.
There is a SF that plays an audio file every 5 seconds when SW1 is pressed.

If you examine the model yaml files in the .etx they both have functionSwitchLogicalState set to 0 (previous state value).

When the simulator is run the sound file plays every 5 seconds - so it started with SW1 pressed even though it should not have.
If you switch to model 2 in the simulator it is ok - no audio plays.

Now close the simulator and set model 2 as the default and run the simulator again - the audio starts playing. Switch to model 1 and no audio plays.

For some reason when the simulator starts it gets the startup state for the function switches wrong; but when you switch model it is ok.

Firmware does not do this.

Expected Behavior

Simulator should behave correctly on startup.

Steps To Reproduce

  • Open the attached .etx file in the simulator with a GX12 profile.
  • Run simulator - audio plays every 5 seconds when it should not.
  • Switch to model 2 - no audio plays
  • Close simulator and set model 2 as the default
  • Run simulator - audio plays when it should not.

Version

Nightly (Please give date/commit below)

Transmitter

RadioMaster GX12

Operating System (OS)

No response

OS Version

Tested on MacOS and Ubuntu

Anything else?

document1.zip

@philmoz philmoz added bug 🪲 Something isn't working triage Bug report awaiting review / sorting labels Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🪲 Something isn't working triage Bug report awaiting review / sorting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant