Calculating Speed Between Two Cars

  • Context: Undergrad 
  • Thread starter Thread starter kacem
  • Start date Start date
  • Tags Tags
    Cars Speed
Click For Summary
SUMMARY

The discussion focuses on calculating the ground speed of two cars using radar data from an ego vehicle, specifically utilizing equations derived from vector mathematics. The calculations involve determining the longitudinal ground speed (Vx) and lateral ground speed (Vy) based on the relative speed of the lead car (Vxi, Vyi) and the ego vehicle speed (egoSpeed). The equations are sourced from MATLAB's MathWorks website, particularly in the context of forward collision warning systems. The term "ground" refers to the speed of the vehicle relative to the ground rather than just the speed relative to the ego vehicle.

PREREQUISITES
  • Understanding of vector mathematics, particularly vector addition.
  • Familiarity with MATLAB programming, specifically the MathWorks environment.
  • Knowledge of radar speed estimation techniques.
  • Basic concepts of vehicle dynamics and motion analysis.
NEXT STEPS
  • Research MATLAB's vector operations and how they apply to vehicle dynamics.
  • Explore the MathWorks documentation on sensor fusion and collision warning systems.
  • Learn about the implications of relative speed calculations in automotive applications.
  • Study the use of atan2 function in programming for angle calculations in 2D space.
USEFUL FOR

Automotive engineers, MATLAB programmers, and anyone involved in vehicle dynamics analysis or radar technology will benefit from this discussion.

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: 216
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)
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 20 ·
Replies
20
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
  • · Replies 7 ·
Replies
7
Views
11K
Replies
3
Views
1K
Replies
3
Views
3K
  • · Replies 23 ·
Replies
23
Views
2K
  • · Replies 30 ·
2
Replies
30
Views
3K
Replies
0
Views
2K
  • · Replies 20 ·
Replies
20
Views
5K