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