Skip to content

A lua telemetry script fot the Taranis X9D+ and X7 radios using the frsky passthrough protocol

License

Notifications You must be signed in to change notification settings

OlivierJB/FrskyTelemetry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yaapu Frsky Telemetry script

A lua based telemetry script for the Taranis X9D+ and X7 radio using the frsky passthrough protocol.

Requires OpenTX 2.2 and a recent release of arducoper, arduplane or rover.

Tested on a pixracer with copter 3.5.3 and on a pixhawk clone with copter 3.5.4

Taranis X9D+

Taranis X7

Features

  • flight mode (modes are displayed based on the frame type:copter,plane or rover)
  • artificial horizon with roll,pitch and yaw with numeric compass heading
  • battery voltage from 3 sources (in order of priority)
    • frsky FLVSS voltage sensor if available (vs is displayed next to voltage)
    • frsky analog port if available (a2 is displayed next to voltage)
    • flight controller via telemetry (fc is displayed next to voltage)
  • battery lowest cell if available or cell average if not
  • battery current
  • battery capacity and battery capacity used in mAh and %
  • vertical speed on left side of HUD
  • altitude on right side of HUD
  • gps altitude
  • gps fix status and hdop
  • flight time
  • rssi value
  • transmitter voltage
  • home distance
  • home heading as rotating triangle
  • mavlink messages with history accessible with +/- buttons short press
  • english sound files for selected events: battery levels, failsafe, flightmodes and landing

Installation

The script is quite big and compilation on your radio may fail. The safest way is to compile it on Companion and then copy the .luac compiled version to the SD card in the /SCRIPTS/TELEMETRY folder.

To enable sound files playback copy them to /SOUNDS/yaapu0/en folder.

Hardware requirements

Please refer to the arducopter wiki for information on how to configure your flight controller for passthrough protocol

For information on how to connect the FrSky equipment together, please refer to

Test Mode

The script can be run in TEST mode. By using TEST mode you can control the telemetry values by moving the radio sticks.

PLEASE DO NOT FLY IN THIS MODE

To enable TEST mode you need to uncomment some code and recompile the script.

the first change is in function telemetryEnabled which should be as below

local function telemetryEnabled()
	if getValue("RxBt") == 0 then
		noTelemetryData = 1
	end
	return true
	--return noTelemetryData == 0
end

the second part that needs to be changed is in the run() function where the line symMode() must be uncommented

local function run(event) 
   ...
			processTelemetry()
			lcd.clear()
			symMode()
			drawHud()
			drawGrid()
			drawBattery()
   ...

Now you can test how the script behaves by using your radio channels 1,2,3,4,10 and 12.

Notes

Speech sound files generated with https://soundoftext.com/

As of now only english is supported

About

A lua telemetry script fot the Taranis X9D+ and X7 radios using the frsky passthrough protocol

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages