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()

Default constructor

public VoltagePowerLookup()

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(JToken)

Converts a JSON object to a MotorVoltageLUT.

public static VoltagePowerLookup FromJSON(JToken obj)

Parameters

obj JToken

The JSON object

Returns

VoltagePowerLookup

A motor voltage lookup table

ToJSON(VoltagePowerLookup)

Converts a MotorVoltageLUT to a JSON object.

public static JToken ToJSON(VoltagePowerLookup lut)

Parameters

lut VoltagePowerLookup

The reference to the lookup table object

Returns

JToken

The JSON object for this data-point