R/C Settings
Throttle Average Lua Script Version:v1.0 |
|
|
Here is a quick telemetry lua script that I wrote for my NanoQX. I wanted to see what the average throttle setting that I was using during a flight. I use Timer2 to keep track of the time I have the throttle above -95. So every cycle of the script, I add the throttle value and track the number of times I have added the value so I can take the average. You need to place this script in the following subdir on your SD card:
/SCRIPTS/{model_name}/
You can change the name from telem3.lua to any number from 0-6.
A couple of things to note, I use the timer2 and SA(UP) as my flag to average. SA(UP) is my throttle release. I also left the Count variable on the screen. It's how many times the throttle has been sampled. And the 00K counter is how many samples have been done in the ten thousands. I put this in since the Count variable wraps.
|
|
Data
|
Size |
843 B |
Downloads |
1789 |
Created |
2014-07-10 |
Created by |
Fig Newton |
Changed at |
2014-07-21 |
Modified by |
Fig Newton |
|
|
|
|
|
|
You have no rights to post comments