Skip to content
Snippets Groups Projects
Commit ec940065 authored by Claudio Scafuri's avatar Claudio Scafuri :speech_balloon:
Browse files

start in OFF state

handle status string
parent e8302e89
No related branches found
No related tags found
1 merge request!1start in OFF state
......@@ -171,7 +171,8 @@ void SimulatedE2PS::init_device()
attr_current->set_write_value(_current);
}
catch(...){} // ignore error!
set_state(Tango::ON);
set_state(Tango::OFF);
set_status("Off");
INFO_STREAM << "SimulatedE2PS::init_device() create device end " << device_name << endl;
/* clang-format off */
/*----- PROTECTED REGION END -----*/ // SimulatedE2PS::init_device
......@@ -395,6 +396,7 @@ void SimulatedE2PS::on()
// Add your own code
set_state(Tango::ON);
set_status("On");
push_change_event("State");
/* clang-format off */
......@@ -419,6 +421,7 @@ void SimulatedE2PS::off()
push_change_event("current",&_current_read);
push_change_event("currentSet",&_current);
set_state(Tango::OFF);
set_status("Off");
push_change_event("State");
;
// Add your own code
......@@ -442,6 +445,7 @@ void SimulatedE2PS::reset()
// Add your own code
if(get_state() == Tango::FAULT){
set_state(Tango::OFF);
set_status("Off");
push_change_event("State");
}
......@@ -506,6 +510,7 @@ void SimulatedE2PS::fault()
push_change_event("current", &_current_read);
push_change_event("currentSet", &_current);
set_state(Tango::FAULT);
set_status("Fault");
push_change_event("State");
/* clang-format off */
/*----- PROTECTED REGION END -----*/ // SimulatedE2PS::fault
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment