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

Queue clearance for emergency stop #68

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

lromor
Copy link
Contributor

@lromor lromor commented Apr 29, 2023

No description provided.

@codecov-commenter
Copy link

codecov-commenter commented Apr 29, 2023

Codecov Report

Patch coverage: 77.27% and project coverage change: +0.12 🎉

Comparison is base (b1469b2) 47.66% compared to head (6f01af1) 47.79%.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #68      +/-   ##
==========================================
+ Coverage   47.66%   47.79%   +0.12%     
==========================================
  Files          37       37              
  Lines        4284     4304      +20     
==========================================
+ Hits         2042     2057      +15     
- Misses       2242     2247       +5     
Impacted Files Coverage Δ
src/determine-print-stats.cc 0.00% <0.00%> (ø)
src/motion-queue.h 100.00% <ø> (ø)
src/pru-hardware-interface.h 100.00% <ø> (ø)
src/segment-queue.h 100.00% <ø> (ø)
src/sim-audio-out.h 0.00% <0.00%> (ø)
src/sim-firmware.h 0.00% <0.00%> (ø)
src/uio-pruss-interface.cc 0.00% <0.00%> (ø)
src/motion-queue-motor-operations.cc 54.48% <100.00%> (+1.50%) ⬆️
src/pru-motion-queue.cc 67.90% <100.00%> (+4.52%) ⬆️

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Owner

@hzeller hzeller left a comment

Choose a reason for hiding this comment

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

first round of comments.

src/motion-queue.h Outdated Show resolved Hide resolved
src/motion-queue-motor-operations_test.cc Outdated Show resolved Hide resolved
@@ -177,6 +177,11 @@ void PRUMotionQueue::Shutdown(bool flush_queue) {
MotorEnable(false);
}

bool PRUMotionQueue::Clear() {
pru_interface_->Shutdown();
Copy link
Owner

Choose a reason for hiding this comment

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

this sounds a bit drastic. Is that all we can do ?

Copy link
Owner

@hzeller hzeller left a comment

Choose a reason for hiding this comment

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

LGTM.

Did you verify that stoping and starting will work on the PRU, and that you can restart and start enquing things again that come out on the other oscilloscope end ?

src/motion-queue-motor-operations_test.cc Show resolved Hide resolved
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.

3 participants