Skip to content

Comments

Fix turning angle calculation#5

Open
nilpunch wants to merge 1 commit intoHabrador:masterfrom
nilpunch:master
Open

Fix turning angle calculation#5
nilpunch wants to merge 1 commit intoHabrador:masterfrom
nilpunch:master

Conversation

@nilpunch
Copy link

@nilpunch nilpunch commented Sep 6, 2023

That one Tan() function violates the turning radius of the vehicle.

Here is a simple fix. The math is following:
$turnRadius = wheelBase / Sin(steeringAngle)$
$turnAngle = arcLength / turnRadius$

So,
$turnAngle = arcLength / wheelBase * Sin(steeringAngle)$

That one math function break turning radius of the vehicle.

Here is a simple fix. The math is following:
turnRadius = wheelBase / Sin(steeringAngle)
turnAngle = arcLength / turnRadius

So,
turnAngle = arcLength / wheelBase * Sin(steeringAngle)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants