eeros_architecture:safety_system:properties
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| eeros_architecture:safety_system:properties [2025/01/31 11:53] – [Level Actions] ursgraf | eeros_architecture:safety_system:properties [2026/04/12 14:47] (current) – [Entry Level] ursgraf | ||
|---|---|---|---|
| Line 35: | Line 35: | ||
| <code c> | <code c> | ||
| SafetyLevel slOff(" | SafetyLevel slOff(" | ||
| + | SafetyLevel slBoot(" | ||
| SafetyLevel slIinitializing(" | SafetyLevel slIinitializing(" | ||
| SafetyLevel slRunning(" | SafetyLevel slRunning(" | ||
| | | ||
| addLevel(slOff); | addLevel(slOff); | ||
| + | addLevel(slBoot); | ||
| addLevel(slIinitializing); | addLevel(slIinitializing); | ||
| addLevel(slRunning); | addLevel(slRunning); | ||
| Line 50: | Line 52: | ||
| SafetyEvent seStartRunning(" | SafetyEvent seStartRunning(" | ||
| - | | + | |
| slIinitializing.addEvent(seStartRunning, | slIinitializing.addEvent(seStartRunning, | ||
| slRunning.addEvent(seShutDown, | slRunning.addEvent(seShutDown, | ||
| Line 77: | Line 79: | ||
| Define actions for the safety levels. Each level can cause no or one action. | Define actions for the safety levels. Each level can cause no or one action. | ||
| <code cpp> | <code cpp> | ||
| - | | + | |
| - | privateContext-> | + | privateContext-> |
| }); | }); | ||
| </ | </ | ||
| Line 86: | Line 88: | ||
| You also have the possibility to define an action which is executed when a safety level is entered. That means when the safety system switches to this level. | You also have the possibility to define an action which is executed when a safety level is entered. That means when the safety system switches to this level. | ||
| <code cpp> | <code cpp> | ||
| - | | + | |
| // do anything | // do anything | ||
| }); | }); | ||
| Line 93: | Line 95: | ||
| Further, you can define an action which is executed when a safety level is left. That means when the safety system switches from this level to another level. | Further, you can define an action which is executed when a safety level is left. That means when the safety system switches from this level to another level. | ||
| <code cpp> | <code cpp> | ||
| - | | + | |
| // do anything | // do anything | ||
| }); | }); | ||
| Line 110: | Line 112: | ||
| As a last point, you have to specify with which level the system has to start. | As a last point, you have to specify with which level the system has to start. | ||
| <code c> | <code c> | ||
| - | setEntryLevel(slOff); | + | setEntryLevel(slBoot); |
| </ | </ | ||
eeros_architecture/safety_system/properties.1738320830.txt.gz · Last modified: by ursgraf
