View Single Post
  #11   Spotlight this post!  
Unread 04-03-2015, 11:21
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,043
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: JAVA code to drive straight using H-drive

Quote:
Originally Posted by GeeTwo View Post
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)




Last edited by Ether : 04-03-2015 at 11:24.
Reply With Quote