PicoLowLevel
Loading...
Searching...
No Matches
AbsoluteEncoder.h
Go to the documentation of this file.
1#ifndef ABSOLUTE_ENCODER_H
2#define ABSOLUTE_ENCODER_H
3
4#include <Arduino.h>
5#include "Debug.h"
6#include "definitions.h"
7#include "mod_config.h"
8#include "ams_as5048b.h"
9
14 public:
15 AbsoluteEncoder(byte addr = 0x44);
16 void begin();
17 void setZero();
18 float readAngle();
19 void update();
20
21 private:
22};
23
24#endif
Definition ams_as5048b.h:106
Class used as a wrapper for the ams_as5048b library to read data from the absolute encoder.
Definition AbsoluteEncoder.h:13
void setZero()
Sets the encoder current position to zero.
Definition AbsoluteEncoder.cpp:24
float readAngle()
Reads the current measured angle.
Definition AbsoluteEncoder.cpp:34
void begin()
Start the encoder at zero with the default direction.
Definition AbsoluteEncoder.cpp:13
void update()
Updates the computations to keep the angle estimation correct.
Definition AbsoluteEncoder.cpp:45