Go to the documentation of this file.
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 );
88 float getAngle(
void );
101 uint16_t getAngleRaw(
void );
121 float getAngleMoved(
bool filtered =
true);
141 int32_t getAngleMovedRaw(
bool filtered =
true );
153 float getSpeed(
void);
175 uint16_t captureAngle(
void );
184 uint8_t getStatus(
void );
196 bool detectMagnet(
void);
230 volatile uint8_t Beta = 5;
246 int32_t userAngleOffset = 0;
248 volatile int32_t angleMovedRaw = 0;
Prototype of class for accessing all features of the uStepper S in a single object.
void chipSelect(uint8_t pin, bool state)
volatile int32_t angleMoved
volatile uint16_t oldAngle
friend class uStepperEncoder
volatile posFilter_t encoderFilter
volatile int32_t smoothValue
volatile float speedSmoothValue
void init(void)
Internal function to prepare the uStepperS in the constructor.
volatile uint16_t encoderOffset
Struct for encoder velocity estimator.