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 [2018/05/15 13:04] – [Safety Levels] graf | eeros_architecture:safety_system:properties [2023/02/25 07:30] – [Safety Events] ursgraf | ||
---|---|---|---|
Line 57: | Line 57: | ||
Each event must be defined **kPublicEvent** or **kPrivateEvent**. Private events can only be fired by the safety system itself whereas public events could also be caused by the //Control System// or the // | Each event must be defined **kPublicEvent** or **kPrivateEvent**. Private events can only be fired by the safety system itself whereas public events could also be caused by the //Control System// or the // | ||
- | It is also possible to add an event to many levels. In the following example we add from the level // | + | It is also possible to add an event to many levels. In the following example we add to all levels |
<code c> | <code c> | ||
// Add events to multiple levels | // Add events to multiple levels | ||
- | addEventToLevelAndAbove(slPowerOn, slMoving, seDoEmergency, | + | addEventToLevelAndAbove(slPowerOn, |
</ | </ | ||
Two more functions serve a similar purpose. | Two more functions serve a similar purpose. | ||
<code c> | <code c> | ||
// Add events to all levels equal or smaller than srcLevel | // Add events to all levels equal or smaller than srcLevel | ||
- | addEventToLevelAndBelow(srcLevel, destLevel, event, kPublicEvent); | + | addEventToLevelAndBelow(srcLevel, |
// Add events to all levels in between lowerLevel and upperLevel (including lowerLevel and upperLevel) | // Add events to all levels in between lowerLevel and upperLevel (including lowerLevel and upperLevel) | ||
- | addEventToAllLevelsBetween(lowerLevel, | + | addEventToAllLevelsBetween(lowerLevel, |
</ | </ | ||
Line 80: | Line 80: | ||
privateContext-> | privateContext-> | ||
}); | }); | ||
- | ... | ||
</ | </ | ||
The method // | The method // | ||
=== Counter === | === Counter === | ||
- | 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([this, | slRunning.setLevelAction([this, |
eeros_architecture/safety_system/properties.txt · Last modified: 2024/06/10 09:45 by ursgraf