So habe das ok bekommen das überarbeitete script hier ein zu stellen.
Danke für das Umschreiben und für das ok der Veröffentlichung an Gando der mein script auf den neuen Stand gebracht hat.
Viel Spaß beim testen:
-- Version 1.0
-- Telemetry screen UnisensE_Heli.lua is based on UNISENS E and 8XR Receiver
-- (rename it to telem1.lua if it should be displayed as your first telemetry panel)
-- Save the model script under \\SCRIPTS\modelname where modelname is the name of your model
-- It displays:
-- RSSI
-- BEC Voltage if in Telemetry is A1
-- Lipo Voltage
-- Consumption
-- Current and maximum current
-- Power and Maximum Power
-- RPM for Helis depending on Gear Ratio
local g_rpm=0
local function bgrnd_func()
rpm = getValue("RPM")
g_rpm = (rpm / (121/ 12)) -- GEAR RATIO for Heli / Getriebeübersetzung für Heli (Hauptzahnrad / Motorritzel)
end
local function run_func(event)
bgrnd_func()
lcd.clear()
-- Let's draw some values.
lcd.drawChannel(193, 15, "Cons", XXLSIZE)
lcd.drawRectangle(99,54 ,93, 65)
lcd.drawText(101, 56, "Lipo", SMLSIZE)
lcd.drawChannel(143, 56, "VFAS", SMLSIZE)
lcd.drawText(155, 56, "BEC", SMLSIZE)
lcd.drawChannel(185, 56, "RxBt", SMLSIZE)
lcd.drawText(5, 5, "Drehzahl", SMLSIZE)
lcd.drawRectangle(3, 3, 88, 18)
lcd.drawNumber(89, 4, g_rpm, DBLSIZE)
lcd.drawText(5, 25, "Ampere", SMLSIZE)
lcd.drawText(5, 33, "Max", SMLSIZE)
lcd.drawRectangle(3, 23, 88, 18)
lcd.drawChannel(84, 24, "Curr", DBLSIZE)
lcd.drawChannel(43, 32, "Curr+", SMLSIZE)
lcd.drawText(5, 45, "Leistung", SMLSIZE)
lcd.drawText(5, 53, "Max", SMLSIZE)
lcd.drawRectangle(3, 43, 88, 18)
lcd.drawChannel(84, 44, "PWR", DBLSIZE)
lcd.drawChannel(43, 52, "PWR+", SMLSIZE)
lcd.drawText(118, 4, "RSSI", SMLSIZE)
lcd.drawNumber(143, 4, getValue("RSSI"), LEFT+SMLSIZE)
lcd.drawText(lcd.getLastPos(), 4, "%", SMLSIZE)
lcd.drawGauge(100, 2, 90, 11, getValue("RSSI"), 100)
end
return { background=bgrnd_func, run=run_func }