Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revisionBoth sides next revision | ||
ezeio2:scriptref:pid_new [2020-08-14 23:39] – andreh | ezeio2:scriptref:pid_new [2020-08-14 23:43] – andreh | ||
---|---|---|---|
Line 55: | Line 55: | ||
| | ||
// Read and scale a sensor input (0-100psi from 4-20mA sensor) | // Read and scale a sensor input (0-100psi from 4-20mA sensor) | ||
- | psi = 100.0 * ((GetInputValue(1)-4000)/ | + | psi = 100.0 * ((GetInputValue(1, INVAL_RAW)-4000)/ |
| | ||
// Update the PID with the feedback value | // Update the PID with the feedback value |