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

Add support for slideswipe and similar probes #240

Open
HitLuca opened this issue Feb 21, 2024 · 1 comment
Open

Add support for slideswipe and similar probes #240

HitLuca opened this issue Feb 21, 2024 · 1 comment

Comments

@HitLuca
Copy link

HitLuca commented Feb 21, 2024

Today I integrated the klicky macros with my slideswipe probe, but this required a couple of modifications. Since the probe needs to slide in and out of the servo dock, the attach/dock macros need more steps than usual.

The dock, when extended, has a channel that runs along the y axis in which the probe will need to slide in and out
Attach:

  • move to dock pos - x offset
  • extend dock
  • move to dock pos (attach)
  • move to dock pos + y offset (slide off)
  • move to dock pos - x offset + y offset (move out of the dock when retracting)
  • retract dock

Dock:

  • move to dock pos + y offset
  • extend dock
  • move to dock pos (slide on)
  • move to dock pos - x offset (dock)
  • [optional] move to dock pos - x offset + y offset (keep attack and dock procedure the same length and pattern)
  • retract dock

For my implementation I used the stock variables used for klicky (attachmove_x/y, dockmove_x/y) plus the attachmove2_x/y variables. The dock operation also uses attachmove2_x/y so I had to integrate those variables into the macro.

Let me know if it could be an interesting integration, my code is specific to slideswipe but I'm sure it could be integrated to work as usual when this particular case isn't occurring

If this attach/dock movements are already supported please let me know, but to my knowledge they aren't

@HitLuca
Copy link
Author

HitLuca commented Feb 27, 2024

another idea is to add the position to move to before/after the servo has been extended/retracted

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

No branches or pull requests

1 participant