Add utilities to send profile velocity and position to single elmo - #165
Merged
Merged
Conversation
Collaborator
Author
|
alas, I have no CASAH coins to offer |
Contributor
|
Code compiles, but unable to test in hardware. It shows an issue with this MR: it is two 500 lines cpp files, mostly inside the main function. It should break it down so it can be tested, and add those tests. Broken down code could stay in the same file, unless it could be reused (with minimal efforts to avoid duplication at the cost of abstraction) |
PastorD
approved these changes
Aug 25, 2026
PastorD
left a comment
Contributor
There was a problem hiding this comment.
Code builds and it does not affect existing behavior safe to merge
Some improvements:
- refactor both new files outside the main function to be able to test them, and add test
PastorD
reviewed
Aug 25, 2026
| << std::hex << final_sms << std::dec << std::endl; | ||
| last_logged_sms = final_sms; | ||
| } | ||
| if (final_sms == 0x40 || final_sms == 0x21 || final_sms == 0x23) { |
Contributor
There was a problem hiding this comment.
promote magic numbers to const variables, so meaning is clear
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds two small utilities that start up an ethercat bus and either a) run a single velocity trap profile or b) run a single position trap profile on an elmo named within a bus defined by a supplied fastcat yaml config file.
Also added detail on use of
setcapcommand to remove need for root user access to run raw socket for ethercat master.bump minor version