- added abstarct PID APid
- added PidFactory - use variable args for factory
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
from components.plant.pot import Pot
|
||||
from matplotlib.pyplot import plot, figure, subplot, grid, show, legend
|
||||
from components.pid import Pid, Kalman
|
||||
from components import APid
|
||||
import numpy as np
|
||||
from utils.value import AttributeChange
|
||||
from enum import Enum
|
||||
|
||||
|
||||
@@ -12,9 +12,9 @@ class States(Enum):
|
||||
HOLD = 2
|
||||
|
||||
|
||||
class TempController(AttributeChange):
|
||||
class TempController(APid):
|
||||
def __init__(self, dt, params):
|
||||
AttributeChange.__init__(self)
|
||||
APid.__init__(self)
|
||||
self.pid_hold = Pid(dt)
|
||||
self.pid_rate = Pid(dt)
|
||||
self.theta_ist_set = 20
|
||||
|
||||
Reference in New Issue
Block a user