Closed pierrotm777 closed 1 year ago
Can i do this change ?
local function reset_if_needed() -- test if the reset switch is toggled, if so then reset all internal flags if SwReset ~= "" then -- Update switch position if ResetDebounced and HasSecondsElapsed(2) and -1024 ~= getValue(SwReset) then -- reset switch print("reset switch toggled") CheckBatNotFull = true StartTime = nil PlayInconsistentCellWarning = true PlayFirstMissingCellWarning = true PlayMissingCellWarning = true PlayFirstInconsistentCellWarning = true InconsistentCellVoltageDetected = false VoltageHistory = {} ResetDebounced = false VoltsNow = 0 MaxWatts = 100 --"-----" MaxAmps = 2100 --"-----" --print("reset event") end if not HasSecondsElapsed(2) then --print("debounced") ResetDebounced = true end end end
I have found where add Current/Max values: local MaxWatts = 2100 local MaxAmps = 100
Hi, I am out of the town for the weekend and reply when I get home as for the script showing 4000mah in place of 5000mah that is expected and described in the release notes:
The reserve is configurable, 20% is the set default
If you want to change the reserve amount (or shut it off) you would have to edit the script and set the value to either 0 or ""
asfor the other question, I will have to look at it when I get home.
regards, Dave
On Sat, Jan 7, 2023 at 5:51 AM pierrotm777 @.***> wrote:
Hello,
I should like to use your very nice widget on my Radiomaster TX16S MkII with EdgeTX. [image: mahre2] https://user-images.githubusercontent.com/8189970/211149013-654ad060-802c-483e-b6e3-7ff530f504ad.jpg I use a Frsky FAS100 sensor. My battery is a 5000mAh 5S. My setup is: VG6=5 VG7=50 VG8=50 VG9=100
But my screen return 4000mAh and not 5000mAh and Current/Max is always at 0A/0A. Can you help me for have a good setup ?
Thanks,
Pierre
— Reply to this email directly, view it on GitHub https://github.com/fdm225/mahRe2/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMITIGRQNGUF3UIO24MIVLWRFKFRANCNFSM6AAAAAATT4YEXA . You are receiving this because you are subscribed to this thread.Message ID: @.***>
-- I'm not a nerd, Bart. Nerds are smart.
-Milhouse Van Houten
Hi Dave, I wanted french sounds and the possibility to choose the language between several. I send you my job. I have tried it with success on my Tx16S. mahRe2-main.zip Only WrnHrn, Scrash, Samblc and mcw aren't translated. If you want add it in french language, thanks in advance. For spanish, i use this web page. For french language, i use this web page (choose Français FR Féminine).
Pierre
Used this day with success. Thanks for this share.
Hello,
I should like to use your very nice widget on my Radiomaster TX16S MkII with EdgeTX.
I use a Frsky FAS100 sensor.
My battery is a 5000mAh 5S.
My setup is:
VG6=5
VG7=50
VG8=50
VG9=100
I have define a new sensor named mAh as explained. About the widget settings i have defined: mAh > mAh Voltage > VFAS (i havent't cell sensor for now) Current > Curr
But my screen return 4000mAh and not 5000mAh and Current/Max is always at 0A/0A. Can you help me for have a good setup ?
Thanks,
Pierre