MorphuisOGrady
Member
Hi,
I'm not looking for code but rather some suggestions on how to approach this problem. I can see myself writing messy code when surely there is a clean way to approach it.
I have 4 cylinders I need to make sure are aligned. We can allow some deviation 20-30mm before taking action.
We cannot speed up a cylinder but we can slow down each cylinder to allow the others to catch up.
We have position sensors on each cylinder.
Must I compare C1 to C2,C3, C4 and C2 to C1, C3,C4 and so on or is there a cleaner way of doing this? I was thinking of using one as the reference for example take C1. Then C2, C3 and C4 could all be aligned with respect to C1 but C2 might be out with C4.
Or am I overthinking this?
I'm not looking for code but rather some suggestions on how to approach this problem. I can see myself writing messy code when surely there is a clean way to approach it.
I have 4 cylinders I need to make sure are aligned. We can allow some deviation 20-30mm before taking action.
We cannot speed up a cylinder but we can slow down each cylinder to allow the others to catch up.
We have position sensors on each cylinder.
Must I compare C1 to C2,C3, C4 and C2 to C1, C3,C4 and so on or is there a cleaner way of doing this? I was thinking of using one as the reference for example take C1. Then C2, C3 and C4 could all be aligned with respect to C1 but C2 might be out with C4.
Or am I overthinking this?