Calculating Speed Between Two Cars

  • Thread starter Thread starter kacem
  • Start date Start date
  • Tags Tags
    Cars Speed
AI Thread Summary
The discussion revolves around calculating the speed of two cars using radar data from an ego vehicle. The key equations involve vector addition to determine the ground speed of the lead car, with Vx representing longitudinal speed and Vy representing lateral speed. There is confusion regarding the calculation of the heading angle, theta, and its relevance to the velocity components. Participants question the necessity of calculating theta when simple vector addition could suffice. The code in question is sourced from the Matlab Mathworks website, specifically related to ground speed calculations.
kacem
Messages
2
Reaction score
0
Hi,
I found a programming problem that calculated the speed between two cars as below and I would like to know how the calculation is done.
it is about determining the speed of two cars. The coordinate reference system (y,x) is attached to the ego vehicle (as shown in the attached figure).
The speed of the lead car is estimated with the radar of the ego vehicle.
As mentioned in the program reference: The true ground speed of a radar-reported object from the relative speed and the ego vehicle speed is calculated as follows:
(Vxi,Vyi) : relative object speed
egoSpeed : ego vehicle speed
[Vx,Vy] : ground object speed

Vx = Vxi + egoSpeed :Calculate longitudinal ground speed
theta = atan2(Vyi,Vxi) :Calculate heading angle
Vy = Vx * tan(theta) :Calculate lateral ground speed

Is there anyone who can explain how Vx and Vy are calculated? and why he uses the term "ground"?
Thank you.
 

Attachments

  • prob.png
    prob.png
    2.7 KB · Views: 198
Physics news on Phys.org
Welcome to the PF. :smile:
kacem said:
Is there anyone who can explain how Vx and Vy are calculated? and why he uses the term "ground"?
Those equations are just showing the vector addition of the two vehicle speeds to get the speed of the front vehicle with respect to the ground.

Have you learned any vector math in your schoolwork so far? If not, we can probably suggest some learning resources to help you get up to speed on these kinds of questions. :smile:
 
kacem said:
I found a programming problem ...
Where is the code from? It seems wrong:
Theta is the movement direction relative to the chase car based on : theta = atan2(Vyi,Vxi)
But it is used to relate the velocity components relative to ground : Vy = Vx * tan(theta)
 
The rope is tied into the person (the load of 200 pounds) and the rope goes up from the person to a fixed pulley and back down to his hands. He hauls the rope to suspend himself in the air. What is the mechanical advantage of the system? The person will indeed only have to lift half of his body weight (roughly 100 pounds) because he now lessened the load by that same amount. This APPEARS to be a 2:1 because he can hold himself with half the force, but my question is: is that mechanical...
Some physics textbook writer told me that Newton's first law applies only on bodies that feel no interactions at all. He said that if a body is on rest or moves in constant velocity, there is no external force acting on it. But I have heard another form of the law that says the net force acting on a body must be zero. This means there is interactions involved after all. So which one is correct?
Thread 'Beam on an inclined plane'
Hello! I have a question regarding a beam on an inclined plane. I was considering a beam resting on two supports attached to an inclined plane. I was almost sure that the lower support must be more loaded. My imagination about this problem is shown in the picture below. Here is how I wrote the condition of equilibrium forces: $$ \begin{cases} F_{g\parallel}=F_{t1}+F_{t2}, \\ F_{g\perp}=F_{r1}+F_{r2} \end{cases}. $$ On the other hand...
Back
Top