User Tools

Site Tools


eeros_architecture:safety_system:usage

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
eeros_architecture:safety_system:usage [2016/11/04 09:54] – [Setup a Safety System] grafeeros_architecture:safety_system:usage [2017/01/28 17:33] (current) – external edit 127.0.0.1
Line 10: Line 10:
 <code cpp> <code cpp>
 // Create and run executor // Create and run executor
-auto executor = eeros::Executor::instance(); +autoexecutor = eeros::Executor::instance();
-executor.setPeriod(period);+
 executor.setMainTask(safetySys); executor.setMainTask(safetySys);
 </code> </code>
Line 24: Line 23:
   * the sequencer    * the sequencer 
  
-Sometimes you need to fire an event e.g. swInitDone:+An event can be triggered by the control system or the sequencer by calling:
 <code cpp> <code cpp>
-safetySys.triggerEvent(swInitDone, privateContext); +safetySys.triggerEvent(safetyProperties.seStartRunning);
-</code> +
- +
-The C-style definition in class //SafetySystem//: +
-<code c> +
-void triggerEvent(uint32_t event);+
 </code> </code>
 +Please make sure to declare a safety event public if triggered by the control system or the sequencer. Private event can be triggered solely by the safety system itself. 
  
  
eeros_architecture/safety_system/usage.1478249680.txt.gz · Last modified: 2016/11/04 09:54 by graf