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:53] – [Safety System Usage] graf | eeros_architecture:safety_system:usage [2017/01/28 17:33] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Every EEROS system can have exactly one safety system. As a first step you have to define your safety properties as described in [[eeros_architecture: | Every EEROS system can have exactly one safety system. As a first step you have to define your safety properties as described in [[eeros_architecture: | ||
| <code cpp> | <code cpp> | ||
| - |  | + | MySafetyProperties safetyProperties; | 
| - | SafetySystem safetySys(safetyProperties, | + | SafetySystem safetySys(safetyProperties, | 
| </ | </ | ||
| Line 9: | Line 9: | ||
| <code cpp> | <code cpp> | ||
| - |  | + | // Create and run executor | 
| - | auto executor = eeros:: | + | auto& executor = eeros:: | 
| - |  | + | executor.setMainTask(safetySys); | 
| - |  | + | |
| </ | </ | ||
| Line 23: | Line 22: | ||
| * the control system through a special '' | * the control system through a special '' | ||
| * the sequencer | * the sequencer | ||
| + | |||
| + | An event can be triggered by the control system or the sequencer by calling: | ||
| + | <code cpp> | ||
| + | safetySys.triggerEvent(safetyProperties.seStartRunning); | ||
| + | </ | ||
| + | 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.1478249617.txt.gz · Last modified: 2016/11/04 09:53 (external edit)
                
                