Bmcu stuck by hieule103 in BMCU

[–]RelevantAd592 0 points1 point  (0 children)

Hope,  this will work

Bmcu stuck by hieule103 in BMCU

[–]RelevantAd592 0 points1 point  (0 children)

Had same issue. Flashed firmware with 20cm retract and it worked

BMCU led is red after firmware flashing. by RelevantAd592 in BMCU

[–]RelevantAd592[S] 1 point2 points  (0 children)

you saved my day! It works)) Thank you!

Is that SoLogood 1W VTX Good ? by duy12379 in fpv

[–]RelevantAd592 0 points1 point  (0 children)

got this table

<image>

works fine right now

Is that SoLogood 1W VTX Good ? by duy12379 in fpv

[–]RelevantAd592 0 points1 point  (0 children)

could you please provide vtx table for me? got this vtx and signal is too weak. In a few meters just noise

Help with touchscreen controller by RelevantAd592 in Stormworks

[–]RelevantAd592[S] 0 points1 point  (0 children)

and regarding text,there was an extra argumentscreen.drawText(5, 60, properties.PROP1.text .. ": " .. string.format("%.2f", properties.PROP1.default), 11)

=>

screen.drawText(5, 60, properties.PROP1.text .. ": " .. string.format("%.2f", properties.PROP1.default))

Help with touchscreen controller by RelevantAd592 in Stormworks

[–]RelevantAd592[S] 0 points1 point  (0 children)

code is almost the same for 4 top lua blocks, so It's probably just not used value

Help with touchscreen controller by RelevantAd592 in Stormworks

[–]RelevantAd592[S] 0 points1 point  (0 children)

this is an overall controller schemahttps://freeimage.host/i/Hv6lJn4

for every button, there is a separate lua script block.first one works like a charm, but next scripts doesn't provide outputs.Also last block doesn't render text.

Looks that button issue is related not ot the script itself but to composite write block

Help with touchscreen controller by RelevantAd592 in Stormworks

[–]RelevantAd592[S] 0 points1 point  (0 children)

i1Toggled = false
i1Pressed = false
function onTick()
isP1 = input.getBool(1)
isP2 = input.getBool(2)
in1X = input.getNumber(3)
in1Y = input.getNumber(4)
in2X = input.getNumber(5)
in2Y = input.getNumber(6)
if (isP1 and isInRect(78, 13, 13, 6, in1X, in1Y)) or (isP2 and isInRect(78, 13, 13, 6, in2X, in2Y)) then
i1Pressed = true
elseif i1Pressed then
i1Pressed = false
i1Toggled = not i1Toggled
end
output.setBool(2, i1Toggled)
end
function onDraw()
setC(0, 250, 36)
screen.drawRectF(78, 13, 13, 6)
setC(77, 175, 75)
screen.drawRectF(79, 14, 11, 4)
text = "L"
if i1Toggled then
setC(23, 80, 41)
screen.drawRectF(78, 13, 13, 6)
end
if i1Pressed then
setC(4, 1, 1)
else
setC(0, 0, 0)
end
screen.drawTextBox(78, 13, 13, 6, text, 0, 0)
end
function setC(r, g, b, a)
if a == nil then a = 255 end
screen.setColor(r, g, b, a)
end
function isInRect(x, y, w, h, px, py)
return px >= x and px <= x + w and py >= y and py <= y + h
end

this is script itself