This OpenTX LUA script will navigate you through the steps to tune your plane TECS. The data will be processed and reformatted to Ardupilot parameter units (i.e. dm/s->kph) on the Transmitter directly. Finally the TECS will be displayed on the screen and saved to a logfile.
This is based on Yaapu's FrSky Telemetry Script. Before you continue, make sure you have everything set up on Arduplane and your RC Link to have this working (passthrough telemetry).
It requires some custom sounds but still uses the built-in numbers and units on callouts. The sound files are provided in /SOUNDS/ but matching, complete soundpacks (including the TECS sounds) can be found here: OpenTX_soundpacks A description of filenames and text are located in assets/custom_sounds.csv
The script is running in a loop of:
- read instructions of next step
- wait for you to get the plane in the desired state, attitude or speed
- save the related attributes
Each step is triggered by the configured switch and will update your TECS, which are displayed on the telemetry screen.
The process can not be paused or aborted but repeated as many times as needed.
- CRSF protocol only as of today (crossfire & ELRS)
- read airplane telemetry
- step-by-step instructions for tuning the TECS
- single switch operation
- show TECS parameter in Arduplane format and unit on screen
- write logfiles to /LOGS/tecs_<timestamp>.txt
-
copy
WIDGETS/TECS/main.lua
to your SD card -
Choose your prefered voice and copy the custom sounds from
SOUNDS/\<voice-of-your-choice\>.zip
to your SD-card/SOUNDS/en/
-
unload/remove yaapu Telemetry Script temporarily from the active Widgets List
-
[optionally] enter "widget settings" and choose your switch to initiate the next step. Default is SH
-
reboot your radio to flush the widget cache
-
telemetry values on the left should change when moving your aircraft
- Copy
SCRIPTS/FUNCTIONS/tecs.lua
to your SD-card/SCRIPTS/FUNCTIONS/
- Copy
/SCRIPTS/TELEMETRY/tecsX[7|9].lua
to your SD-card/SCRIPTS/TELEMETRY/
- Choose your prefered voice and copy the custom sounds from
SOUNDS/\<voice-of-your-choice\>.zip
to your SD-card/SOUNDS/en/
- replace your yaapu* from the models telemetry screen with "tecstm"
- (Although the script is based on Yaapu FrSky Telemetry Script 1.9.5, it cant be used simulatenously)
- set up a switch in SPECIAL FUNCTION to trigger the script (momentary switch recommended)
- open your telemetry screen and validate that Pitch and Roll updating accordingly to aircraft movement
! You are 100% of the time in control and responsible for your plane !
There is no need to do any risky manouvers, you can abort at any time and re-gain altitude etc. or cycle through the menu and start over again
- open the telemetry screen on your remote, it will have 0s in all parameters
- launch your plane and climb to a comfortable altitude, continue in FBWA
- engage your switch
- follow the instructions to get and hold the plane in the requested attitude and/or speed [give the telemetry here 1 or 2 second to update]
- engage the switch again to save the values
- repeat
- Once finished your TECS screen should be filled with numbers
- a logfile will be written to /LOGS/tecs_<timestamp>.txt
- Use MissionPlanner, QGroundControl or Parachute to update your configuration
https://ardupilot.org/plane/docs/tecs-total-energy-control-system-for-speed-height-tuning-guide.html https://notes.stavros.io/ardupilot/tuning-the-tecs/ https://notes.stavros.io/ardupilot/tecs-tuning-calculator/
Disclaimer:
Use on own risk without any warranty!