diff --git a/encoder/enc_sincos.c b/encoder/enc_sincos.c index e7ace2c5..6f3e7d8b 100644 --- a/encoder/enc_sincos.c +++ b/encoder/enc_sincos.c @@ -32,8 +32,8 @@ #include #include -#define SINCOS_MIN_AMPLITUDE 1.0 // sqrt(sin^2 + cos^2) has to be larger than this -#define SINCOS_MAX_AMPLITUDE 1.65 // sqrt(sin^2 + cos^2) has to be smaller than this +#define SINCOS_MIN_AMPLITUDE 0.7 // sqrt(sin^2 + cos^2) has to be larger than this +#define SINCOS_MAX_AMPLITUDE 1.3 // sqrt(sin^2 + cos^2) has to be smaller than this bool enc_sincos_init(ENCSINCOS_config_t *cfg) { memset(&cfg->state, 0, sizeof(ENCSINCOS_state));