Declared in PowerBus

Declaration

double GetCurrentBetween(
    UniverseObject from,
    UniverseObject to,
    TerminalType fromTerminal,
    TerminalType toTerminal
);

Description

Returns the signed current flowing through the wire between two components on the specified terminals. Positive current means flow from to . Returns 0 if the wire does not exist in the network.

Parameters

NameDescription
fromThe component the wire originates from
toThe component the wire terminates at
fromTerminalThe terminal on
toTerminalThe terminal on