Go to Post No way thats Dean... he didn't give an hour long speech :p - AndyB [more]
Home
Go Back   Chief Delphi > Other > FIRST Tech Challenge
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 14-04-2006, 14:45
colin340 colin340 is offline
human
AKA: Colin Nobles
FRC #0148
Team Role: Teacher
 
Join Date: May 2005
Rookie Year: 2005
Location: rochester
Posts: 432
colin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond repute
Send a message via AIM to colin340
pic: kiwi vex robot

__________________
61 77 77 20 77 69 74 74 6c 65 20 62 61 62 79 20 63 6f 6e 64 6f 72 20 69 73 20 72 65 61 64 69 6e 67 20 43 44
Reply With Quote
  #2   Spotlight this post!  
Unread 14-04-2006, 14:47
TheNotoriousKid's Avatar
TheNotoriousKid TheNotoriousKid is offline
Registered User
AKA: Shane O
FRC #0025 (Raider Robotix)
Team Role: Mechanical
 
Join Date: Jan 2005
Rookie Year: 2004
Location: North Brunswick
Posts: 55
TheNotoriousKid is just really niceTheNotoriousKid is just really niceTheNotoriousKid is just really niceTheNotoriousKid is just really niceTheNotoriousKid is just really nice
Send a message via AIM to TheNotoriousKid
Re: pic: kiwi vex robot

how does it move forward
Reply With Quote
  #3   Spotlight this post!  
Unread 14-04-2006, 14:50
Arkorobotics's Avatar
Arkorobotics Arkorobotics is offline
Robots!
AKA: Ara Kourchians
FRC #0589 (FalkØn)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: La Crescenta, CA
Posts: 417
Arkorobotics is a splendid one to beholdArkorobotics is a splendid one to beholdArkorobotics is a splendid one to beholdArkorobotics is a splendid one to beholdArkorobotics is a splendid one to beholdArkorobotics is a splendid one to beholdArkorobotics is a splendid one to behold
Send a message via AIM to Arkorobotics
Re: pic: kiwi vex robot

Woah, this is a smart design! It's small, and the structure doesn't look flimsy. How does it run?

Can you upload a video? I would like to show my friends the kiwi drive in action
__________________
2007 Rockwell Automation Innovation in Control Award winners (Southern California Regional)
Crescenta Valley High School Team 589
http://www.arkorobotics.com My Blag


3.141592653589793238462643383275902884197 <- Current memorization of Pi
Callsign: N6ARA

Last edited by Arkorobotics : 14-04-2006 at 14:58.
Reply With Quote
  #4   Spotlight this post!  
Unread 14-04-2006, 14:52
Greg Perkins's Avatar
Greg Perkins Greg Perkins is offline
7 years, allready!!???!?!?!
AKA: Mongo
no team
Team Role: Alumni
 
Join Date: Feb 2002
Rookie Year: 2000
Location: Nashua, NH
Posts: 1,203
Greg Perkins has a reputation beyond reputeGreg Perkins has a reputation beyond reputeGreg Perkins has a reputation beyond reputeGreg Perkins has a reputation beyond reputeGreg Perkins has a reputation beyond reputeGreg Perkins has a reputation beyond reputeGreg Perkins has a reputation beyond reputeGreg Perkins has a reputation beyond reputeGreg Perkins has a reputation beyond reputeGreg Perkins has a reputation beyond reputeGreg Perkins has a reputation beyond repute
Send a message via AIM to Greg Perkins Send a message via MSN to Greg Perkins Send a message via Yahoo to Greg Perkins
Re: pic: kiwi vex robot

Quote:
Originally Posted by TheNotoriousKid
how does it move forward
Magic. Hahaha, I'm kidding; actually there are three "omni-wheels" that are located at 120 degrees from each other, and due to the angle of the wheels, when two are driven the third acts as a caster. It's all got to do with the vectors of the machine, and since I do not know the formulas off the top of my head, I cannot explain it in full detail. If you want, search "kiwi drive" or "holonomic drive' on delphi here.
__________________
myResume -2004: PARC Referee; Beantown Staff; Battlecry Referee; Summer Frenzy Head Referee; River Rage Head Referee, 2005: Pittsburgh Regional Referee; PARC Referee


XBOX Live Gamertag = TrixAre4Kidss
Reply With Quote
  #5   Spotlight this post!  
Unread 14-04-2006, 15:36
Greg Needel's Avatar Unsung FIRST Hero
Greg Needel Greg Needel is offline
REVving up for a new season
FRC #2848 (All-sparks)
Team Role: Engineer
 
Join Date: Jan 2002
Rookie Year: 2002
Location: Dallas, TX
Posts: 3,104
Greg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond reputeGreg Needel has a reputation beyond repute
Re: pic: kiwi vex robot

