Taranis x9e custom scripts page missing

Hardware help and support for the FrSky Taranis
Post Reply
Vbdino
Posts: 2
Joined: Fri May 28, 2021 10:01 pm
Country: -

Taranis x9e custom scripts page missing

Post by Vbdino » Fri May 28, 2021 10:18 pm

Hi,

I made the script below and tested it with Opentx companion successfully. I then copied it on the sd card in \scripts\mixes. But the radio is not showing the custom scripts page in my model.

local inputs = {
{"MBOOM", SOURCE},
{"STICK", SOURCE},
{"BUCKET", SOURCE},
{"THUMB", SOURCE},
{"SMB", VALUE, 1, 40, 39}
}

local outputs = { "VAL" }

local function run(MBOOM, STICK, BUCKET, THUMB, SMB)
x = 0
-- input values are in the -1024 – 1024 range, so convert target smb value to same range
y = SMB * 10.24

if ( (STICK + BUCKET + THUMB) ~= 0 ) then
x = y
end
if (MBOOM > 0) then
x = -(y)
end
if (MBOOM < 0) then
x = y
end

return x
end

return { input=inputs, output=outputs, run=run}


User avatar
Kilrah
Posts: 10895
Joined: Sat Feb 18, 2012 6:56 pm
Country: Switzerland

Re: Taranis x9e custom scripts page missing

Post by Kilrah » Fri May 28, 2021 11:06 pm

You probably didn't flash firmware that has the lua option enabled.

Vbdino
Posts: 2
Joined: Fri May 28, 2021 10:01 pm
Country: -

Re: Taranis x9e custom scripts page missing

Post by Vbdino » Sat May 29, 2021 7:56 pm

I installed v2.3.11 from OpenTX and it appeared. Now everything works with controling my servonaut smb.
Attachments
Servonaut SMB.pdf
(2.45 MiB) Downloaded 17 times


Post Reply

Return to “FrSky Taranis radio”