This class measures the speed of a generator using a tachometer.
More...
#include <TachometerJEncoder.h>
|
| | TachometerJEncoder (JEncoder &_encoder, uint16_t numSavedForSmoothing=0) |
| | This class measures the speed of a generator using any JEncoder from the JMotor library. More...
|
| |
| float | getMeasurement () |
| | Use this method to get the most recent measurement on the speed of the generator. More...
|
| |
| void | run () |
| | call this in loop() since some forms of measurement may need to be constantly polled More...
|
| |
| virtual float | getMeasurement ()=0 |
| | Use this method to get the most recent measurement on the speed of the generator. More...
|
| |
| virtual void | run ()=0 |
| | call this in loop() since some forms of measurement may need to be constantly polled More...
|
| |
This class measures the speed of a generator using a tachometer.
- Note
- you may use any of these encoders.
◆ TachometerJEncoder()
| TachometerJEncoder::TachometerJEncoder |
( |
JEncoder & |
_encoder, |
|
|
uint16_t |
numSavedForSmoothing = 0 |
|
) |
| |
|
inline |
This class measures the speed of a generator using any JEncoder from the JMotor library.
- Parameters
-
| _encoder | reference to JEncoder object |
| numSavedForSmoothing | default (0) average this many readings |
◆ getMeasurement()
| float TachometerJEncoder::getMeasurement |
( |
| ) |
|
|
inlinevirtual |
Use this method to get the most recent measurement on the speed of the generator.
- Return values
-
Implements Measurement.
◆ run()
| void TachometerJEncoder::run |
( |
| ) |
|
|
inlinevirtual |
call this in loop() since some forms of measurement may need to be constantly polled
Implements Measurement.
◆ encoder
| JEncoder& TachometerJEncoder::encoder |
The documentation for this class was generated from the following file: