Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create somersault_modified.pdx dynamically #282

Merged
merged 6 commits into from
Apr 8, 2024

Conversation

andlaus
Copy link
Collaborator

@andlaus andlaus commented Mar 28, 2024

Instead of creating this file from scratch, it takes the "normal" somersault ECU and modifies it programmatically. (This script thus serves as an example of how this can be done.)

The reason for this approach is to automatically carry over changes to the base sommersaultecu, thus simplifying keeping these files in sync and having a well-defined set of modifications.

Andreas Lauser <andreas.lauser@mercedes-benz.com>, on behalf of MBition GmbH.
Provider Information

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Katja Köhler <katja.koehler@mbition.io>
The reason is that they are useful to be used outside of the
submodule, e.g., if the database is going to be modified.

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Katja Köhler <katja.koehler@mbition.io>
instead of creating everything from scratch, it takes the "normal"
somersault ECU and modifies this database. (This script thus serves as
an example of how this can be done.)

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Katja Köhler <katja.koehler@mbition.io>
…d.pdx`

thanks to [at]kakoeh for the feedback!

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Katja Köhler <katja.koehler@mbition.io>
@andlaus andlaus requested a review from kayoub5 March 28, 2024 08:57
…const portion

The location of the `num_flips_done` parameter of the
'somersault.PR.happy_forward' is ouside of the constant prefix of the
corresponding request. Although the spec does not explicitly disallow
this, it is probably not intended to be done.

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Katja Köhler <katja.koehler@mbition.io>
@andlaus andlaus force-pushed the dynamic_somersault_modified branch from 2b59932 to fde3d5a Compare March 28, 2024 09:24
@andlaus
Copy link
Collaborator Author

andlaus commented Apr 4, 2024

@kayoub5: any opinion on this? I think that this one makes a nice template for copy-and-pasting but the code is relatively uncritical...

examples/mksomersaultmodifiedpdx.py Show resolved Hide resolved
examples/mksomersaultmodifiedpdx.py Show resolved Hide resolved
examples/mksomersaultmodifiedpdx.py Outdated Show resolved Hide resolved
examples/mksomersaultmodifiedpdx.py Show resolved Hide resolved
examples/somersaultecu.py Show resolved Hide resolved
as usual, thanks to [at]kayoub5!

Signed-off-by: Andreas Lauser <andreas.lauser@mbition.io>
Signed-off-by: Katja Köhler <katja.koehler@mbition.io>
@andlaus andlaus merged commit d84150b into mercedes-benz:main Apr 8, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants