Go Back   Physics Help Forum > High School and Pre-University Physics Help > Kinematics and Dynamics

Kinematics and Dynamics Kinematics and Dynamics Physics Help Forum

Reply
 
LinkBack Thread Tools Display Modes
Old Aug 14th 2019, 04:08 PM   #1
Junior Member
 
Join Date: Aug 2019
Posts: 1
Speed between two cars

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:

Code:
(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.
Attached Thumbnails
Speed between two cars-prob.png  
Kcaem is offline   Reply With Quote
Old Aug 15th 2019, 09:12 AM   #2
Senior Member
 
Woody's Avatar
 
Join Date: Jun 2016
Location: England
Posts: 963
VXi and VYi are reported by the radar which is mounted on the Ego Car,
They are the components of velocity of the object car relative to the Ego car.
They must be the relative velocities because the radar gun is traveling with the Ego car.

However the Ground speed of the Object Car is available (from the cars speedometer).
This is just the speed of the car relative to some stationary point on the ground.

However we need to know the Ground speed of the Object Car (are they breaking the speed limit for example).

This is simply gained by adding the radar reported velocity of the object car relative to the Ego Car
to the actual speed (Ground speed) of the Ego Car (reported by its speedometer).

There is also just a little simple trigonometry to allow for the two cars to not be traveling in exactly the same direction.
__________________
~\o/~
Woody is offline   Reply With Quote
Reply

  Physics Help Forum > High School and Pre-University Physics Help > Kinematics and Dynamics

Tags
cars, speed



Thread Tools
Display Modes


Similar Physics Forum Discussions
Thread Thread Starter Forum Replies Last Post
Time of cars lapping on second/third lap Tburgum Kinematics and Dynamics 1 Sep 21st 2018 02:09 PM
An unorthodox Speed vs Time to Speed vs Distance question kegz91 General Physics 4 Dec 13th 2017 07:08 PM
Elastic Collision of Two cars KrispyKrunch Energy and Work 2 Dec 6th 2009 10:58 PM
Crumple zones in cars, safety equipment and thin sponges xo-hikari Kinematics and Dynamics 3 Jan 27th 2009 10:31 PM
Speed of Cars while running toward them jonboy Kinematics and Dynamics 2 Jul 17th 2008 06:40 AM


Facebook Twitter Google+ RSS Feed