pidControllerLUT

class +AMrotorSIM.+pidControllers.@pidControllerLUT.pidControllerLUT(cnfg)

Bases: AMrotorSIM.pidControllers.pidController

Sub-class of pid controller with LookUpTable for force using MATLABs interp2

table = None

table is a struct which must include the following variables table.displacement = 1 x Ndisplacment array table.current = 1 x Ncurrent array table.force = Ncurrent x Ndisplacement

pidControllerLUT(cnfg)

Constructor

Parameters

cnfg (struct) – Cnfg_component substruct of cnfg-struct

Returns

pidControllerLUT object

+AMrotorSIM.+pidControllers.@pidControllerLUT.get_controller_current(obj, tCurr, y)

Provides the controller current from LUT

Parameters
  • obj (object) – Object of type pidController

  • tcurr (vector) – Time-vector of solution

  • y (vector) – position vector at the corresponding controller node

Returns

Controller current

+AMrotorSIM.+pidControllers.@pidControllerLUT.get_controller_force(obj, time, displacement)

Provides the controller force from LUT

Parameters
  • tcurr (vector) – Time-vector of solution

  • displacement (vector) – Displacement

Returns

Controller force

+AMrotorSIM.+pidControllers.@pidControllerLUT.LookUpTable(self, rpmTable, inputCell, rpmCurrent)

Assembles the desired table (from Config-file) for a controller characterized by a LUT

Parameters
  • rpmTable (vector) – Rpm values of LUT

  • inputCell (cell) – Corresponding values of interest

  • rpmCurrent (double) – Rotation speed (for interpolation)

Returns

Desired ouput matrix

+AMrotorSIM.+pidControllers.@pidControllerLUT.print(obj)

Displays the object name in the Command Window

Parameters

obj (object) – Objects of type pidController

Returns

Notification of object name