Public Types | Public Member Functions | Private Member Functions | Private Attributes
labust::control::SOIdentification Class Reference

#include <SOIdentification.hpp>

List of all members.

Public Types

enum  {
  alpha = 0, kx = 1, kxx = 2, delta = 3,
  wn = 4, numParams
}

Public Member Functions

double avgError ()
bool hasSwitched ()
bool isFinished ()
const std::vector< double > & parameters ()
void Ref (double ref)
double Ref ()
void reset ()
void setRelay (double C, double X)
 SOIdentification (double C=0, double X=0, double R=0, double E=0.1, double identLen=4)
double step (double error, double dT)
 ~SOIdentification ()

Private Member Functions

void calculateParameters ()

Private Attributes

int counterHigh
int counterLow
std::vector< double > e_max
std::vector< double > e_min
double eMaxError
double eMinError
bool finished
int identLen
double maxOsc
double minMaxError
double minOsc
std::vector< double > params
double ref
labust::control::Relay relay
std::vector< double > t_max
std::vector< double > t_min
double tSum
std::vector< double > xa_high
std::vector< double > xa_low

Detailed Description

The class implements the model parameter identification procedure by use of Self Oscillations (Limit-cycles).

Todo:
Check documentation.

Definition at line 48 of file SOIdentification.hpp.


Member Enumeration Documentation

anonymous enum

The parameters enumerator.

Enumerator:
alpha 
kx 
kxx 
delta 
wn 
numParams 

Definition at line 54 of file SOIdentification.hpp.


Constructor & Destructor Documentation

SOIdentification::SOIdentification ( double  C = 0,
double  X = 0,
double  R = 0,
double  E = 0.1,
double  identLen = 4 
)

Simple constructor.

Parameters:
COutput amplitude of the relay.
XInput hysteresis of the relay.
RReference for oscillations.
EAcceptable convergence error.
identLenThe count of oscillations to track.

Definition at line 41 of file SOIdentification.cpp.

Generic destructor.

Definition at line 63 of file SOIdentification.cpp.


Member Function Documentation

Return the current relative oscillation error.

Definition at line 122 of file SOIdentification.hpp.

The parameter calculation when one cycle finishes.

Definition at line 109 of file SOIdentification.cpp.

The switch indicator.

Definition at line 118 of file SOIdentification.hpp.

The method to check if the identification procedure has finished.

Definition at line 86 of file SOIdentification.hpp.

The method returns the identified parameters of the model.

Definition at line 90 of file SOIdentification.hpp.

void labust::control::SOIdentification::Ref ( double  ref) [inline]

Set reference around which to identify.

Definition at line 110 of file SOIdentification.hpp.

Set reference around which to identify.

Definition at line 114 of file SOIdentification.hpp.

The method resets the identification phase.

Definition at line 151 of file SOIdentification.cpp.

void labust::control::SOIdentification::setRelay ( double  C,
double  X 
) [inline]

The method sets the symmetrical relay parameters from outside.

Parameters:
COutput amplitude of the relay.
XInput hysteresis of the relay.

Definition at line 77 of file SOIdentification.hpp.

double SOIdentification::step ( double  error,
double  dT 
)

The method implements the identification step.

Parameters:
desiredDesired value of the controlled state.
stateCurrent value of the controlled state.
dTThe sampling time between step calls.
Returns:
The desired control of the identification procedure.

Definition at line 65 of file SOIdentification.cpp.


Member Data Documentation

Oscillation counters.

Definition at line 153 of file SOIdentification.hpp.

Definition at line 153 of file SOIdentification.hpp.

Definition at line 169 of file SOIdentification.hpp.

Definition at line 169 of file SOIdentification.hpp.

Error tolerance variables.

Definition at line 157 of file SOIdentification.hpp.

Definition at line 157 of file SOIdentification.hpp.

The identification progress flags.

Definition at line 133 of file SOIdentification.hpp.

Length of the identification.

Definition at line 165 of file SOIdentification.hpp.

Oscillations maximum and minimum trackers.

Definition at line 149 of file SOIdentification.hpp.

Definition at line 157 of file SOIdentification.hpp.

Definition at line 149 of file SOIdentification.hpp.

The parameter container.

Definition at line 141 of file SOIdentification.hpp.

Reference for identification.

Definition at line 161 of file SOIdentification.hpp.

The embedded relay controller.

Definition at line 137 of file SOIdentification.hpp.

Definition at line 169 of file SOIdentification.hpp.

Definition at line 169 of file SOIdentification.hpp.

Timebase of the identification.

Definition at line 145 of file SOIdentification.hpp.

Data vetors.

Definition at line 169 of file SOIdentification.hpp.

Definition at line 169 of file SOIdentification.hpp.


The documentation for this class was generated from the following files:


ident_so
Author(s): Gyula Nagy
autogenerated on Fri Aug 28 2015 11:23:43