node-red-config.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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 (1994) // (Encoder positions count for 100 units of movement)
  14. #define ENCODER_Y_IMP_PER_TURN (3670) // (Encoder positions count for 100 units of movement)
  15. #define MOTOR_START_STOP_PWM_VALUE 60 // PWM duty for slow down/speed up movement phase
  16. #define MOTOR_HIGH_SPEED_PWM_VALUE 100 // PWM duty for normal movement phase
  17. #define ANGLE_RANGE_FOR_MOTOR_SPEED_LIMIT 5 // percentage value for motor slow down/speed up boundary
  18. #define AXE_X_MIDDLE_VALUE 50 // percentage value of position for C limiter
  19. #define AXE_Y_MIDDLE_VALUE 50 // percentage value of position for C limiter
  20. #define TIME_MS_FOR_MOTOR_SPEED_LIMIT 50000
  21. #define NO_MOVE_TIMEOUT_MS 50000 // timeout for no movement detection
  22. #define WATCHDOG_ENABLED
  23. //#define USER_MOCKS
  24. //#define SERIAL_PROTOCOL_DBG
  25. //#define USE_UART8_INSTEAD_UART1
  26. #define DBG_POSITION
  27. //#define MOCK_VOLTAGES_AND_CURRENS
  28. #endif /* INC_NODE_RED_CONFIG_H_ */