colin,

does this mean you are going to enter the vex comp at the Ra Cha Cha this year?


Greg
__________________
Greg Needel│www.robogreg.com
Co-founder REV Robotics LLC www.REVrobotics.com
2014 FRC World Champions with 254, 469, & 74
Reply With Quote
  #6   Spotlight this post!  
Unread 14-04-2006, 15:57
colin340 colin340 is offline
human
AKA: Colin Nobles
FRC #0148
Team Role: Teacher
 
Join Date: May 2005
Rookie Year: 2005
Location: rochester
Posts: 432
colin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond repute
Send a message via AIM to colin340
Re: pic: kiwi vex robot

it works like a champ with some code from Tom Bottiglieri it should be allot easier to control as for computation I will problem not but team 340 is working on starting a 9th grade team

thank you tom Bottiglieri and Greg Perkins for advise
__________________
61 77 77 20 77 69 74 74 6c 65 20 62 61 62 79 20 63 6f 6e 64 6f 72 20 69 73 20 72 65 61 64 69 6e 67 20 43 44

Last edited by colin340 : 14-04-2006 at 16:01.
Reply With Quote
  #7   Spotlight this post!  
Unread 14-04-2006, 16:12
billbo911's Avatar
billbo911 billbo911 is online now
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,353
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: pic: kiwi vex robot

Quote:
Originally Posted by colin340
it works like a champ with some code from Tom Bottiglieri it should be allot easier to control as for computation I will problem not but team 340 is working on starting a 9th grade team

thank you tom Bottiglieri and Greg Perkins for advise
With Tom's permission, could you possibly post the section of code that makes the magic work? PLEASE!!!!
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #8   Spotlight this post!  
Unread 14-04-2006, 16:24
Tom Bottiglieri Tom Bottiglieri is offline
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
 
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,186
Tom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond reputeTom Bottiglieri has a reputation beyond repute
Re: pic: kiwi vex robot

Quote:
Originally Posted by billbo911
With Tom's permission, could you possibly post the section of code that makes the magic work? PLEASE!!!!
Well credit needs to be given where it's deserved. I got the equations for my kiwi code from the living genious, Joel Johnson.

Anyway, here's what you need to do to make it work:

PHP Code:
//Make sure variables are unsigned ints... rollovers WILL occur with signed ints
unsigned int trans_xtrans_yrot;

//Grab inputs (x,y coords in rectangular coordinates and rotation rate)
trans_x 254 PWM_in1
trans_y 254 PWM_in2
rot 254 PWM_in4;      

//Limit vector length to 127
trans_x = (unsigned int)(37+(254*trans_x)/359);
trans_y = (unsigned int)(37+(254*trans_y)/359);

//Assign and limit wheel outputs
wheel_1  = (unsigned char)limit( (((2*trans_x) + rot) / 3), 0254); 
wheel_2 = (unsigned char)limit( ((601 rot trans_x - (168*trans_y/97)) / 3), 0254); 
wheel_3 = (unsigned char)limit( ((161 rot trans_x + (168*trans_y/97)) / 3) , 0254); 
This assumes you have a limit function, which limits an input value to upper and lower bounds.

