MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

05/03/2024 - This forum is read-only

The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!

See you on our MobiFlight Community Discord server.

A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.

The forum is still providing a lot of good content, hence we keep this information accessible.

icon
Avatar
crazypilot_uk
Posts: 30
Hi,
I have a fuel gauge that I would like to read zero when the battery master switch is off and then read the fuel contents when the battery master switch is on, the fuel gauges reads the FSUIPC Offset value 0B74 which does not change if the batery master switch is on or off, any ideas how this can be achieved ?
2017-04-24 10:08
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Hi........ Maby Difficult.:scared:

EDIT: If you use a Servo instead of Stepper this normaly should work fine !


I´m on a trip and not on my Flight Sim Computer... So i can´t test this at the moment.... You have to try out youreself.

Create a Duplicate Config of youre working Fuel Gauge Config ( Device same Stepper)
Add a compare in this new duplicate Config to Zero the Value ( Maby If Value = 1 Then 0 Else 0 )

Create a Readout Config ( No Device) for the Master Battery Switch.

Now Add Preconditions in the Fuel Gauge Configs....
The Main Config " Only Work if Master Battery = 1"
The Duplicate Zero Config " Only Work if Master Battery = 0"

Maby this is enough and work........ But Maby there is a Problem with the "Zero" Point of the Stepper. (Not shure if it´s posible to controll a stepper with two different Configs cause it´s normaly need to get calibrated every use)

PLEASE Report if this is working already !



If THIS is NOT working i need to use the bad word "LUA" again.
If we would write a simple script that do this calculation for us then Mobiflight can Readout the final Data.

Script would be maby.....
Read Fuel Offset
Read Battery Offset.
Create new Output Offset on Custom Adress ( Maby 66c0)
IF Battery = 0 THEN Output = 0
ELSE Output = Value of Fuel Offset.

Mobiflight then would read the new Custom Output for the Gauge.... If Battery is Off then the value turn into Zero and Mobi would simple show it.
*****************

Again sorry that my LUA Sklills are still poor. I Hope in future i be able to write a script like this and share it here in Mobiflight !
Good Luck !
2017-04-24 11:02
Avatar
crazypilot_uk
Posts: 30
Hi Pizman,
Thank you for the advice, Using a servo I will have a go tonight and report back :thumbup:
2017-04-24 11:15
Avatar
crazypilot_uk
Posts: 30
Hi Pizman,
I changed my fuel gauge over to a micro servo and created the configs as described in your previous email, everything worked great ! thank you for all your help.:)
2017-04-25 11:46
icon