ezeio2:scriptref:pid_new

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
ezeio2:scriptref:pid_new [2020-08-14 23:39] andrehezeio2:scriptref:pid_new [2021-07-23 23:08] andreh
Line 9: Line 9:
 <code>PID_set( pid[], Float:set )</code> <code>PID_set( pid[], Float:set )</code>
 <code>PID_tune( pid[], Float:Kp, Float:Ki, Float:Kd )</code> <code>PID_tune( pid[], Float:Kp, Float:Ki, Float:Kd )</code>
-<code>PID_tune( pid[], Float:min, Float:max )</code>+<code>PID_limits( pid[], Float:min, Float:max )</code>
 <code>PID_update( pid[], Float:in )</code> <code>PID_update( pid[], Float:in )</code>
  
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)/16000);+      psi = 100.0 * ((GetInputValue(1, INVAL_RAW)-4000)/16000);
              
       // Update the PID with the feedback value       // Update the PID with the feedback value
  • ezeio2/scriptref/pid_new.txt
  • Last modified: 2022-03-30 23:44
  • by andreh