PHP Code:
signed int limit(signed int valuesigned int minsigned int max
 { 
      if (
value min
      { 
           
value min
      } else if (
value max
      { 
           
value max
      } 
  
      return 
value
 } 
That should be all you need, and it should work. (It took me about 2 hours to figure out the variables needed to be unsigned. )
Reply With Quote
  #9   Spotlight this post!  
Unread 14-04-2006, 16:50
billbo911's Avatar
billbo911 billbo911 is online now
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,353
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: pic: kiwi vex robot

Quote:
Originally Posted by Tom Bottiglieri
Well credit needs to be given where it's deserved. I got the equations for my kiwi code from the living genious, Joel Johnson.

Anyway, here's what you need to do to make it work:

PHP Code:
//Make sure variables are unsigned ints... rollovers WILL occur with signed ints
unsigned int trans_xtrans_yrot;

//Grab inputs (x,y coords in rectangular coordinates and rotation rate)
trans_x 254 PWM_in1
trans_y 254 PWM_in2
rot 254 PWM_in4;      

//Limit vector length to 127
trans_x = (unsigned int)(37+(254*trans_x)/359);
trans_y = (unsigned int)(37+(254*trans_y)/359);

//Assign and limit wheel outputs
wheel_1  = (unsigned char)limit( (((2*trans_x) + rot) / 3), 0254); 
wheel_2 = (unsigned char)limit( ((601 rot trans_x - (168*trans_y/97)) / 3), 0254); 
wheel_3 = (unsigned char)limit( ((161 rot trans_x + (168*trans_y/97)) / 3) , 0254); 
This assumes you have a limit function, which limits an input value to upper and lower bounds.

PHP Code:
signed int limit(signed int valuesigned int minsigned int max
 { 
      if (
value min
      { 
           
value min
      } else if (
value max
      { 
           
value max
      } 
  
      return 
value
 } 
That should be all you need, and it should work. (It took me about 2 hours to figure out the variables needed to be unsigned. )
Now I know why I like Tom (oh yeah, and Joe too ) so much!!

The problem is, now I have to go buy some omni wheels for this weekends project

BTW. Do you know how the constant values were determined (ie. 37, 359, 601, 168, 97, 161)? Also, I see you are using PWM_in4 for the rotation value. I assume this is off the left stick X-axis. Knowing these can help me modify this stuff for future projects.

Thanks again!!!!
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #10   Spotlight this post!  
Unread 14-04-2006, 16:54
s_forbes's Avatar
s_forbes s_forbes is online now
anonymous internet person
FRC #0842 (Falcon Robotics)
Team Role: Engineer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Phoenix, AZ
Posts: 1,128
s_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond reputes_forbes has a reputation beyond repute
Re: pic: kiwi vex robot

I like that design! It's so compact and sturdy, good job!
Reply With Quote
  #11   Spotlight this post!  
Unread 14-04-2006, 16:58
colin340 colin340 is offline
human
AKA: Colin Nobles
FRC #0148
Team Role: Teacher
 
Join Date: May 2005
Rookie Year: 2005
Location: rochester
Posts: 432
colin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond reputecolin340 has a reputation beyond repute
Send a message via AIM to colin340
Re: pic: kiwi vex robot

Quote:
Originally Posted by s_forbes
I like that design! It's so compact and sturdy, good job!
yes this is so much better then my old frame it's very stiff and compact
__________________
61 77 77 20 77 69 74 74 6c 65 20 62 61 62 79 20 63 6f 6e 64 6f 72 20 69 73 20 72 65 61 64 69 6e 67 20 43 44
Reply With Quote
  #12   Spotlight this post!  
Unread 15-04-2006, 14:10
billbo911's Avatar
billbo911 billbo911 is online now
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,353
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: pic: kiwi vex robot

I just got this working this morning. I tried for hours last night to code it with EasyC. Apparently doing the math wasn't so easy with EasyC. I'll figure it out later today. What you see it the video is coded with MPLAB in about 20 minutes.

Vex Kiwi Drive




__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist

Last edited by billbo911 : 15-04-2006 at 16:11.
Reply With Quote
  #13   Spotlight this post!  
Unread 15-04-2006, 15:39
Steve0100's Avatar
Steve0100 Steve0100 is offline
Steve0100
no team
 
Join Date: Apr 2006
Location: PDX
Posts: 11
Steve0100 is on a distinguished road
Re: pic: kiwi vex robot

Very nice design!

There seem to be many variations of Vex holomic robots out there, probably because they are so fun to drive. Here's the beginnings of my first Vex bot, thanks to the RS sale:



Here's the underside:



My goal was to design a robot as clean and symmetrical as I could. It took one Starter kit and an additional hardware kit. The orange spacers in the motor mount bracket are the only non-vex parts, from an Erector set. They are conveniently in-between sizes of the vex plastic spacers.

To avoid having to support the axles on the outer sides of the wheels, I set back the motor with these spacers to allow a collar to hold in and support the axle on the motor side inside the bracket.

I've added sensors and have devised a scheme (still in the process of Implementation ) to have the robot detect walls and "bounce" off them before hitting with an angle of reflection equal to that of the angle of incidence. I'd like to put it inside a boxed-in area and have it bounce around like an billiard ball for robotics demos.
Reply With Quote
  #14   Spotlight this post!  
Unread 15-04-2006, 16:09
billbo911's Avatar
billbo911 billbo911 is online now
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,353
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: pic: kiwi vex robot

Quote:
Originally Posted by Steve0100
Very nice design!


I've added sensors and have devised a scheme (still in the process of Implementation ) to have the robot detect walls and "bounce" off them before hitting with an angle of reflection equal to that of the angle of incidence. I'd like to put it inside a boxed-in area and have it bounce around like an billiard ball for robotics demos.
Thanks.

I really like how clean your assembly looks!

On sensors.... from my experience with the the Vex Ultrasonics.
They do a good job of sensing objects directly in front as long as object has a surface that is perpendicular to the sensor. In other words, when approaching a wall at an angle, the sensor wont pick it up very well at all.
Additionally, if you do put your bot in a box, the walls will bounce the 40KHz signal pulses quite a bit, causing misreadings from the controller.
Here's a thought. Try using the light sensors from the Line Following kit. With a little experimentation, you should be able to fine tune an algorithm to detect the relative distance from the wall based on the amount of light being reflected off of it. The biggest problem you will face with that is consistent light levels, and that may render this option useless. (Remember the difficulties with the CMU cam. and reflected light in 2005?)
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #15   Spotlight this post!  
Unread 15-04-2006, 16:31
Joel J's Avatar
Joel J Joel J is offline
do you..
no team
 
Join Date: May 2001
Rookie Year: 2000
Location: San Jose, CA
Posts: 1,445
Joel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond reputeJoel J has a reputation beyond repute
Re: pic: kiwi vex robot

Quote:
Originally Posted by billbo911
Now I know why I like Tom (oh yeah, and Joe too ) so much!!

The problem is, now I have to go buy some omni wheels for this weekends project

BTW. Do you know how the constant values were determined (ie. 37, 359, 601, 168, 97, 161)? Also, I see you are using PWM_in4 for the rotation value. I assume this is off the left stick X-axis. Knowing these can help me modify this stuff for future projects.

Thanks again!!!!
Here's the "documentation." Its in the PBASIC file that I used to program the KIWI drive 229 did a year or so ago.

Code:
'KIWI Code Overview
'------------------
'
'Vx, Vy, and w are on the interval [-127, 127], but the inputs p2_x, p2_y, p1_x are on the interval [0, 254], 
'so we compensate by setting Vx, Vy, and w to the shifted version of the input:
'
'	trans_x = p2_x
'	trans_y = p2_y
'	rot 	= p1_x
'
'	Vx = trans_x - 127
'	Vy = trans_y - 127
'	w  = rot - 127
'
'The kiwi system is characterized by the equation:
'
'	[ Vx ]		[  1	 	-1/2		-1/2	  ]	[ V1 ]
'	[ Vy ]	=	[  0		-sqrt(3)/2	sqrt(3)/2 ]	[ V2 ]
'	[  w ]		[  1		1		1	  ]	[ V3 ]
'
'	[1x3 matrx] = 	[3x3 matrix] * [1x3 matrix]
'
'where L is a length constant, Vx, Vy, and w are the system translation velocity components, and the system 
'angular velocity, and V1 is the wheel velocity vector at angle 0 degrees, V2 the wheel velocity vector at 
'angle -120 degrees, and V3 the wheel velocity vector at 120 degrees.

'
'Solving this system for V1, V2, and V3 yields the following equations of motion:
'
'	V1 = (2Vx	      + w) / 3
'	V2 = (-Vx - SQR(3)*Vy + w) / 3
'	V3 = (-Vx + SQR(3)*Vy + w) / 3
'
'(NOTE: These equations operate on the assumption that the magnitude of the desired velocity vector can be 
'no greater than 127. That is, the hypotenuse of the triangle formed by the trans_x and trans_y variable 
'cannot exceed 127. To ensure that this condition is met, one has to convert the rectangular 
'coordinates (trans_x, trans_y) into polar coordinates (V_desired, theta), limit V_desired to 127, then 
'back-calculate the new values of trans_x and trans_y based on the new value of V_desired and the already 
'existent theta. The code that does this has been placed exactly before this large block of text.)
'
'(NOTE: UPDATE! The Basic Stamp doesn't like the math required to make the previous note a reality, so I
'am using a crude solution: I scale down all input values by 127*SQR(2) to ensure that the largest vector 
'magnitude doesn't exceed 127.)
'
'The output from each equation (V1, V2, V3) is on the interval [-127, 127], but the desired outputs, 
'drill_1, drill_2, drill_3 are all on the interval [0, 254], so we compensate by setting drill_1, drill_2, 
'and drill_3 to the shifted version of V1, V2, and V3:
'
'	drill_1 = V1 + 127
'	drill_2 = V2 + 127
'	drill_3 = V3 + 127
'
'And that's it! Plug in all the variables, and we end up with the equations of motion that follow 
'(note: fractions were expanded out to compensate for the integer based calculation done by the stamp):

'Motion equations
__________________
Joel Johnson

Division By Zero (229) Alumni, 2003-2007
RAGE (173) Alumni, 1999-2003
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using WPILib on a Vex robot koenig3456 Programming 2 02-05-2006 14:56
pic: Robot? What Robot? CD47-Bot Robot Showcase 13 10-04-2004 07:08
pic: 294's First Inventor Robot (pic 1)... CD47-Bot Robot Showcase 4 10-03-2004 19:34
pic: Closeup of the robot hanging on robot CD47-Bot Extra Discussion 16 09-03-2004 18:27
XCats - robot pic on our website archiver 2001 0 24-06-2002 01:06


All times are GMT -5. The time now is 16:31.

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