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.
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.
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.
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.
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.
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).
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
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.