Skip to content

Add utilities to send profile velocity and position to single elmo - #165

Merged
JosephBowkett merged 10 commits into
masterfrom
bowkett-add-profile-utils
Sep 3, 2026
Merged

JosephBowkett merged 10 commits into
masterfrom
bowkett-add-profile-utils

Conversation

@JosephBowkett

@JosephBowkett JosephBowkett commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

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 setcap command to remove need for root user access to run raw socket for ethercat master.

bump minor version

@JosephBowkett
JosephBowkett requested a review from PastorD June 10, 2026 00:29
@JosephBowkett

Copy link
Copy Markdown
Collaborator Author

alas, I have no CASAH coins to offer

@PastorD

PastorD commented Aug 18, 2026

Copy link
Copy Markdown
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 PastorD left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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

Comment thread utils/elmo_pos_profile.cpp Outdated
<< std::hex << final_sms << std::dec << std::endl;
last_logged_sms = final_sms;
}
if (final_sms == 0x40 || final_sms == 0x21 || final_sms == 0x23) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

promote magic numbers to const variables, so meaning is clear

@JosephBowkett
JosephBowkett merged commit 69581a2 into master Sep 3, 2026
3 of 4 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