Table of Contents

Class StatusSignalExt

Namespace
CTRE.Phoenix6
Assembly
Phoenix6.Hardware.dll

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

signal StatusSignal<double>

The signal to check

target double

The target value of the signal

tolerance double

The error tolerance between the target and measured values

Returns

bool

Whether the signal is near the target value