Klicky-Probe icon indicating copy to clipboard operation
Klicky-Probe copied to clipboard

Add support for slideswipe and similar probes

Open HitLuca opened this issue 1 year ago • 1 comments

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 avatar Feb 21 '24 13:02 HitLuca

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

HitLuca avatar Feb 27 '24 15:02 HitLuca