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
+4 -2
View File
@@ -1,7 +1,9 @@
#ifndef P_CONTROLLER_H
#define P_CONTROLLER_H
class P_controller
#include "controller.h"
class P_controller : public Controller
{
private:
double Kp;
@@ -9,7 +11,7 @@ private:
public:
P_controller(double Kp);
double update(double ref, double actual);
double update(double ref, double actual) override;