Version: 1.6.19.0
Frequency: Consistently
Severity: Low
Bug description:
The modular electrical system shows a parsing warning when trying to use units with a simvar. The simvar still does work correctly though.
Repro steps:
Have a generator like the one below in your electrical system. Compile the project and look at either the compilation console or the Logs tab in the Electrical system debug tool. There’ll be a line saying “Couldn’t parse a valid unit from string: “rpm””.
This should be a correct way to read the engine rpm, atleast according to the docs (although there’s a typo in the docs “#GovernedRPM:[data.simvar.(GENERAL ENG RPM:1, rpm)]”. Notice the extra dot after simvar)
generator.1 = Name:EngineGenerator1#Stype:AC#Vrms:115#PowerRating:45#PowerFactor:0.95#GovernedRPM:[data.simvar(GENERAL ENG RPM:1, rpm)]#TensionDropRPM:10000