eeros_architecture:safety_system:properties
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
eeros_architecture:safety_system:properties [2017/07/25 08:48] – [Safety Events] graf | eeros_architecture:safety_system:properties [2018/05/15 13:04] – [Safety Levels] graf | ||
---|---|---|---|
Line 35: | Line 35: | ||
<code c> | <code c> | ||
SafetyLevel slOff(" | SafetyLevel slOff(" | ||
- | SafetyLevel slIinitializing(" | + | SafetyLevel slIinitializing(" |
SafetyLevel slRunning(" | SafetyLevel slRunning(" | ||
| | ||
Line 77: | Line 77: | ||
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> | ||
- | slOff.setLevelAction([&](SafetyContext* privateContext) { | + | slOff.setLevelAction([this](SafetyContext* privateContext) { |
privateContext-> | privateContext-> | ||
}); | }); | ||
Line 87: | Line 87: | ||
Each time that the safety system runs in a certain level a counter named '' | Each time that the safety system runs in a certain level a counter named '' | ||
<code cpp> | <code cpp> | ||
- | slRunning.setLevelAction([&](SafetyContext* privateContext) { | + | slRunning.setLevelAction([this,period](SafetyContext* privateContext) { |
if (slRunning.getNofActivations() * period >= 60.0) | if (slRunning.getNofActivations() * period >= 60.0) | ||
privateContext-> | privateContext-> |
eeros_architecture/safety_system/properties.txt · Last modified: 2024/06/10 09:45 by ursgraf