/// <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()); } }
/// <summary> /// Calls PidGet of source. /// </summary> /// <returns>Current value of the source</returns> protected double PidGetSource() { return(m_source.PidGet()); }