HPL3/Amnesia: Rebirth/Scripting/cPidControllerf

From Frictional Wiki
Jump to navigation Jump to search

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

Fields

Field Type Field Name And Description
float d
float i
float p

Functions

Return Type Function And Description
float GetLastDerivative()
float GetLastError()
float GetLastIntegral()
float Output(const float &in afError, float afTimeStep)
void Reset()
void SetErrorNum(int alErrorNum)

Details

d

float d

GetLastDerivative

float GetLastDerivative()

Returns:

  • float

GetLastError

float GetLastError()

Returns:

  • float

GetLastIntegral

float GetLastIntegral()

Returns:

  • float

i

float i

Output

float Output(const float &in afError,
             float afTimeStep)


Parameters

  • afError (float) —
  • afTimeStep (float) —

Returns:

  • float

p

float p

Reset

void Reset()

Returns:

  • void

SetErrorNum

void SetErrorNum(int alErrorNum)


Parameters

  • alErrorNum (int) —

Returns:

  • void

References


See all references...