EasyManua.ls Logo

Jumper T16 - Telemetry

Jumper T16
84 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
65
You can select a script in the first line and optionally define a custom name to know what to
use in the second line. The screen also displays the inputs and outputs used by the script.
Basic layout of Lua scripts
The user-written lua script is basically a subroutine called by the main loop of the remote
control code. A subroutine is a block of code that can be called to perform a task when needed
and then return control to the calling code. A custom Lua script can contain four basic
subroutines (input, output, initialization, and run), three of which can be optional. You must
define these four subroutines in the return statement at the end of the script.
Input: This is usually how the script gets the information passed to it. The Input subroutine
is optional and not required.
Output: This subroutine defines the variables that the script will return. Allows you to return
up to seven values, which can only be numbers for this stage. The output is also optional and
not required.
Init: This subroutine is used to initialize the script. You should set an initial value for the
variable and perform any preparations. The subroutine runs once each time the model is
selected or the remote is turned on when the model is activated. This subroutine is also
optional and not required.
Run: This is where the work of the lua script is done. It can be compared to main() in
languages such as C# or Java. Like those languages, variables can be passed to it. This
routine will return the variables defined in the Output subroutine.
4.6. Telemetry
JumperTX supports a very comprehensive data transmission system for Frsky and
third party sensors.
Smart Port telemetry(S.port)
Through this connection, the receiver can achieve full-duplex (bidirectional) high-speed
communication.
main feature:
Each value received through a digital transmission is treated as a separate sensor with its
own attributes. Multiple identical sensor types can be connected, but the physical ID must be
changed. For example, sensors for each of the 2 - 6S lithium batteries, or monitor individual
motor currents in a multi-motor model. Each sensor can be individually reset by special
functions.
The digital sensor can:
Play the value by voice.
Used for logic switches.
Input for proportional operation.
Displayed in the custom data transfer screen.

Related product manuals