diff --git a/projects/dyno/main.cpp b/projects/dyno/main.cpp index ecb607b..122b5fe 100644 --- a/projects/dyno/main.cpp +++ b/projects/dyno/main.cpp @@ -57,9 +57,10 @@ ADS8684 adc; DAC121 dac; // Encoder is AMT102-V, set to 2048PPR = 8192CPR +// Belt reduction is 74:21 #include "encoder.hpp" Encoder absorber_enc; -#define ABSORBER_CPR 8192.0f +#define ABSORBER_CPR 8192.0f * 21.0f / 71.0f #define TO_RADIANS (2.0f * 3.141592653589793f) #define VELOCITY_FILTER_COEFF 0.3f