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.

43 lines
2.3 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. // klarge_space_disinfection_machine = 1, // 大空间消毒机
  15. // ksmall_space_disinfection_machine = 2, // 小空间消毒机
  16. // kpipe_disinfection_machine = 3, // 管道式消毒机
  17. // kdraw_bar_disinfection_box = 4, // 手持拉杆箱消毒机
  18. // kh2o2_ext_sensor = 5, // 外部H2O2传感器
  19. #define PROJECT_LARGE_SPACE_DM "LargeSpaceDM"
  20. #define PROJECT_SMALL_SPACE_DM "SmallSpaceDM"
  21. #define PROJECT_PIPE_DM "PipeDM"
  22. #define PROJECT_DRAW_BAR_DM "DrawBarDM"
  23. #define ConfigELEMENT_LIST(marco) \
  24. marco(string /* */, deviceId, "") /*设备ID*/ \
  25. marco(string /* */, iflytopSubDeviceCanIFName, "can0") /*子设备Can设备名称*/ \
  26. marco(int32_t /* */, iflytopSubDeviceCanBitrate, 500000) /*子设备Can设备波特率*/ \
  27. marco(string /* */, pipettingRobotCanIFName, "can1") /*移液臂Can设备名称*/ \
  28. marco(int32_t /* */, pipettingRobotCanBitrate, 500000) /*移液臂Can设备波特率*/ \
  29. marco(float /* */, dvalueCoefficient, 2) /*数值越小,相对消毒时间越长*/ \
  30. marco(float /* */, disinfectantWeightCorrectionFactor, 0.8500000238418579) /**/ \
  31. marco(string /* */, printerUart, "/dev/ttyS5") /**/ \
  32. marco(string /* */, projectType, PROJECT_LARGE_SPACE_DM) /**/ \
  33. marco(bool /* */, testMode, false) /**/
  34. configTemplateDEFILE_CONFIG_SERVICE2( //
  35. GConfig, //
  36. ConfigELEMENT_LIST, //
  37. "./configs/config.json", {});