"Robert, the input to your scripts (even though the sensor is configured for kts in the sensors screen) will still be in m/s you need to do a translation in LUA to scale that to whichever scale you need."
"The issue I have is not with the lua script. The issue I have is with the sensor data. I am fully configured for kts as my units of choice. The Lua dashboard you have is working accurately. But when I create my own dashboard…"
"Robert, Glad you're finding the project interesting.
Are you aware of the configuration page which is part of the main lua script? The telemetry script has two screens. When you load it (long press on PAGE button) you see the main telemetry…"
"On a side note about the AoA question, I can see that the data flash logs do have an AOA data set. I am unsure how it is calculated or how good the data is. There are lots of fluctuation probably due to vibration but you can see it creep…"
"I want to walk back the statement that your code is mathematically correcting the error. That may not be true now that I have a chance to think about it. it is possible that the person who coded this knew that the data is coming over in…"
"shvars.speedUnits is set by your units selection on the configuration page (which is the code in confrun.lib), which writes the chosen value to your model config file. Its read back in from the config file when the code is initialised. I think you…"
"I am not a programmer but it seems that the below variable needs to be set:
shvars.speedUnits == 2
I am assuming that units_set is unset so it traverses the if/elseif/elseif/else code. Let me know if I am wrong. If I am right, how would…"
"Robert, the telemetry sensor is configured for kts as you know (the log file shows the same), but the numeric value on the sensor is actually m/s. The teensy sends in m/s, but if the sensor on the taranis is configured in anything other than kts,…"
"This is clearer to me now. I did two more flight and noticed that the speed on the lua dashboard is likely correct. Outside of that, I have my own telemetry screen that has air and groundspeed in it as well as voice alerts for providing…"
"Robert, That is an issue with the wiki (missed removing a bit) since the configuration page took over from the offset.lua mixer script - that was how we used to set the offsets and plane/copter before I rewrote the LUA scripts. Thanks for spotting…"
Looking at the documentation, there is supposed to be a file called mixes/offset.lua. Is that supposed to be in the scripts dir on the Taranis SD Card? I see no such file on my card. Do I just create a text file with some…"
To answer previous questions, see below:
I have OpenTx 2.2
Software is AP 3.8.2
Teensy is plugged into Telem2. I have no other smart devices or sensors plugged in.
Telem 1 has the 3dr radio.
I do not see anywhere is says Telemetry type on…"