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}
Taranis x9e custom scripts page missing
Re: Taranis x9e custom scripts page missing
You probably didn't flash firmware that has the lua option enabled.
Re: Taranis x9e custom scripts page missing
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 193 times