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; |