node-red-config.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * node-red-config.h
  3. *
  4. * Created on: Jun 14, 2024
  5. * Author: jakubski
  6. */
  7. #ifndef INC_NODE_RED_CONFIG_H_
  8. #define INC_NODE_RED_CONFIG_H_
  9. #define PV_BOARD
  10. #define FEATURE_ON 1
  11. #define FEATURE_OFF 0
  12. #define UART_TASK_LOGS FEATURE_ON
  13. #define ENCODER_X_IMP_PER_TURN (4 * 200) // (4 interrupts) * (Encoder positions count for 360 deggres)
  14. #define ENCODER_Y_IMP_PER_TURN (4 * 200) // (4 interrupts) * (Encoder positions count for 360 degress)
  15. #define MAX_X_AXE_ANGLE 360 // Max angle value for 100% range
  16. #define MAX_Y_AXE_ANGLE 360 // Max angle value for 100% range
  17. #define MOTOR_START_STOP_PWM_VALUE 60 // PWM duty for slow down/speed up movement phase
  18. #define MOTOR_HIGH_SPEED_PWM_VALUE 100 // PWM duty for normal movement phase
  19. #define ANGLE_RANGE_FOR_MOTOR_SPEED_LIMIT 5 // percentage value for motor slow down/speed up boundary
  20. #define AXE_X_MIDDLE_VALUE 50 // percentage value of position for C limiter
  21. #define AXE_Y_MIDDLE_VALUE 50 // percentage value of position for C limiter
  22. #define TIME_MS_FOR_MOTOR_SPEED_LIMIT 5000
  23. #define NO_MOVE_TIMEOUT_MS 5000 // timeout for no movement detection
  24. #define WATCHDOG_ENABLED
  25. //#define USER_MOCKS
  26. //#define SERIAL_PROTOCOL_DBG
  27. //#define USE_UART8_INSTEAD_UART1
  28. //#define DBG_POSITION
  29. //#define MOCK_VOLTAGES_AND_CURRENS
  30. #endif /* INC_NODE_RED_CONFIG_H_ */