HPL3/Amnesia: Rebirth/Scripting/cPidControllerf

From Frictional Wiki
< HPL3‎ | Amnesia: Rebirth‎ | Scripting
Revision as of 23:45, 15 November 2020 by Abion47 (talk | contribs) (Created page with "{{ScriptingStub}} Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki! ==Fields== {{CodeDocSummaryTop|Field Type|Field Name...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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...