[Horus] Encoder speed tweaks
This commit is contained in:
@@ -198,8 +198,8 @@ uint32_t readTrims(void);
|
|||||||
extern int32_t rotencValue;
|
extern int32_t rotencValue;
|
||||||
extern uint32_t rotencSpeed;
|
extern uint32_t rotencSpeed;
|
||||||
#define ROTENC_LOWSPEED 1
|
#define ROTENC_LOWSPEED 1
|
||||||
#define ROTENC_MIDSPEED 10
|
#define ROTENC_MIDSPEED 5
|
||||||
#define ROTENC_HIGHSPEED 100
|
#define ROTENC_HIGHSPEED 50
|
||||||
void checkRotaryEncoder(void);
|
void checkRotaryEncoder(void);
|
||||||
|
|
||||||
// WDT driver
|
// WDT driver
|
||||||
|
|||||||
@@ -93,8 +93,8 @@ int32_t rotencValue;
|
|||||||
uint32_t rotencPosition;
|
uint32_t rotencPosition;
|
||||||
uint32_t rotencSpeed = ROTENC_LOWSPEED;
|
uint32_t rotencSpeed = ROTENC_LOWSPEED;
|
||||||
|
|
||||||
#define ROTENC_DELAY_MIDSPEED 10
|
#define ROTENC_DELAY_MIDSPEED 4
|
||||||
#define ROTENC_DELAY_HIGHSPEED 5
|
#define ROTENC_DELAY_HIGHSPEED 2
|
||||||
|
|
||||||
void checkRotaryEncoder()
|
void checkRotaryEncoder()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user