|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |
See:
Description
Sentilla measurable units libraries for use with sensing and actuation.
These libraries primarily implement Comparable
and Measurable
interfaces. When building a Driver, it is necessary to return a Measurable<Quantity>
. The classes in this package facilitate driver building by providing classes that can contain a specific unit.
For example, a custom temperature driver may sample a sensor, and return the reading. The reading may be returned by creating a new FloatCelsius
class with the reading, such as return new FloatCelsius((double)reading);
. In this case, FloatCelsius
is a helper library that converts the raw reading into a class that implements both the Comparable
and Measurable
interfaces.
|
||||||||||
PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES |