Exemplo n.º 1
0
@author: Zxh
'''
from autorun import auto_run_main
from currenttime import get_time
from indoor import Indoor
from outdoor import Outdoor
from parameter import Parameter

from arm_project.control import Control

node0 = Indoor('node0')
o = Outdoor()
c = Control()
p = Parameter()

p.set_expect_humidity("80")
p.set_humidity_influence_range_of_air_temperature("5")
p.set_high_humidity_influence_on_air_temperature("3")
p.set_low_humidity_influence_on_air_temperature("4")
p.set_light_influence_on_air_temperature_slope("0.7")

p.set_roof_vent_open_time("10")
p.set_shade_screen_in_time("5")
p.set_shade_screen_out_time("7")
p.set_side_vent_time("9")

start_time = get_time()
auto_run_main(node0, o, c, p)

Exemplo n.º 2
0
def auto_running():
    """ 温室自控算法 """
    global node0, c, outdoor, p
    auto_run_main(node0, outdoor, c, p)
Exemplo n.º 3
0
def auto_running():
    global node0, c, outdoor, p
    auto_run_main(node0, outdoor, c, p)