Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Skyward Boardcore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Avionics
Software Development
Skyward Boardcore
Wiki
Events Cheatsheet
Changes
Page history
New page
Templates
Clone repository
Added syntax highlighting in events cheatsheet
authored
6 years ago
by
Luca Mozzarelli
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Events-Cheatsheet.md
+4
-4
4 additions, 4 deletions
Events-Cheatsheet.md
with
4 additions
and
4 deletions
Events-Cheatsheet.md
View page @
38f58078
...
...
@@ -3,7 +3,7 @@ Two types of events can be posted: "standard" events are posted at the moment of
### Standard events
To post a "standard" event the following code is used:
```
```
cpp
// Include the event broker
#include
<events/EventBroker.h>
...
...
@@ -21,7 +21,7 @@ void someFunction()
```
### Delayed events
The delayed events are posted in a very similar way:
```
```
cpp
// Include the event broker
#include
<events/EventBroker.h>
...
...
@@ -40,7 +40,7 @@ void someFunction()
}
```
It is good practice to save the event id returned by the function in order to remove it later.
```
```
cpp
// Define a private property in your class to store the event id
class
MyClass
:
public
FSM
<
MyClass
>
{
...
...
@@ -86,7 +86,7 @@ class MyClass : public FSM<MyClass>
```
### Events with parameters
If the event has some parameter associated (a typical example is a remote command from the ground station) the event has to be manually instanciated
```
```
cpp
// Include the event broker
#include
<events/EventBroker.h>
...
...
This diff is collapsed.
Click to expand it.