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 command methods #187

Merged
merged 2 commits into from
Dec 26, 2023
Merged

Add command methods #187

merged 2 commits into from
Dec 26, 2023

Conversation

jballoffet
Copy link
Member

@jballoffet jballoffet commented Dec 3, 2023

🎉 New feature

Related: #87

Summary

This PR adds callback methods for each CLI command as a stepping stone towards decoupling the main application logic from the shell and CLI business logic. It also removes some commands that may result in HW damage if wrongly used.

More PRs will be sent to keep improving the code structure.

Note: this PR is expected to be submitted after #186.

Test it

Tested by performing manual integration tests on the robot hardware.

Checklist

  • Signed all commits for DCO
  • Added tests
  • Added example and/or tutorial
  • Updated documentation (as needed)
  • Updated migration guide (as needed)
  • Consider updating Python bindings (if it affects the public API)

Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining Signed-off-by messages.

Copy link
Collaborator

@francocipollone francocipollone left a comment

Choose a reason for hiding this comment

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

Thanks improving code structure. I left some comments

andino_firmware/src/commands.h Outdated Show resolved Hide resolved
andino_firmware/src/app.cpp Outdated Show resolved Hide resolved
andino_firmware/src/app.cpp Outdated Show resolved Hide resolved
andino_firmware/src/app.cpp Outdated Show resolved Hide resolved
andino_firmware/src/app.cpp Outdated Show resolved Hide resolved
@francocipollone
Copy link
Collaborator

BTW, is the o command still failing?

Signed-off-by: Javier Balloffet <javier.balloffet@gmail.com>
Signed-off-by: Javier Balloffet <javier.balloffet@gmail.com>
@jballoffet
Copy link
Member Author

BTW, is the o command still failing?

Yes, I will fix it in a subsequent PR so as to ease the review process. Thanks for checking!

Copy link
Collaborator

@francocipollone francocipollone left a comment

Choose a reason for hiding this comment

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

LGTM!

@jballoffet jballoffet merged commit a46a3b0 into humble Dec 26, 2023
3 checks passed
@jballoffet jballoffet deleted the jballoffet/add-command-methods branch December 26, 2023 10:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants