-
Notifications
You must be signed in to change notification settings - Fork 50
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
Fix timing of command responses from Astrohaven simulator. #243
Fix timing of command responses from Astrohaven simulator. #243
Conversation
Was emitting response too soon, so driver was skipping past it when looking for a response, thus never detected that the desired state had in fact been reached. Added logging to the Astrohaven simulator to help with future debugging.
Codecov Report
@@ Coverage Diff @@
## develop #243 +/- ##
===========================================
- Coverage 79.87% 79.82% -0.05%
===========================================
Files 42 42
Lines 3185 3197 +12
Branches 413 412 -1
===========================================
+ Hits 2544 2552 +8
- Misses 501 503 +2
- Partials 140 142 +2
Continue to review full report at Codecov.
|
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.
👍
if remaining <= 0: | ||
self.do_output() | ||
self.update_next_output_time() | ||
continue | ||
# Maybe a short delay here? |
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 comment was here before but is it referring to same thing as short delay added on 132?
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.
Doh, should have fixed that. Will do so now.
Add clarifying comments about placement of sleep and drain (discard) operations.
Was emitting response too soon, so driver was skipping past it when
looking for a response, thus never detected that the desired state had
in fact been reached.
Added logging to the Astrohaven simulator to help with future debugging.
Fixes #240