nýtt branch fyrir part3 og kóðar

This commit is contained in:
2026-09-30 14:22:20 +00:00
parent 3c5cedc413
commit 48f2d1aa43
7 changed files with 99 additions and 6 deletions
+24
View File
@@ -0,0 +1,24 @@
#ifndef PI_CONTROLLER_H
#define PI_CONTROLLER_H
class PI_controller
{
private:
double Kp;
double Ti;
double T;
double integral;
public:
PI_controller(
double Kp,
double Ti,
double T
);
double update(double ref, double actual);
void reset();
};
#endif