Beispiel #1
0
 /// <summary>
 /// Returns the current difference of the input from the setpoint.
 /// </summary>
 /// <returns>The current error.</returns>
 public double GetError()
 {
     lock (m_lockObject)
     {
         return(Setpoint - PIDInput.PidGet());
     }
 }
Beispiel #2
0
 /// <summary>
 /// Calls PidGet of source.
 /// </summary>
 /// <returns>Current value of the source</returns>
 protected double PidGetSource()
 {
     return(m_source.PidGet());
 }