- refactored
- created TempSensorFactory
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
from components.pid import pid
|
||||
from components.pid import kalman
|
||||
from components.plant.pot import Pot
|
||||
from matplotlib.pyplot import plot, figure, subplot, title, xlabel, ylabel, grid, show, legend
|
||||
from components.pid import Pid, Kalman
|
||||
import numpy as np
|
||||
from utils.value import AttributeChange
|
||||
from enum import Enum
|
||||
@@ -17,8 +16,8 @@ class TempController(AttributeChange):
|
||||
def __init__(self, params_pid, params_kalman):
|
||||
AttributeChange.__init__(self)
|
||||
|
||||
self.pid_hold = pid.Pid(params_pid['Hold'])
|
||||
self.pid_rate = pid.Pid(params_pid['Heat'])
|
||||
self.pid_hold = Pid(params_pid['Hold'])
|
||||
self.pid_rate = Pid(params_pid['Heat'])
|
||||
self.theta_ist_set = 20
|
||||
self.theta_soll_set = 0
|
||||
self.heatrate_ist_set = 0
|
||||
@@ -27,7 +26,7 @@ class TempController(AttributeChange):
|
||||
self.theta_ist = 0
|
||||
self.heatrate_ist = 0
|
||||
self.params = params_pid
|
||||
self.kalman = kalman.Kalman(params_kalman)
|
||||
self.kalman = Kalman(params_kalman)
|
||||
self.y = -1
|
||||
self.state = States.IDLE
|
||||
self.use_kalman = True
|
||||
|
||||
Reference in New Issue
Block a user