-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add heartbeat to Mission Control Protocol #261
Merged
Conversation
This file contains 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
huttongrabiel
previously approved these changes
Sep 21, 2023
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.
Here's the first review on this. I got sidetracked after doing this so I'll full review it again after this one.
* Update camera configs * Add comment
… fix (#264) * Report full attitude, fix lat/lon bug, report attitude even if no gps fix * Address comments
huttongrabiel
requested changes
Oct 3, 2023
huttongrabiel
requested changes
Oct 3, 2023
huttongrabiel
approved these changes
Oct 10, 2023
AyushKulk
pushed a commit
that referenced
this pull request
Oct 31, 2023
* Implement watchdog * Use watchdog in MCP * Address comments * Update camera configs (#263) * Update camera configs * Add comment * Report full attitude, fix lat/lon bug, report attitude even if no gps fix (#264) * Report full attitude, fix lat/lon bug, report attitude even if no gps fix * Address comments * Format code * Address comments
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.
This is a cleaned up version of functionality hacked together during CIRC 2023.
If the MC <-> Rover connection is severed (e.g. the cable disconnects) the disconnect handler isn't called, so the rover keeps running. This is unsafe behavior, since it might result in a runaway rover. We fix this by implementing a heartbeat in the websocket protocol. If enabled, then the rover will periodically ping MC and use pongs to feed a watchdog. If the watchdog starves, then the rover is E-stopped.
Note that this needs to be tested on the rover prior to being merged.