Electrical system shows parsing warning when it shouldn't

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

Hello @RJiiFIN and thank you.

I logged two bugs :

  • one for the typo in the documentation example,
  • and the second for the false positive console log warning about the simvar in [ELECTRICAL].

Regards,
Boris

3 Likes

Hello @RJiiFIN

The issue for the false positive console log warning about the simvar in [ELECTRICAL] is fixed in the current SU4 version.

The documentation will be fixed for SU5. I will tag the topic as fixed when the SU5 flighting is available to test.

Regards,
Boris

2 Likes