Table of Contents

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

voltage double
power double

Fields

Power

[W] Power of the system at the specified voltage

public double Power

Field Value

double

Voltage

[V] Voltage for the lookup voltage node

public double Voltage

Field Value

double

Properties

Current

[A] Current

public readonly double Current { get; }

Property Value

double

Resistance

[Ohms] Resistance

public readonly double Resistance { get; }

Property Value

double

Methods

FromJSON(JObject)

Converts a JSON object to a MotorVoltageLUT.

public static VoltagePowerLookup FromJSON(JObject obj)

Parameters

obj JObject

The 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 VoltagePowerLookup

The reference to the lookup table object

Returns

JObject

The JSON object for this data-point