Skip to content

Changing a GV value to a percentage changes the GV value of the preceding GV under the logical switches tab. #6834

@flashkiwi2025

Description

@flashkiwi2025

Is there an existing issue for this problem?

  • I have searched the existing issues

What part of EdgeTX is the focus of this bug?

Companion

Current Behavior

Changing a GV value to a percentage changes the GV value of the preceding GV under the logical switches tab. The GV Percentage state shows on GV-1 value i.e, GV2 changes the displayed value of GV1 to a percentage value & GV4 changes the displayed value of GV3 to a percentage value, etc;

The simulator values display correctly and value calculations also seem correct.

I initially thought that if a GV value in FM is set to % and then back again to numeric the logic switch still displays (& possibly calculates) based on % value, but it a actually the display state of the previous GV value that is being incorrectly displayed as a percentage.

GV Values in FM:
Image

Values displayed in LS INCORRECT:
Image

Calculations show in simulator correct:
Image

Test model file: GV TEST3.yml

Expected Behavior

GV values display & calculate in logical switches matching the displayed value shown under the FM GV variable.

Steps To Reproduce

  1. Set a GV1 numeric variable value in FM as numeric
  2. Set a GV2 numeric variable value in FM as percentage
  3. Create Logical Switch using GV1
  4. Logical Switch using GV1 displays as a percentage
  5. Toggle FM GV2 numeric/percentage states to change GV1 logic switch display between numeric/percentage

Version

2.11.3

Transmitter

RadioMaster TX16S / TX16SMK2

Operating System (OS)

Windows

OS Version

Windows 11

Anything else?

No response

Metadata

Metadata

Assignees

Labels

bug 🪲Something isn't workingcompanionRelated to the companion software

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions