View unanswered posts | View active topics It is currently Sun Dec 21, 2014 2:39 am






Reply to topic  [ 4 posts ] 
U Omnidrive Code 
Author Message
Rookie

Joined: Mon Jan 03, 2011 5:40 pm
Posts: 12
Post U Omnidrive Code
I'm trying to get U omnidrive working on our robot. I've tried just turning the wheels pointing the opposite direction of the others, but that tends to make the robot swing around when strafing. I'm totally new to RobotC, so I have no idea what I would do to correct this. How would I code strafing?


Mon Jan 03, 2011 5:51 pm
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: U Omnidrive Code
I'm assuming that your wheels positioned like at 45 degree angles like this:

/ \
\ /

I'll assume that you have reflected your motors correctly and all motors moving 127 makes your robot move straight forward.

To strafe to the right, you need to make these two wheels:

/ \
\ /


move forward, and these two wheels:

/ \
\ /

move backward.

Look up how holonomic drives work to get an intuitive sense of this.
If you can't find a good explanation online, I'd be happy to explain.

_________________
sudo rm -rf /


Mon Jan 03, 2011 6:20 pm
Profile
Rookie

Joined: Mon Jan 03, 2011 5:40 pm
Posts: 12
Post Re: U Omnidrive Code
Sorry, I should have been more specific. The wheels are positioned like this:

| |
- -

That's what I meant by "U" omnidrive.


Mon Jan 03, 2011 7:50 pm
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: U Omnidrive Code
You can't make a design like that strafe straight. There is a driving force on only one side of the robot, so it will always turn. Imagine pushing on only one corner of a tissue box, and trying to make it move straight.

_________________
sudo rm -rf /


Mon Jan 03, 2011 7:57 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  



Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.