47 #define ENCODERDATATOSTEP 51200.0/65536.0 50 #define ENCODERDATATOREVOLUTIONS 60.0/65536.0 uStepperEncoder(void)
Constructor of uStepperEncoder class.
volatile posFilter_t encoderFilter
float getSpeed(void)
Measure the current speed of the motor.
int32_t getAngleMovedRaw(void)
Returns the angle moved from reference position in raw encoder readings.
Prototype of class for accessing all features of the uStepper S in a single object.
float getAngleMoved(void)
Returns the angle moved from reference position in degrees.
Struct for encoder velocity estimator.
volatile int32_t angleMoved
uint16_t captureAngle(void)
Capture the current shaft angle.
volatile uint16_t oldAngle
uint16_t getAngleRaw(void)
Return the current shaft angle in raw encoder readings.
Prototype of class for the AEAT8800-Q24 encoder.
void setHome(void)
Define new reference(home) position.
volatile int16_t revolutions
float getAngle(void)
Return the current shaft angle in degrees.
void init(uStepperS *_pointer)
Initiation of the encoder.
void chipSelect(bool state)
Set the output level of the chip select pin.
float getRPM(void)
Measure the current speed of the motor.
bool detectMagnet(void)
detect magnet
uint8_t getStatus(void)
Get encoder status.