Hello,
attached you can find a lua script which i've built for simple ealtime performance measurement purposes by using the openXsensor (including altitude & airspeed sensor).
The script is designed to run with oTx 2.2 (tested on RC8) / Taranis transmitters.
How it works:
Without further configuration this script performes 4 measurement cycles and builts the average of the determined values.
The duration for a specific cycle can be preselected between 10 seconds (min) and 25 seconds (max) by using pod S2. The duration can't be changed during measurement.
A measurement will be initiated by pulling switch „sh“
During record, the script builts the altitude difference between start and end, and permanently calculates the average speed.
So the L/D ratio can be determined when the record is succesfully finished.
During measurement, the maximum deviation from the average speed will be traced.
If the deviation exceeds 3 percent from average speed, the script aborts this cycle and you can restart it by pulling „sh“ again.
Conditions:
- openXsensor, including altitude & airspeed sensor
- openTx 2.2
- Altitude sensor labeled „Alt“, Precision 1
- Airspeed sensor labeled „ASpd“, Precision 1
- actual lua returns mp/h speed values, which are recalculated into km/h
Configuration
There are some variables where you can customize the functionality in order to fulfill your individual requirements:
- sw_record: choose switch to start record / cycle
- Tmin: minimal duration (in seconds) of a record
- Tmax: maximal duration of a record
- setTime: pod where you can select duration between Tmin / Tmax
- max_cyc: maximal number of records for building average values
- Vdelta: max allowed deviation from average speed during measurement (in percent)
-…. telemetry labels (VSpd is obsolet)
have fun & regards
Udo
lua script for performance measurements
Development & General Chat for the superb openxvario project.
Moderator: rainer
-
- Posts: 8
- Joined: Thu Jan 05, 2017 6:48 pm
- Country: -
lua script for performance measurements
Post by strgaltdel »
- Attachments
-
- PerfMeas.zip
- (138.94 KiB) Downloaded 252 times
Return to “OpenXVario - an open source vario supported by the open source firmwares!!”
Jump to
- OPENRC News & Information
- ↳ General Information & Rules
- ↳ Feedback
- General help and information
- ↳ Software
- ↳ Hardware
- ↳ General help (FrSky Taranis radio)
- Open Radio Control Transmitter Firmwares
- ↳ General model setup questions
- ↳ er9x / gruvin9x / th9 based firmwares
- ↳ Template Library
- ↳ Splash Screen Library
- ↳ Helicoptor Programming
- ↳ radioclone
- ↳ stock firmware (fly sky th9x)
- ↳ Template Library
- ↳ Sound Pack Library
- ↳ Edge TX
- ↳ openTx
- ↳ openTx for FrSky radios
- ↳ openTx model setup
- ↳ er9x
- ↳ er9x model setup
- ↳ ersky9xr
- ↳ erskyTx (was ersky9x)
- ↳ ersky9x model setup
- ↳ gruvin9x
- ↳ gruvin9x model setup
- ↳ th9x
- ↳ th9x model setup
- ↳ gv9x
- ↳ radioclone
- ↳ radioclone model setup
- ↳ tgy9xr
- ↳ tgy9xr model setup
- ↳ AR-T6
- ↳ other
- Desktop Software to Program Your Transmitter
- ↳ eePe
- ↳ companion9x
- ↳ eepSKYe
- Open Radio Control RF Systems & Hardware
- ↳ OpenLRS
- ↳ OpenLRSng
- ↳ OpenLRSng hardware
- Closed Source Radio Control RF Systems & Hardware
- ↳ Royal Way - Rlink UHF Long Range System
- Transmitter Hardware
- ↳ FlySky TH9X / Turnigy 9X / Eurgle 9X radio
- ↳ SMARTIEPARTS PROGRAMMER
- ↳ HARDWARE MODS & HACKS
- ↳ FRSky Telemetry Mods
- ↳ ArduPilot Mods
- ↳ Electronic Mods
- ↳ Hardware Mods
- ↳ Soldering, Hardware, Skills
- ↳ DSM2/DSMX Mods
- ↳ UPGRADE BOARDS
- ↳ sky9x upgrade board
- ↳ gruvin9x upgrade board
- ↳ 9Xtreme upgrade board
- ↳ RF MODULES
- ↳ The FRSKY Forum
- ↳ PROGRAMMERS
- ↳ FrSky Taranis radio
- ↳ FRSky Horus radio
- ↳ Turnigy 9XR PRO radio
- ↳ Orange DSM Telemetry module
- ↳ Turnigy 9XR radio
- ↳ PROGRAMMERS
- ↳ Other Radios
- ↳ Retro Radios
- Other OPEN Projects
- ↳ General RC Electronic Projects and Discussion
- ↳ OpenXVario - an open source vario supported by the open source firmwares!!
- ↳ Other Electronic Projects
- ↳ OpenFlightStab
- ↳ OpenLRSng
- ↳ 3D Printing
- Other Forums
- ↳ The Pickled Gnu (The Pub)
- ↳ FPV Projects
- ↳ Reviews
- ↳ Where to buy / Spares / Modules? Selling up?
- Links
- ↳ er9x on Google Code
- ↳ ersky9x on Github
- ↳ Gruvin9x on Google Code
- ↳ th9x on Google Code
- ↳ openTx on Google Code
- ↳ gv9x on Google Code
- ↳ radioclone on Sourceforge
- ↳ eePe on Google Code
- ↳ companion9x on Google Code
- ↳ 9X Guides
- ↳ openxvario