Esempio n. 1
0
    def __init__(self):
        logger.log_msg('Conectando')
        self.interface = Interface(REQ_ADDR, PUSH_ADDR)
        logger.log_msg('Conectado')
        threading.Thread.__init__(self)
        self.setpoint = 0.0

        self.LRC = PIController(60, 1.2, 0, -1300, 1300, CONTROLLER_STEP)
        self.out = 0
Esempio n. 2
0
    def __init__(self):
        threading.Thread.__init__(self)
        logger.log_msg('Conectando')
        self.interface = Interface(REQ_ADDR, PUSH_ADDR)
        logger.log_msg('Conectado')

        # configura controlador
        self.controller = PIController(6e7, 3e6, 8.5, -1e12, 1e12,
                                       PRESSURE_STEP)

        # Offset usado
        self.Q0 = float(self.interface.request('Q'))