main/task_driver.c

changeset 86
8d0287a1a9e1
parent 82
7d17e2cb31a8
child 87
47253f294a9f
equal deleted inserted replaced
85:1e75ca367461 86:8d0287a1a9e1
148 driver_state->hlt_power = 0; 148 driver_state->hlt_power = 0;
149 driver_state->hlt_and_mlt = false; 149 driver_state->hlt_and_mlt = false;
150 driver_state->pump_gpio = SSR_PUMP; 150 driver_state->pump_gpio = SSR_PUMP;
151 driver_state->pump_run = 0; 151 driver_state->pump_run = 0;
152 152
153 PID(&Input, &Output, &Setpoint, 150, 1.5, 15000, PID_DIRECT); 153 PID(&Input, &Output, &Setpoint, 200, 2.0, 1.5, PID_DIRECT);
154 154
155 /* 155 /*
156 * One loop must complete in 20 mSecs, that is one mains 156 * One loop must complete in 20 mSecs, that is one mains
157 * frequency period cycle in 50 Hz countries. 157 * frequency period cycle in 50 Hz countries.
158 */ 158 */

mercurial