thermferm/server.c

changeset 703
344470c6bb1c
parent 702
d77891f8915d
child 706
50d9a25aba86
equal deleted inserted replaced
702:d77891f8915d 703:344470c6bb1c
1548 unit->prof_percent = 0; 1548 unit->prof_percent = 0;
1549 unit->PID_cool = (pid_var *)malloc(sizeof(pid_var)); 1549 unit->PID_cool = (pid_var *)malloc(sizeof(pid_var));
1550 unit->PID_heat = (pid_var *)malloc(sizeof(pid_var)); 1550 unit->PID_heat = (pid_var *)malloc(sizeof(pid_var));
1551 InitPID(unit->PID_cool, PID_TYPE_COOL); 1551 InitPID(unit->PID_cool, PID_TYPE_COOL);
1552 InitPID(unit->PID_heat, PID_TYPE_HEAT); 1552 InitPID(unit->PID_heat, PID_TYPE_HEAT);
1553 unit->PID_heat->pGain = unit->PID_cool->pGain = 5000.0;
1554 unit->PID_heat->iGain = unit->PID_cool->iGain = 25.0;
1555 unit->PID_heat->dGain = unit->PID_cool->dGain = 5.0;
1553 1556
1554 /* 1557 /*
1555 * Block main process 1558 * Block main process
1556 */ 1559 */
1557 run_pause = TRUE; 1560 run_pause = TRUE;

mercurial