Class StatusSignalExt
Extension methods for a StatusSignal<T>.
public static class StatusSignalExt
- Inheritance
-
StatusSignalExt
- Inherited Members
Methods
IsNear(StatusSignal<double>, double, double)
Checks whether the signal is near a target value within the given tolerance.This signal must be a numeric or unit type.
public static bool IsNear(this StatusSignal<double> signal, double target, double tolerance)
Parameters
signalStatusSignal<double>The signal to check
targetdoubleThe target value of the signal
tolerancedoubleThe error tolerance between the target and measured values
Returns
- bool
Whether the signal is near the target value