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
38 lines
2.0 KiB
|
|
#pragma once
|
|
#include <exception>
|
|
#include <fstream>
|
|
#include <iostream>
|
|
#include <list>
|
|
#include <map>
|
|
#include <memory>
|
|
#include <mutex>
|
|
#include <set>
|
|
#include <sstream>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "iflytop/core/components/config_template/config_template.hpp"
|
|
|
|
|
|
#define PROJECT_LARGE_SPACE_DM "LargeSpaceDM"
|
|
#define PROJECT_SMALL_SPACE_DM "SmallSpaceDM"
|
|
#define PROJECT_PIPE_DM "PipeDM"
|
|
#define PROJECT_DRAW_BAR_DM "DrawBarDM"
|
|
|
|
#define ConfigELEMENT_LIST(marco) \
|
|
marco(string /* */, deviceId, "") /*设备ID*/ \
|
|
marco(string /* */, iflytopSubDeviceCanIFName, "can0") /*子设备Can设备名称*/ \
|
|
marco(int32_t /* */, iflytopSubDeviceCanBitrate, 500000) /*子设备Can设备波特率*/ \
|
|
marco(string /* */, pipettingRobotCanIFName, "can1") /*移液臂Can设备名称*/ \
|
|
marco(int32_t /* */, pipettingRobotCanBitrate, 500000) /*移液臂Can设备波特率*/ \
|
|
marco(float /* */, dvalueCoefficient, 2) /*数值越小,相对消毒时间越长*/ \
|
|
marco(float /* */, disinfectantWeightCorrectionFactor, 0.8500000238418579) /**/ \
|
|
marco(string /* */, printerUart, "/dev/ttyS5") /**/ \
|
|
marco(string /* */, projectType, PROJECT_LARGE_SPACE_DM) /**/ \
|
|
marco(bool /* */, testMode, false) /**/
|
|
|
|
configTemplateDEFILE_CONFIG_SERVICE2( //
|
|
GConfig, //
|
|
ConfigELEMENT_LIST, //
|
|
"./configs/config.json", {});
|