PicoLowLevel
Loading...
Searching...
No Matches
AbsoluteEncoder Class Reference

Class used as a wrapper for the ams_as5048b library to read data from the absolute encoder. More...

#include <AbsoluteEncoder.h>

Inheritance diagram for AbsoluteEncoder:
Collaboration diagram for AbsoluteEncoder:

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.
 

Detailed Description

Class used as a wrapper for the ams_as5048b library to read data from the absolute encoder.

Constructor & Destructor Documentation

◆ AbsoluteEncoder()

AbsoluteEncoder::AbsoluteEncoder ( byte  addr = 0x44)

Creates object - nothing needed.

Member Function Documentation

◆ begin()

void AbsoluteEncoder::begin ( void  )

Start the encoder at zero with the default direction.

Here is the call graph for this function:

◆ readAngle()

float AbsoluteEncoder::readAngle ( )

Reads the current measured angle.

Returns
Angle in degrees.
Here is the call graph for this function:

◆ setZero()

void AbsoluteEncoder::setZero ( )

Sets the encoder current position to zero.

Here is the call graph for this function:

◆ update()

void AbsoluteEncoder::update ( )

Updates the computations to keep the angle estimation correct.

Here is the call graph for this function:

The documentation for this class was generated from the following files: