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

Add test harness to common supervisor, fix bugs, restore C code calls #78

Merged
merged 13 commits into from
Jan 26, 2024

Conversation

mfussi66
Copy link
Member

This PR creates a test harness model embedded in the new Supervisor.slx, located in the Common project.

The model is as follows:
image

On the left we have a test sequence object, and on the right a test assessment block. The first sets the input variables, while the other verifies them according to internal rules.

This harness model allowed to discover a bug caused by the refactor in the Input Dispatcher. See the issue related to this PR for details: #72

Finally, custom code calls are restored.

@mfussi66 mfussi66 self-assigned this Jan 26, 2024
@mfussi66 mfussi66 requested a review from pattacini as a code owner January 26, 2024 12:36
Copy link
Member

@pattacini pattacini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent work @mfussi66 🚀

Just a minor request:

  • Would you be willing to refactor the common/tests dir with a further level of subdirs in order to specialize the meaning? For example, the model pmsm could be located under common/tests/motor; similar subdirs should host the other tests. Avoiding using one shared big bucket will enable us to be a bit cleaner.

@pattacini
Copy link
Member

Remember to update the project to include the new tree.

@mfussi66
Copy link
Member Author

mfussi66 commented Jan 26, 2024

Done!
now there is /tests/motor/pmsm and /interactive/test_motion_controller.slx

Copy link
Member

@pattacini pattacini left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@pattacini pattacini merged commit 2855712 into robotology:devel Jan 26, 2024
@mfussi66 mfussi66 deleted the refactor-sup branch March 13, 2024 16:09
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