Speeduino
Loading...
Searching...
No Matches
Public Member Functions | List of all members
PID Class Reference

#include <PID.h>

Public Member Functions

 PID (void)
 Default construction.
 
void resetIntegral (int32_t input)
 Initialize/reset the controller.
 
int32_t compute (int32_t input)
 Compute the next correction.
 
Configuration methods
void setOutputLimits (int32_t min, int32_t max)
 Set the output limits.
 
void setTunings (PidTuningParameters params)
 Set the PID parameters.
 
void setSetPoint (uint16_t setpoint)
 Set the controller set point.
 

Constructor & Destructor Documentation

◆ PID()

PID::PID ( void  )

Default construction.

Here is the call graph for this function:

Member Function Documentation

◆ compute()

int32_t PID::compute ( int32_t  input)

Compute the next correction.

Parameters
inputThe input value
Returns
A correction to be applied to the input.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ resetIntegral()

void PID::resetIntegral ( int32_t  input)

Initialize/reset the controller.

Parameters
inputCurrent input value (same value as passed into compute())
Here is the call graph for this function:
Here is the caller graph for this function:

◆ setOutputLimits()

void PID::setOutputLimits ( int32_t  min,
int32_t  max 
)

Set the output limits.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setSetPoint()

void PID::setSetPoint ( uint16_t  setpoint)
inline

Set the controller set point.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setTunings()

void PID::setTunings ( PidTuningParameters  params)

Set the PID parameters.

Here is the call graph for this function:
Here is the caller graph for this function:

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