You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Is there an existing issue for this problem?
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
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
The text was updated successfully, but these errors were encountered: