Struct VoltagePowerLookup
- Namespace
- NominalSystems.Classes
- Assembly
- NominalSystems.Classes.dll
[Nominal] Voltage-Power lookup table support structure for storing data for a particular set of voltage and power.
public struct VoltagePowerLookup
Constructors
VoltagePowerLookup(double, double)
Default constructor
public VoltagePowerLookup(double voltage, double power)
Parameters
Fields
Power
[W] Power of the system at the specified voltage
public double Power
Field Value
Voltage
[V] Voltage for the lookup voltage node
public double Voltage
Field Value
Properties
Current
[A] Current
public readonly double Current { get; }
Property Value
Resistance
[Ohms] Resistance
public readonly double Resistance { get; }
Property Value
Methods
FromJSON(JObject)
Converts a JSON object to a MotorVoltageLUT.
public static VoltagePowerLookup FromJSON(JObject obj)
Parameters
obj
JObjectThe JSON object
Returns
- VoltagePowerLookup
A motor voltage lookup table
ToJSON(VoltagePowerLookup)
Converts a MotorVoltageLUT to a JSON object.
public static JObject ToJSON(VoltagePowerLookup lut)
Parameters
lut
VoltagePowerLookupThe reference to the lookup table object
Returns
- JObject
The JSON object for this data-point