I’m trying to build an Air Manager panel for my PA-28. I’m having a problem getting an amp reading for battery load. I’m using “Electrical GENALT BUS AMPS:1”, “Amps” but I am getting no data.
Having same problem getting “ENG OIL TEMPRATURE:1”, “PSI”
Does Just Flight provide this data?
A:ELECTRICAL MAIN BUS AMPS, Amperes is one that most closely matches the VC.
A:ENG OIL TEMPERATURE:1, Celsius check your spelling and units
1 Like
Yes, temperature would not be measured with a pressure unit.
Oops. That was a typo. This is the code the gauge currently has. Pressure works but amps and temp don’t.
Also tried electrical main bus amps. Still no movement in the needle.
Since its text it might be better to copy/paste the text rather than an image.
. This is already in the gauge code. The picture is just a screen shot of what I have that’s not working.
Our ammeter logic is derived from ‘ELECTRICAL TOTAL LOAD AMPS, Amperes’ but with some additional logic to account for the battery voltage and fan status. That variable should give you a similar value to what’s shown on the ammeter though.
Our oil temperature logic is derived from ‘A:GENERAL ENG OIL TEMPERATURE:1, farenheit’.
Martyn - Just Flight
1 Like
Yeah.. temp works but not amps. I’ll check the rest of my script and see where the problem is.
I see the amp data coming from the sim now though.
Found the problem with the amp meter. The value coming from the flights sim was negative (ie:-39.65). Multiplied it by -1 to make it positive and now it works.
1 Like
@LTMcComb : I have the same problem. Seems like a simple solution, but I can’t seem to figure out the syntax…
Would you mind posting it?
For the next guy that runs into this:
finally figured it out. because MSFS returns a negative value to the total load variable, you need to change the min/max in the Var_cap statement to read:
amps = var_cap(amps_xpl[user_prop_get(engine_user_prop)], -70, 0)
Then reverse the variable return so that it reads:
amp = -(amps)
1 Like
You can simply do this instead and leave the min/max values as they were.
amps = var_cap(amps_xpl[user_prop_get(engine_user_prop)] * -1, 0, 70)
1 Like
I know this was two years ago, but it helped me get my ammeter working in Air Manager, thanks.