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
I encounter a very strange problem drawing a simple line:
local w = LCD_W;
local h = LCD_H - 60;
local cx = w / 2;
local cy = h / 2 + 30;
local r_circle = h / 2;
page:circle({x = cx, y = cy, radius = r_circle });
page:label({x = 5, y = 5, text = (function() return "V: " .. getValue(widget.options.Src); end)});
page:line({thickness = 1, color = CYAN, pts = (function()
local v = getValue(widget.options.Src) * math.pi / 1024;
local x = r_circle * math.cos(v) + cx;
local y = r_circle * math.sin(v) + cy;
return { { cx, cy }, { x, y } };
end)});
This should draw a circle with a rotating line inside that circle. This fully works in simulator but on radio (x12s) it draw the line only in the second quadrant (of the imaginary coordinate system with origin at the center of the circle). I have complexer examples where only quadrant 1 and 2 are correct. Looks very strange to me. Lines with fixed coordinates work well. Looks this has something to do with the function returning the points table.
On TX16s the line does not rotate at all, it remains at a random position when taking the widget to full-screen
Expected Behavior
The line rotates / draws correctly
Steps To Reproduce
Use the above example
Version
2.11.1
Transmitter
RadioMaster TX16S / TX16SMK2
Operating System (OS)
Linux
OS Version
Arch Linux
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this problem?
What part of EdgeTX is the focus of this bug?
Transmitter firmware
Current Behavior
I encounter a very strange problem drawing a simple line:
This should draw a circle with a rotating line inside that circle. This fully works in simulator but on radio (x12s) it draw the line only in the second quadrant (of the imaginary coordinate system with origin at the center of the circle). I have complexer examples where only quadrant 1 and 2 are correct. Looks very strange to me. Lines with fixed coordinates work well. Looks this has something to do with the function returning the points table.
On TX16s the line does not rotate at all, it remains at a random position when taking the widget to full-screen
Expected Behavior
The line rotates / draws correctly
Steps To Reproduce
Use the above example
Version
2.11.1
Transmitter
RadioMaster TX16S / TX16SMK2
Operating System (OS)
Linux
OS Version
Arch Linux
Anything else?
No response
The text was updated successfully, but these errors were encountered: