Go to Post For the first time, tears of joy came to my eyes when I realized how much I love FIRST. - Arefin Bari [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rating: Thread Rating: 4 votes, 5.00 average. Display Modes
Prev Previous Post   Next Post Next
  #12   Spotlight this post!  
Unread 28-04-2014, 20:35
Cyan's Avatar
Cyan Cyan is offline
Vegeta SSJ4
AKA: Sayan Dutta
FRC #2642 (Pitt Pirates)
Team Role: Programmer
 
Join Date: Apr 2014
Rookie Year: 2014
Location: Utopia
Posts: 27
Cyan is an unknown quantity at this point
Re: swerve math quiz

Lets say a, b, c, and d are in meters (because I personally like meters).

Corner 1 has a speed of ω√(b²+c²) in meters per second and angle of arctan(c/b)+π/2 in radians.
Corner 2 has a speed of ω√(a²+c²) in meters per second and angle of arctan(c/a)+π/2 in radians.
Corner 3 has a speed of ω√(a²+d²) in meters per second and angle of arctan(d/a)+π/2 in radians.
Corner 4 has a speed of ω√(b²+d²) in meters per second and angle of arctan(d/b)+π/2 in radians.


Work: (Yes I'm lazy)
http://i.imgur.com/xCsYXzw.jpg?1

For the sake of simplicity, we'll call "n" the line segment that ends at any corner of the robot and the point of rotation. Create a right triangle with n as its hypotenuse. We can call the angle in the right triangle closest to the robot, the arctangent of the opposite leg divided by the adjacent leg. Then we add pi/2 radians to find the angle of the ray perpendicular to n.

Finding the rotational speed, we first create a circle with its center at the point of rotation and n as its radius. With the right triangle from the last paragraph, n can be found with the Pythagorean Theorem, where n is the square root of the sum of the squares of the two legs. Because n is the radius of the triangle, and we want the speed of the robot in ω radians per second, we can multiply ω by the radius to get the tangential speed.

Last edited by Cyan : 28-04-2014 at 21:57.
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:07.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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