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:43] andrehezeio2:scriptref:pid_new [2022-03-30 23:25] 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 44: Line 44:
       // Set the tuning parameters        // Set the tuning parameters 
       PID_tune(p, 0.2, 0.04, 0.01);       PID_tune(p, 0.2, 0.04, 0.01);
 +      
 +      // Set setpoint (target pressure)
 +      PID_set(p, 40.0);
              
       // Set update speed to 100ms       // Set update speed to 100ms
  • ezeio2/scriptref/pid_new.txt
  • Last modified: 2022-03-30 23:44
  • by andreh