|
@@ -37,7 +37,7 @@ class OnRatioController:
|
|
def select_speed(self, delta_all: float) -> str:
|
|
def select_speed(self, delta_all: float) -> str:
|
|
mode = self.select_mode()
|
|
mode = self.select_mode()
|
|
if mode == 'off':
|
|
if mode == 'off':
|
|
- speed = 'off'
|
|
|
|
|
|
+ speed = 'medium'
|
|
elif mode == 'normal':
|
|
elif mode == 'normal':
|
|
if delta_all > 0.00088889:
|
|
if delta_all > 0.00088889:
|
|
speed = 'medium'
|
|
speed = 'medium'
|
|
@@ -66,7 +66,7 @@ class OnRatioController:
|
|
elif last_mode == 'off':
|
|
elif last_mode == 'off':
|
|
ratio = 0.1
|
|
ratio = 0.1
|
|
else:
|
|
else:
|
|
- if self.return_air > self.target - 0.5:
|
|
|
|
|
|
+ if self.return_air > self.target - 0.75:
|
|
ratio = 0.1
|
|
ratio = 0.1
|
|
else:
|
|
else:
|
|
ratio = 0.9
|
|
ratio = 0.9
|
|
@@ -75,7 +75,11 @@ class OnRatioController:
|
|
ratio = 0.9
|
|
ratio = 0.9
|
|
else:
|
|
else:
|
|
try:
|
|
try:
|
|
|
|
+ if delta_off >= 0:
|
|
|
|
+ delta_off = 0.0
|
|
ratio = (0.5 * (self.target - self.return_air) / period_time - delta_off) / (delta_on - delta_off)
|
|
ratio = (0.5 * (self.target - self.return_air) / period_time - delta_off) / (delta_on - delta_off)
|
|
|
|
+ if delta_on <= 0:
|
|
|
|
+ ratio = 0.5
|
|
logger.debug(f'delta target: {0.5 * (self.target - self.return_air)}')
|
|
logger.debug(f'delta target: {0.5 * (self.target - self.return_air)}')
|
|
if ratio > 0.9:
|
|
if ratio > 0.9:
|
|
ratio = 0.9
|
|
ratio = 0.9
|