|
PicoLowLevel
|
Class used as a wrapper for the ams_as5048b library to read data from the absolute encoder. More...
#include <AbsoluteEncoder.h>


Public Member Functions | |
| AbsoluteEncoder (byte addr=0x44) | |
| Creates object - nothing needed. | |
| void | begin () |
| Start the encoder at zero with the default direction. | |
| void | setZero () |
| Sets the encoder current position to zero. | |
| float | readAngle () |
| Reads the current measured angle. | |
| void | update () |
| Updates the computations to keep the angle estimation correct. | |
Class used as a wrapper for the ams_as5048b library to read data from the absolute encoder.
| AbsoluteEncoder::AbsoluteEncoder | ( | byte | addr = 0x44 | ) |
Creates object - nothing needed.
| void AbsoluteEncoder::begin | ( | void | ) |
Start the encoder at zero with the default direction.

| float AbsoluteEncoder::readAngle | ( | ) |
Reads the current measured angle.

| void AbsoluteEncoder::setZero | ( | ) |
Sets the encoder current position to zero.

| void AbsoluteEncoder::update | ( | ) |
Updates the computations to keep the angle estimation correct.
