Difference of 2 positions

I have project to check point of torque, and now I have a problem that people is tighten at the same point. So I need to check coordinate (X,Y) first point and the next point that's not the same (indoor and diff in cm. range).
Can anyone help or give me some suggestion please?

Welcome to the forum

Much more detail required. Start by explaining what is being tightened and how

A drawing would say more than 1000 words...

1 Like

Use a translator to write in your natural language and copy/paste the English translation here.

Of what?

Do you mean people are tighten at the same point? What does this mean?

So how do you propose to do this?

No one can help you unless we know what you are doing. Answering these questions coherintly would help a lot.

the distance between two points is done by Pythagoras formula

distance = sqrt( (x1-x2) ^2 + (y1-y2)^2)
torque = force x distance

Do you really use the XOR operator in the calculation ?

Sorry

Meant the ^2 as square

I guessed as much, but future readers of the topic might not, so best to be clear

1 Like

If the force is rotational, the formula would use the angle of force applied to the moment.

t = F * r * sin(angle) // torque = force * distance * sin(angle)

You can't calculate a torque without specifying a center of rotation. If the center of rotation of a rigid body is located at (XCR,YCR) in some inertial reference frame, and a person is applying a vector force (Fx,Fy) at a point (X,Y), then the moment arm will have a length [(XXCR)² + (YYCR)² ]½, while the applied torque (about the center of rotation) will be given by

T = (XXCRFy – (YYCRFx

If there are multiple people applying forces at different points of the rigid body, then the torques produced by each person would have to be calculated individually, and summed.


What I want to explain is:
From the image, nails must be hammered at specific points in a given order, and each point must not be hammered more than once (which means one point can only be hammered a single time).

What I would like to ask for advice is:
I want to check that no point has been hammered twice. The way I plan to do this is: after hammering is completed, I will record the position as coordinates (x, y). Then I will use an if check against all recorded points to see if the same point has already been hammered. The checking method is based on measuring the distance from the Home position.

What type of material are the nails being hammered into ?

How accurate will your positioning system be?
Will you consider a circle around the midpoint of your nail as forbidden area for later nails?

The usual way if hammering is hitting the same nail more than once. Do you assume a one hit nailing?

The circular area can be configured with a tolerance according to the spacing of the holes in the workpiece, but the hammer position will always be almost at the center of the hole. Therefore, if a nail is hammered within the area of a previous point plus the tolerance, it will be considered NG and an alarm sound will be triggered.

And yes, I am assuming that each nail will be hammered only once.

imho the xy positions are not relevant based on your description.

prepare an array with 4 fields
when someone knocks on a point check if it is already stored in one of the fields
If not store in the current position and increase the position.
if it is stored in another position - go ot an exception.

Of course you can check against an "order" also

Thanks a lot for your help and which equipment that I should use to get the positioning?
Has any advice?

Thank you,

So now you are saying that the nails can only be hammered into holes that are already there. Presumably those holes are on an x/y grid. Is there anything else that you want to tell us ?

Have you already built this device ?

I haven’t built that device yet because I don’t know what equipment to use to measure the x,y grid positions.

sorry. i just assume the situation but the actual is torque wrench in 10 points, each point cannot tight in twice or more.