Ammeter warning light in default Cessna 152

Does anyone know what variable controls the ammeter warning light?

Or what logic is used to decide if it should be ON or OFF?

I’m at my wits end with that indicator. My goal is to integrate it in the bottom half of my ammeter gauge.

Robert
“Don’t jump sir! Not for a stupid warning light! It’s just not worth it!”

It’s discharging. Turn on your Generator/Alternator.

Hello there,

Thank you for your post! Your topic has been moved to the SDK subcategory of General Discussion & Community Support. The General Discussion category is meant for discussions that fall outside our other sub-categories.

Please check out these other categories for your future posts:

  • Aircraft
    is where you discuss current or future planes coming to MSFS as well as assistance with liveries.
  • World
    is where you discuss scenery, airports, and weather.
  • Aviate, Navigate, Communicate
    is where you ask for help with flying.
  • Tech Talk
    is where you discuss installation, graphics, drivers, performance, CTDs, peripherals, and hardware.
  • Menus & Activities
    is where you discuss activities (landing challenges, bush trips, etc), plus anything accessed by the menus including the Marketplace, settings, logbook, cameras, etc.

I know, I did it on purpose so it would light for the pic. As I said, I’m trying to find out how it is controlled so I can reproduce it on my ammeter gauge.

I don’t use the in-game dash, I use AAO to manage all the gauges on a separate display. Thanks to G.W., HuHa and Lorby-SI, I can customize the gauges to my liking (DME with indicators, local clock, suction, ammeter, COM with large numbers, transponder with working IDENT lights, etc).

I use external switches to control everything; no keyboard input except to send a text message. And right now, the ammeter warning light is the vary last indicator that I haven’t found supporting information.

Robert

Adding @Sling380 and @Crunchmeister71

They make / code instruments for Air Manager so may have an idea for you.

1 Like

It would help to know what aircraft you need this to work for. The pic looks like 152. Is this right and is this also for other aircraft?

Unfortunately not every aircraft uses the same data or operation. Generally though a light like this comes on to alert when the voltage drops due. This can be due to a fault, low rpm or just not being switched on.

You would also be better off using Air Manager for your instruments simply for the reason that there are way more users and existing instruments for all kinds of aircraft available. You may even find what you want or close to what you want already done.

Crap, it’s the default C-152. I’ve updated the thread title.

I don’t know what Air Manager is, never heard of it…?

The ammeter warning light is literally the very last item for me to complete my console… :frowning:

Stick Air Manager in your favourite search engine and YouTube to learn more.

A quick look at my C152 panel for Air Manager.

1 Like

The images of the gauges look super crisp, but I’m not shopping for a $100CAD software right now.

I’d just like to know how the ammeter warning light is controlled. I see the warning light below the ammeter on your video as I’m typing this.

How did you get that to function? Can you show me the code? Or is that proprietary and I have to buy to see how it works?

Robert

How about Light On if Ammeter Current < 0

Unless he has some sort of mod happening, it’s not as simple as that.

Look at the video above. C-152 engine start at 4:21, ALT and BATT switches ON, ammeter warning light ON.

Ammeter warning light only shuts OFF only at 5:50.

I wouldn’t know how to code a gauge if my life depended on it … but …

Do you have access to battery voltage as a variable? You could either make a simple assumption that the light should be on if voltage is less than ‘x’ OR set a variable equal to the voltage and monitor over time for a decrease that would evidence the charging system not working.

I wish those that knew would help you more as I understand how much fun it can be to do things on your own.

1 Like

The light goes off at 5:50 because of the increase in RPM. Watch the increase in RPMs just before the light goes out. Low idle does not provide the voltage necessary to power the equipment and charge the battery.

I thought of this in the beginning.

I just wish I knew which ones I’m supposed to take. :smiley:

Wouldn’t any negative battery load mean the light should be on?

You are most likely correct. This pic indicates that the warning light is related to voltage, and not current (despite being located beside an ammeter - measures current).

This is when I shut off the alternator. I see current and voltage variables, but nothing I could compare 2 different voltages, or even 2 currents.

There’s this variable WARNING_VOLTAGE boolean, but it’s in the WebAssembly section. I don’t know if we can access token variables from within an XML gauge.

Definitely not dependant on these 2 voltages. I created a Voltmeter gauge, turned on EVERYTHING on the cockpit and it never wavered from 25.4v when I shut off the alternator (even if that doesn’t make sense).

ELECTRICAL BATTERY BUS VOLTAGE
ELECTRICAL BATTERY VOLTAGE

It has to be some sort of current calculation.

Robert

Yes it’s payware but I’m sure I could help with a small thing like this. Fundamentally most of the replies are correct in that you would think the light would simply go out once the battery was charging but going from memory the C152 is not simply using a change in amps polarity as the trigger. I’d need to check what I implemented as these were done a while back and I’ve done so many others since. Gets muddled after a while. I’ll have a look when I get a chance but in the meantime you could check the in sim code. JPL mod may be different.

1 Like