Hold Any Input’s Position

      1 Comment on Hold Any Input’s Position

OpenTX Lua Mix Script

Description

  • Holds the input value.
    • E.g. Keep a boat on a fixed throttle and rudder setting.
  • Enabled using a logical or physical switch.
  • Up to 4 inputs may be configured.
    • The inputs may be sticks, sliders, switches or channels (any OpenTX input).
    • If an input is not configured the corresponding output is zero.
  • For each input a corresponding switch is to be provided.
    • The same switch may be used for all inputs.
    • When the switch is up/away the output equals the input.
    • When the switch is not up/away the input value gets held and from then on the output is a fixed value till the switch is back up/away.
  • 4 outputs are provided Hld1, Hld2, Hld3, Hld4.
    • These outputs are to be used as inputs to the mix on the mixer screen.
    • The output is either a pass thru of the input or a fixed value.

Download

  • hold.lua (right click and Save As, Download Linked File)

File Location

  • SD Card /SCRIPTS/MIXES/

Configuration

  • If you have no experience using OpenTX Mix scripts please read Getting Started.
  • Custom Scripts Screen
    • Select this script and configure inputs.
  • Mixer Screen
    • Create a mix using one of Hld1, Hld2, Hld3 or Hld4 as input.

Input Hold Without A Script

[I1]Ail
Ail Weight(+100%) Switch(SA↓)

[I2]Ele
Ele Weight(+100%) Switch(SA↓)

[I3]Thr
Thr Weight(+100%) Switch(SA↓)

[I4]Rud
Rud Weight(+100%) Switch(SA↓)

Thanks to Mike Shellim

http://rc-soar.com/opentx/

Comments, Questions & Help

One thought on “Hold Any Input’s Position

Comments are closed.