Skip to content
Snippets Groups Projects

start in OFF state

Merged Claudio Scafuri requested to merge development into main
3 files
+ 132
15
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 12
1
@@ -440,6 +440,10 @@ void SimulatedE2PS::reset()
/* clang-format on */
// Add your own code
if(get_state() == Tango::FAULT){
set_state(Tango::OFF);
push_change_event("State");
}
/* clang-format off */
/*----- PROTECTED REGION END -----*/ // SimulatedE2PS::reset
@@ -494,7 +498,14 @@ void SimulatedE2PS::fault()
/* clang-format on */
// Add your own code
_current_read = 0.0;
_current = 0.0;
_voltage = 0.0;
attr_current->set_write_value(_current);
push_change_event("current",&_current_read);
push_change_event("currentSet",&_current);
set_state(Tango::FAULT);
push_change_event("State");
/* clang-format off */
/*----- PROTECTED REGION END -----*/ // SimulatedE2PS::fault
}