-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #98 from lf-lang/cpp-examples
Cleanup pass on Cpp examples and navigation
- Loading branch information
Showing
16 changed files
with
73 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,19 @@ | ||
# C Examples | ||
* [Patterns](src/patterns/README.md): Common communication patterns. | ||
* [Deadlines](src/deadlines/README.md): Uses of deadlines in Lingua Franca. | ||
|
||
(in alphabetical order) | ||
|
||
* [Car Brake](src/car-brake/README.md): Sketch of ADAS system illustrating the CAL theorem. | ||
* [Rosace](src/rosace/README.md): Aircraft controller illustrating periodic systems with multiple periods. | ||
* [Simulation](src/simulation/README.md): Using Lingua Franca for simulation. | ||
* [Deadlines](src/deadlines/README.md): Uses of deadlines in Lingua Franca. | ||
* [Distributed](src/distributed/README.md): Basic federated hello-world examples. | ||
* [Furuta Pendulum](src/modal_models/FurutaPendulum/README.md): A controller and simulation illustrating a modal reactor. | ||
* [Keyboard](src/keyboard/README.md): Responding to keyboard input using ncurses. | ||
* [Leader Election](src/leader-election/README.md): Federated fault-tolerant system with leader election. | ||
* [MQTT](src/mqtt/README.md): Interacting with MQTT-based services. | ||
* [Furuta Pendulum](src/modal_models/FurutaPendulum/README.md): A controller and simulation illustrating a modal reactor. | ||
* [Patterns](src/patterns/README.md): Common communication patterns. | ||
* [Rhythm](src/rhythm/README.md): Sound generation and terminal user interface demos. | ||
* [Rosace](src/rosace/README.md): Aircraft controller illustrating periodic systems with multiple periods. | ||
* [SDV](src/sdv/README.md): Software defined vehicle sketch integrating user input, a web display, and sound. | ||
* [Shared Memory](src/shared-memory/README.md): Using shared memory to exchange large data objects between federates. | ||
* [Simulation](src/simulation/README.md): Using Lingua Franca for simulation. | ||
* [Train Door](src/train-door/README.md): Train door controller from a verification paper. | ||
* [Distributed](src/distributed/README.md): Basic federated hello-world examples. | ||
* [Watchdog](src/watchdog/README.md): Federated illustration of watchdogs. | ||
* [Leader Election](src/leader-election/README.md): Federated fault-tolerant system with leader election. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# C++ Patterns | ||
A few common design patterns: | ||
|
||
* [Fully Connected Broadcast](src/FullyConnected_00_Broadcast.lf) | ||
* [Fully Connected Addressable](src/FullyConnected_00_Addressable.lf) | ||
* [MatrixConnectedRowsAndColumns](src/MatrixConnectedRowsAndColumns.lf) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# C++ Examples | ||
* [Alarm Clock](AlarmClock/src/README.md) | ||
* [Car Brake](CarBrake/src/README.md) | ||
* [Patterns](Patterns/src/README.md) | ||
* [Reflex Game](ReflexGame/src/ReflexGame.lf) | ||
* [Add](RequestResponse/src/Add.lf) and [AddWithContext](RequestResponse/src/AddWithContext.lf) request-response patterns | ||
* [ROS2](ROS2/src/README.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
This is an LF reimplementation of the ROS 2 minimal publisher and sunscriber | ||
This is an LF reimplementation of the ROS 2 minimal publisher and subscriber | ||
[example](https://docs.ros.org/en/galactic/Tutorials/Writing-A-Simple-Cpp-Publisher-And-Subscriber.html). | ||
|
||
It consists of two LF files, MinimalPublisher and MinimalSubscriber, each | ||
It consists of two LF files, [MinimalPublisher.lf](MinimalPublisher.lf) and [MinimalSubscriber.lf](MinimalSubscriber.lf), each | ||
implementing the corresponding nodes from the original example. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,6 @@ | |
* @author Marten Lohstroh | ||
*/ | ||
target Cpp { | ||
keepalive: true, | ||
cmake-include: "ReflexGame.cmake" | ||
} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
# Examples | ||
Our examples are organized by __target__. | ||
Our examples are organized by __target__ language: | ||
|
||
* [C examples](C/README.md) | ||
* [C++ examples](Cpp/README.md) |