robthomson / RF2STATUS

Rotorflight 2 / Ethos Flight Status Widget
8 stars 1 forks source link

Calculate Fuel Locally #4

Closed jimmy6616 closed 3 weeks ago

jimmy6616 commented 3 weeks ago

When you select local calculation, as an example attached. Main pack voltage is 22.58v and the calculation shows 56%

This should be reading approx 23% Calc_rfstatus

robthomson commented 3 weeks ago

Is your cell count correct?

jimmy6616 commented 3 weeks ago

Yes , as discussed I’ve managed to adjust the sensor in Telemetry to display the correct voltage from the HW Esc. Would be better I believe to be able to adjust in RF or the LUA ?

robthomson commented 3 weeks ago

Lua is not right place to do this sort of adjustment ( in the end the lua is simply displaying values from the sensors)

But 100% agreed it shoulr be possible to adjust these values at source - on the fbl.

jimmy6616 commented 3 weeks ago

Thanks Rob.

jimmy6616 commented 3 weeks ago

Does your voltage reading get taken from the FBL or the sensor in Ethos ? I suspect the FBL as it’s still showing the original’ reading and not the adjusted voltage.

robthomson commented 3 weeks ago

The fbl is delivering the sensor to the radio. So source is ultimately the fbl

jimmy6616 commented 3 weeks ago

The readings between actual and displayed at 0.21v, which is enough to make the calculations a bit skewed

robthomson commented 3 weeks ago

For now you can adjust the value using the sensor in ethos.

This will help the issue.

Longer term it should be done on the fbl

jimmy6616 commented 3 weeks ago

I’ve raised an issue on GitHub firmware  Jim

On Sunday, September 22, 2024, 8:37 PM, Rob Thomson @.***> wrote:

For now you can adjust the value using the sensor in ethos.

This will help the issue.

Longer term it should be done on the fbl

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.Message ID: @.***>

robthomson commented 3 weeks ago

Issue in the end is the source voltage.