From 35522ada8221764256da3c16dec594771a87150e Mon Sep 17 00:00:00 2001 From: Michael Ferguson Date: Fri, 10 Jan 2025 16:20:09 -0500 Subject: [PATCH] dyno now has a belt reduction to move encoder off-axis --- projects/dyno/main.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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