View unanswered posts | View active topics It is currently Thu Nov 27, 2014 4:12 pm






Reply to topic  [ 2 posts ] 
4 Wheel Omni-drive help 
Author Message
Rookie

Joined: Thu Nov 01, 2012 1:59 pm
Posts: 1
Post 4 Wheel Omni-drive help
The Setup
We are looking at programming a drive system that consists of 4 driven omni wheels. One on each side of the robot. (see attached diagram) This allows forward, backward, left and right slide and rotation left and right.

The Problem
When we add the code for rotation the motors do not run smoothly, it seems to stutter as it turns.

The Program
#pragma config(Motor, port2, RightMotor, tmotorServoContinuousRotation, openLoop)
#pragma config(Motor, port3, BackMotor, tmotorServoContinuousRotation, openLoop)
#pragma config(Motor, port4, LeftMotor, tmotorServoContinuousRotation, openLoop, reversed)
#pragma config(Motor, port5, FrontMotor, tmotorServoContinuousRotation, openLoop, reversed)
#pragma config(Motor, port6, RightArmMotor, tmotorVex393, openLoop)
#pragma config(Motor, port7, LeftArmMotor, tmotorVex393, openLoop, reversed)
#pragma config(Motor, port8, Bucket, tmotorServoContinuousRotation, openLoop)

task usercontrol()
{
// User control code here, inside the loop

while (true)
{
{
//Move forward and backward
{
motor[port2] = vexRT [Ch3];
motor[port4] = vexRT [Ch3];
}
//Move side to side
{
if (vexRT [Ch1] == 0)
motor[port3] = vexRT [Ch4];
motor[port5] = vexRT [Ch4];
}
//Turn left and right
{
if (vexRT [Ch1] != 0)
motor[port3] = -vexRT [Ch1];
motor[port5] = vexRT [Ch1];
}
}
}
}


Attachments:
File comment: Chassis Image
4 Wheel Omni.png
4 Wheel Omni.png [ 13.47 KiB | Viewed 2898 times ]

_________________
Todd Rathier
Mentor
Leominster High School - CTEi
Devil Dawgs Robotics Team
Fri Nov 02, 2012 8:22 am
Profile
Moderator
Moderator
User avatar

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Post Re: 4 Wheel Omni-drive help
Take a look at this tutorial that Cody made over on the VEX forums: http://polynomic3d.com/user/smith/holonomic.php

_________________
sudo rm -rf /


Fri Nov 02, 2012 10:38 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 2 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.