• Skip to main content
  • Skip to header right navigation
  • Skip to site footer
CDP Studio logo

CDP Studio

The no-code and full-code software development tool for distributed control systems and HMI

  • Doc
  • Why CDP
    • Software developers
    • Automation engineers
    • Managers
  • Products
    • Automation Designer
    • HMI Designer
    • Maritime HMIs
  • Services
  • Use cases
  • Pricing
  • Try CDP

CDP Studio Documentation

  • Framework - Automation
  • PIDCalculator
  • 5.0.2

PIDCalculator Class

(Automation::PIDCalculator)

This module is a PID (Proportional–Integral–Derivative) control value calculation engine, that can be used in other C++ modules to add PID regulator capability. More...

Header: #include <PIDCalculator>
  • List of all members, including inherited members

Public Functions

T CalculateControlValue(T setPoint, T currentState, bool isRadDegrees, double ts)
double GetIntD() const
double GetIntI() const
double GetIntP() const
void Reset()
void SetIntI(double i)
void SetKD(double kD)
void SetKF(double kF)
void SetKI(double kI)
void SetKP(double kP)
void SetKR(double kR)
void SetMaxI(double maxI)
void SetMinI(double minI)
void SetSat(double sat)
void SetTDecay(double tDecay)

Detailed Description

This module is a PID (Proportional–Integral–Derivative) control value calculation engine, that can be used in other C++ modules to add PID regulator capability.

See also PIDRegulator.

Member Function Documentation

T PIDCalculator::CalculateControlValue(T setPoint, T currentState, bool isRadDegrees, double ts)

double PIDCalculator::GetIntD() const

double PIDCalculator::GetIntI() const

double PIDCalculator::GetIntP() const

void PIDCalculator::Reset()

void PIDCalculator::SetIntI(double i)

void PIDCalculator::SetKD(double kD)

void PIDCalculator::SetKF(double kF)

void PIDCalculator::SetKI(double kI)

void PIDCalculator::SetKP(double kP)

void PIDCalculator::SetKR(double kR)

void PIDCalculator::SetMaxI(double maxI)

void PIDCalculator::SetMinI(double minI)

void PIDCalculator::SetSat(double sat)

void PIDCalculator::SetTDecay(double tDecay)

The content of this document is confidential information not to be published without the consent of CDP Technologies AS.

CDP Technologies AS, www.cdpstudio.com

Get started with CDP Studio today

Let us help you take your great ideas and turn them into the products your customer will love.

Try CDP Studio for free
Why CDP Studio?

CDP Technologies AS
Hundsværgata 8,
P.O. Box 144
6001 Ålesund, Norway

Tel: +47 990 80 900
E-mail: info@cdptech.com

Company

About CDP

Contact us

Services

Partners

Blog

Developers

Get started

User manuals

Support

Document download

Release notes

My account

Follow CDP

  • LinkedIn
  • YouTube
  • GitHub

© Copyright 2025 CDP Technologies. Privacy and cookie policy.

Return to top