-
Notifications
You must be signed in to change notification settings - Fork 51
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
base: main
Are you sure you want to change the base?
Conversation
Codecov ReportPatch coverage:
❗ 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
☔ View full report in Codecov by Sentry. |
There was a problem hiding this 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/pru-motion-queue.cc
Outdated
@@ -177,6 +177,11 @@ void PRUMotionQueue::Shutdown(bool flush_queue) { | |||
MotorEnable(false); | |||
} | |||
|
|||
bool PRUMotionQueue::Clear() { | |||
pru_interface_->Shutdown(); |
There was a problem hiding this comment.
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 ?
There was a problem hiding this 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 ?
No description provided.