yaapu / FrskyTelemetryScript

A LUA telemetry script and widget for the Horus X10(S),X12 and Taranis X9D+,X9E,QX7 and X-Lite radios using ArduPilot frsky passthru protocol
GNU General Public License v3.0
442 stars 141 forks source link

Feature Request: Roll and Pitch setTelemetryValue #93

Closed 0815Creeper closed 3 years ago

0815Creeper commented 3 years ago

it would be nice if the script could output the roll and pitch angle (possibly in degrees) to otx, so that it can be logged/used by otx just as altitude, speed, voltage, GPS etc. Would this be possible without too much work?

yaapu commented 3 years ago

Hi, you do not specify your radio model, generally speaking it would be easy but on Taranis radios it would use memory which I rather save for future features, you can try to add it yourself by uncommenting two lines, search the sources for setSensorValues() and uncomment following 2 new lines, one for roll and one for pitch, something like

setTelemetryValue(0x070F, 0, 0, telemetry.roll, 20 , 0 , "ROLL") setTelemetryValue(0x071F, 0, 0, telemetry.pitch, 20 , 0 , "PTCH")

0815Creeper commented 3 years ago

Yea, thanks. I could not find any instructions on how the preprocessor/compiling works. As this does not seem to be necessary, I already got it working. Thanks