ilihack / LuaPilot_Taranis_Telemetry

This Script LuaPilot is a nice Telemetry screen for Taranis for Arducopter and more
GNU General Public License v2.0
37 stars 19 forks source link

OpenTX 2.2 / 2.1: Battery percentage callout #8

Closed j3ling closed 6 years ago

j3ling commented 6 years ago

For OpenTX 2.2 the SayBattPercent() function needs to be changed, as the unit parameter of the playNumber function has changed (see https://github.com/opentx/lua-reference-guide/blob/master/general/playNumber.md). The original script calls "Miles per Hour" instead of "Percent" as unit.

To fix this playNumber(round(lastsaynbattpercent), 8, 0) needs to be playNumber(round(lastsaynbattpercent), 13, 0) for openTX 2.2

gulp79 commented 6 years ago

Thanks! fix added.