celestron-aux: initial support for slew limits #874
Merged
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.
The Evolution mount seems to be pretty robust to crashes (ask me how I know)- that said, it would be better not to tempt fate.
This PR implements initial slew limits. It's sufficient to prevent tracking, an incautious goto, or a manual slew from causing too much havoc. That said, it doesn't promise to prevent you from doing something stupid. For example, if the mount is already beyond a limit and you (or an automation script) command it to move even further into the no-go zone, it will (at least briefly) until the next polling period. A more robust solution that prevents all motion further into a no-go zone would be better, but this is enough to start.
Limits are set as angles relative to the index (i.e. startup position if no HC connected).