Explorar el Código

set movement range

Krzysztof Skrzynecki hace 1 mes
padre
commit
3ab4849536
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      OZE_Sensor/Core/Inc/node-red-config.h

+ 2 - 2
OZE_Sensor/Core/Inc/node-red-config.h

@@ -15,8 +15,8 @@
 
 #define UART_TASK_LOGS FEATURE_ON
 
-#define ENCODER_X_IMP_PER_TURN (4 * 200) // (4 interrupts) * (Encoder positions count for 360 deggres)
-#define ENCODER_Y_IMP_PER_TURN (4 * 200) // (4 interrupts) * (Encoder positions count for 360 degress)
+#define ENCODER_X_IMP_PER_TURN (1994) // (Encoder positions count for 100 units of movement)
+#define ENCODER_Y_IMP_PER_TURN (3670) // (Encoder positions count for 100 units of movement)
 
 #define MAX_X_AXE_ANGLE 360	// Max angle value for 100% range
 #define MAX_Y_AXE_ANGLE 360 // Max angle value for 100% range