"Recharge Batteries" buttons disable door-powered cabin entry lights
-
You know how, if the main battery is off and there's no external power, there're still some lights that come on when the door is opened? That functionality stops working if either of the Recharge Batteries buttons in the engine pages of the Starship's tablet are pressed. (To be clear, what's disabled is just the "door power." The door-triggered light toggling function itself is still working and can be seen if the main battery is switched on to provide power.)
This line in the battery recharge part of BlackSquareTablet.js seems to be what triggers it:
SimVar.SetSimVarValue("ELECTRICAL BATTERY VOLTAGE:4", "volts", 26.0);
If I change that to a number bigger than 26, like 26.1, then Recharge Batteries no longer disables the door-power.
-
That's... a really good one... Especially since the maximum voltage for that battery in the systems configuration is 26.0V. I'll look into it. I might be able to tease out whether this is something I can fix nominally, or whether it's a simulator level bug. Thanks for finding it.
-
Oohh...system.cfg... voltage curves... so that's how that works.
I was looking all over .xml files trying to find some reference to 26So maybe when the simvar gets the voltage number, it's starting from the left of the curve and finding the 0:26 entry first and setting capacity to 0? And there's some (undocumented?) behavior in MSFS that says "0 remaining capacity is automatically 0 volts," even if the voltage curve says 0 should be 26?
But if that's the case...
Yep, tested it and Recharge Batteries disables external power too!
(I should note I've only been trying it in FS2024)