View unanswered posts | View active topics It is currently Wed Apr 25, 2018 4:55 am

 Page 1 of 1 [ 4 posts ]
 Print view Previous topic | Next topic
U Omnidrive Code
Author Message
Rookie

Joined: Mon Jan 03, 2011 5:40 pm
Posts: 12
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
Moderator

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
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
Rookie

Joined: Mon Jan 03, 2011 5:40 pm
Posts: 12
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
Moderator

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
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
Display posts from previous:  Sort by
 Page 1 of 1 [ 4 posts ]

#### Who is online

Users browsing this forum: No registered users and 2 guests

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

Search for:
 Jump to:  Select a forum ------------------ ROBOTC Applications    ROBOTC for LEGO MINDSTORMS       Third-party sensors    ROBOTC for CORTEX & PIC    ROBOTC for VEX IQ    ROBOTC for Arduino    Robot Virtual Worlds    Multi-Robot Communications    Issues and Bugs Competitions & Partners    Mini Urban Challenge    CS2N Robot Virtual Worlds Competitions       VEX Skyrise Competition 2014-2015       VEX Toss Up 2013-2014       FTC Block Party! 2013-2014    Competitions using VEX - BEST, TSA, VEX, and RoboFest!    FTC Programming    RoboCup Junior and Other ROBOT Competitions Virtual Brick Robotics Discussions    General Discussions    Project Discussions Off-Topic ROBOTC Forum & ROBOTC.net Suggestions/Feedback    ROBOTC Forums Suggestions/Comments    ROBOTC.net Suggestions/Comments       NXT Programming: Tips for Beginning with ROBOTC       VEX Programming: Tips for Beginning with ROBOTC    2013 Robotics Summer Of Learning       VEX Toss Up Programming Challenge       FTC Ring It Up! Programming Challenge    International Forums       Spanish Forums          ROBOTC for MINDSTORMS          ROBOTC for VEX       French Forums          ROBOTC pour Mindstorms          ROBOTC pour IFI VEX       Japanese Forums （日本語のフォーラム）       German Forums    2015 Spring Carnival Event    PLTW (Project Lead The Way)    Robotics Merit Badge    2014 Robotics Academy Summer of Learning