Notaði fyrrum p_controller og bætti við virtual pi_controller

This commit is contained in:
2026-09-30 18:59:51 +00:00
parent 48f2d1aa43
commit d9ded44895
7 changed files with 59 additions and 17 deletions
+6 -3
View File
@@ -1,12 +1,15 @@
#ifndef PI_CONTROLLER_H
#define PI_CONTROLLER_H
class PI_controller
#include "controller.h"
class PI_controller : public Controller
{
private:
double Kp;
double Ti;
double T;
double integral;
public:
@@ -16,9 +19,9 @@ public:
double T
);
double update(double ref, double actual);
double update(double ref, double actual) override;
void reset();
void reset() override;
};
#endif