Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   JAVA code to drive straight using H-drive (http://www.chiefdelphi.com/forums/showthread.php?t=135331)

Ether 04-03-2015 11:21

Re: JAVA code to drive straight using H-drive
 
Quote:

Originally Posted by GeeTwo (Post 1453315)
Also, that should be 180, not 360.

No, 360 is correct.

arc_length=(Left-Right)/2

arc_radius = trackwidth/2

arc_angle = arc_length/arc_radius = arc_length/(trackwidth/2) = 2*arc_length/trackwith

convert to degrees:

2*arc_length/trackwith * (180/pi) = 360*arc_length/(trackwidth*pi)





All times are GMT -5. The time now is 12:03.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi