Carousel with counts move x amount of pockets

More
28 Sep 2025 17:46 #335514 by andypugh
Replied by andypugh on topic Carousel with counts move x amount of pockets
"align-pin" isn't a physical pin (or, rather, it _can_ be a physical pin, but which one it maps to is dependent on mode)

In the step counts case:

github.com/LinuxCNC/linuxcnc/blob/master...s/carousel.comp#L292

And I am somewhat concerned that I have made an error there, as I don't think that the % operator will return a negative value.
I can see what my code was trying to do, but I suspect it doesn't do it.

Do you know what your counts (and scale) were at the point that the system got stuck?

Please Log in or Create an account to join the conversation.

  • GDTH
  • GDTH's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
29 Sep 2025 15:56 #335554 by GDTH
setp carousel1.0.scale 2000
setp carousel1.0.width 200
setp carousel1.0.home-offset 800
setp carousel1.0.debounce 3

Please Log in or Create an account to join the conversation.

More
02 Oct 2025 12:16 - 02 Oct 2025 12:17 #335711 by andypugh
Replied by andypugh on topic Carousel with counts move x amount of pockets
Sorry, but to test I would need to know the actual encoder/step counts that were being fed into the component at the point of failure.

But, I am sure that the code linked above is very wrong, and is likely to be the problem.

Can you:
1) Make sure that you have the linuxcnc-uspace-dev package installed.
2) Download the attached carousel.comp file
3) From the folder where you saved the file
sudo halcompile --install carousel.comp

And see if the problem is fixed?
Attachments:
Last edit: 02 Oct 2025 12:17 by andypugh.
The following user(s) said Thank You: tommylight

Please Log in or Create an account to join the conversation.

Time to create page: 0.063 seconds
Powered by Kunena Forum