vectorgrp / sil-kit

Vector SIL Kit – Open-Source Library for Connecting Software-in-the-Loop Environments
https://vectorgrp.github.io/sil-kit-docs
MIT License
107 stars 32 forks source link

demos: grand refactoring #143

Open MariusBgm opened 2 weeks ago

MariusBgm commented 2 weeks ago

As a basis for discussion, the Demos/Can folder has been modified in several ways. If we agree on the changes there, we can use the same structure for the other demos.

TL;DR

.\SilKitDemoCanReader.exe
.\SilKitDemoCanWriter.exe
.\sil-kit-system-controller.exe CanReader CanWriter
.\SilKitDemoCanWriter.exe --name AsyncCanWriter --async
.\SilKitDemoCanWriter.exe --name SpamThatCan --async --fast
.\SilKitDemoCanReader.exe --name GiveMeAllYouGot --async --log Trace

Central modifications / guidelines

The splitted demos (CanReaderDemo, CanWriterDemo)

Minimal demo SimpleCan

The SimpleCan demo is not using the ApplicationBase to showcase basic SIL Kit usage. It is sync-only, only takes a participant name as command line argument and sends/receives CAN frames. Focus here is on minimizing lines of code. Such a simple demo could be unique for CAN and is not necessary for each bus system.

The ApplicationBase

Functional changes of the CAN Demo itself