PController Class Reference

#include <PController.h>

Public Member Functions

 PController (Mdouble pGain)
 
Mdouble apply (Mdouble stressError, Mdouble timeStep)
 

Private Attributes

Mdouble pGain
 

Constructor & Destructor Documentation

◆ PController()

PController::PController ( Mdouble  pGain)
7 : pGain(pGain)
8  {}
Mdouble pGain
Definition: PController.h:10

Member Function Documentation

◆ apply()

Mdouble PController::apply ( Mdouble  stressError,
Mdouble  timeStep 
)
10  {
11 // Proportional Controller
12  Mdouble pController = pGain * stressError;
13 
14 // Controller Command
15  return pController;
16 }
double Mdouble
Definition: GeneralDefine.h:34

References pGain.

Member Data Documentation

◆ pGain

Mdouble PController::pGain
private

Referenced by apply().


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