You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
2.0 KiB

12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
  1. #pragma once
  2. #include <exception>
  3. #include <fstream>
  4. #include <iostream>
  5. #include <list>
  6. #include <map>
  7. #include <memory>
  8. #include <mutex>
  9. #include <set>
  10. #include <sstream>
  11. #include <string>
  12. #include <vector>
  13. #include "iflytop/core/components/config_template/config_template.hpp"
  14. #define PROJECT_LARGE_SPACE_DM "LargeSpaceDM"
  15. #define PROJECT_SMALL_SPACE_DM "SmallSpaceDM"
  16. #define PROJECT_PIPE_DM "PipeDM"
  17. #define PROJECT_DRAW_BAR_DM "DrawBarDM"
  18. #define ConfigELEMENT_LIST(marco) \
  19. marco(string /* */, deviceId, "") /*设备ID*/ \
  20. marco(string /* */, iflytopSubDeviceCanIFName, "can0") /*子设备Can设备名称*/ \
  21. marco(int32_t /* */, iflytopSubDeviceCanBitrate, 500000) /*子设备Can设备波特率*/ \
  22. marco(string /* */, pipettingRobotCanIFName, "can1") /*移液臂Can设备名称*/ \
  23. marco(int32_t /* */, pipettingRobotCanBitrate, 500000) /*移液臂Can设备波特率*/ \
  24. marco(float /* */, dvalueCoefficient, 2) /*数值越小,相对消毒时间越长*/ \
  25. marco(float /* */, disinfectantWeightCorrectionFactor, 0.8500000238418579) /**/ \
  26. marco(string /* */, printerUart, "/dev/ttyS5") /**/ \
  27. marco(string /* */, projectType, PROJECT_LARGE_SPACE_DM) /**/ \
  28. marco(bool /* */, testMode, false) /**/
  29. configTemplateDEFILE_CONFIG_SERVICE2( //
  30. GConfig, //
  31. ConfigELEMENT_LIST, //
  32. "./configs/config.json", {});