eeros_architecture:safety_system:usage
                Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| eeros_architecture:safety_system:usage [2016/11/04 09:54] – [Setup a Safety System] graf | eeros_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:: | + | auto& executor = eeros:: | 
| - | executor.setPeriod(period); | + | |
| executor.setMainTask(safetySys); | executor.setMainTask(safetySys); | ||
| </ | </ | ||
| 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); | 
| - | </ | + | |
| - | + | ||
| - | The C-style definition in class // | + | |
| - | <code c> | + | |
| - | void triggerEvent(uint32_t event); | + | |
| </ | </ | ||
| + | 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
                
                