2 Commits 885bf89457 ... 3ab4849536

Autor SHA1 Mensagem Data
  Krzysztof Skrzynecki 3ab4849536 set movement range 1 mês atrás
  Krzysztof Skrzynecki 885bf89457 set movement range 1 mês atrás

+ 3 - 3
OZE_Main/Core/Inc/node-red-config.h

@@ -17,11 +17,11 @@
 #define DHCP_USER_LOGS FEATURE_ON
 #define UART_TASK_LOGS FEATURE_ON
 // Static IP for cases when DHCP is not used or fails.
-#define STATIC_IP "192.168.0.40"
-#define STATIC_GW "192.168.0.0"
+#define STATIC_IP "192.168.1.10"
+#define STATIC_GW "192.168.1.0"
 #define STATIC_MASK "255.255.255.0"
 
-#define BROKER_IP "192.168.0.30"
+#define BROKER_IP "192.168.3.34"
 #define MQTT_PORT 1883
 
 #define MEASURMENTS_SCHEDULER_INTERVAL_MS 1000

+ 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