adding unit command
This commit is contained in:
1 parent
a9fe68d1b4
commit
38cb996db6
4 files changed
+6
-3
No files matched your search
@@ -97,7 +97,6 @@ set_property(
|
||||
CXX_STANDARD 17
|
||||
)
|
||||
|
||||
|
||||
target_include_directories(
|
||||
power_switch_scfe
|
||||
PUBLIC
|
||||
|
||||
@@ -45,7 +45,9 @@ void powerSwitch::HandlePeriodic() {
|
||||
TMFeResult powerSwitch::HandleInit(const std::vector<std::string> &args) {
|
||||
|
||||
midas::odb o = {
|
||||
{SETTING_DIR.c_str(), {{EDITABLE_VARNAME.c_str(), COMMAND_VARNAME}}},
|
||||
{SETTING_DIR.c_str(),
|
||||
{{EDITABLE_VARNAME.c_str(), COMMAND_VARNAME},
|
||||
{UNIT_VARNAME.c_str(), UNIT_VALUE.c_str()}}},
|
||||
{VARIABLES_DIR.c_str(),
|
||||
{{COMMAND_VARNAME.c_str(), {""}}, {READBACK_VARNAME.c_str(), {""}}}}
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ class powerSwitch : public TMFeEquipment {
|
||||
private:
|
||||
std::vector<Outlet> outlets;
|
||||
mEpicsCa<int> outletNumberRecord;
|
||||
int numberOfOutlet;
|
||||
int numberOfOutlet = 0;
|
||||
std::string equipmentPath;
|
||||
void updateOutletNumber();
|
||||
int gracePeriod = 10;
|
||||
|
||||
@@ -10,6 +10,8 @@ const std::string VARIABLES_DIR = "Variables";
|
||||
const std::string SETTING_DIR = "Settings";
|
||||
const std::string COMMAND_VARNAME = "Command";
|
||||
const std::string READBACK_VARNAME = "Readback";
|
||||
const std::string UNIT_VARNAME = "Unit Command";
|
||||
const std::string UNIT_VALUE = "0=OFF, 1=ON, 2=RESTART";
|
||||
|
||||
const std::string SLASH = "/";
|
||||
|
||||
|
||||
Reference in new issue
Block a user