Package lib.custom.sensors
Interface NativeDerivativeSensor
- All Known Subinterfaces:
CustomEncoder
- All Known Implementing Classes:
CANEncoder,CustomDigitalEncoder,EncoderPair
public interface NativeDerivativeSensor
NativeDerivativeSensor represents a sensor which supports native derivative
calculations. This should, but does not have to, be implemented alongside an
actual sensor.
This interface serves only to differentiate between regular sensors and ones
that support native derivative calculations. No extra work must be done to
add this into an existing sensor.
-
Method Summary
-
Method Details
-
getRate
double getRate()Gets ratedoes not indicate sensor errors
-
getRateSafely
Gets rate- Throws:
InvalidSensorException
-