|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#16
|
|||||
|
|||||
|
Re: pic: it's a Vex Holonomic Drive!
Art,
You have done it again..........The talk from the Vex guys during Rosie team meetings has always drifted to talking about what "Art from Gus" has done this week with his Vex kit. I can hardly wait to see the Vex snowcat. Will it be full size?? ![]() |
|
#17
|
|||||
|
|||||
|
Re: pic: it's a Vex Holonomic Drive!
Seeing this thing play Savage Soccer this past Saturday was a real treat. The looks on the FLL kids' faces when this thing started driving were priceless!
Last edited by ahecht : 20-12-2005 at 17:37. |
|
#18
|
|||||
|
|||||
|
Re: pic: it's a Vex Holonomic Drive!
do you have the code for that robot?
i would like to make something like this. i was wondering if i could see your code for it. |
|
#19
|
||||
|
||||
|
Re: pic: it's a Vex Holonomic Drive!
What did you use to bend and cut the metal and stuff? On the poster that comes with the kit it describes a machine that bends and cuts metal.
They don't sell anything like that at vexlabs.com |
|
#20
|
|||||
|
|||||
|
Re: pic: it's a Vex Holonomic Drive!
oh dang that is sexy
|
|
#21
|
||||
|
||||
|
Re: pic: it's a Vex Holonomic Drive!
Any wanna help me talk Alex into letting me and him build a VEX Kiwi bot?
|
|
#22
|
|||||
|
|||||
|
Re: pic: it's a Vex Holonomic Drive!
As requested, here is the code from EasyC ver 2.0 that I used for my Vex Holonomic Drive robot. The main drive controls are relative holonomic drive, which is relative to the current position of the robot. So if you push the left joystick to the left, the robot will go to its left. The code works well, and for a lot of people who I let drive this, it was a lot easiar for them to control than the tank drive on my Triple Play / Space Elevator vex robot.
Here's the code: Code:
#include "Main.h"
void main ( void )
{
int LF; // Left Front
int RF; // Right Front
int LR; // Left Rear
int RR; // Right Rear
int leftx;
int lefty;
int rightx;
int spin;
while ( 1 )
{
// Get Data
leftx = GetRxInput ( 1 , 4 ) ; // Left Joystick, X Axis
lefty = GetRxInput ( 1 , 3 ) ; // Left Joystick, Y Axis
rightx = GetRxInput ( 1 , 1 ) ; // Right Joystick, X Axis
// Half the input signal (so code does not overflow past 255)
leftx = leftx / 2 ;
lefty = lefty / 2 ;
spin = rightx / 2 ;
// Drive Code Algorithim
LF = RR = lefty - leftx + 127 ;
RF = LR = 255 - lefty - leftx ;
RR = 255 - RR ; // Reverse Direction of RR motor
LR = 255 - LR ; // Reverse Direction of LR motor
// Spin Code Algorithim
RF = RF - spin + 63 ;
RR = RR - spin + 63 ;
LF = LF - spin + 63 ;
LR = LR - spin + 63 ;
// Code overflow prevention
if ( LF < 0 )
{
LF = 0 ;
}
else if ( LF > 255 )
{
LF = 255 ;
}
if ( RF < 0 )
{
RF = 0 ;
}
else if ( RF > 255 )
{
RF = 255 ;
}
if ( RR < 0 )
{
RR = 0 ;
}
else if ( RR > 255 )
{
RR = 255 ;
}
if ( LR < 0 )
{
LR = 0 ;
}
else if ( LR > 255 )
{
LR = 255 ;
}
// Set Motors
SetMotor ( 1 , RF ) ;
SetMotor ( 2 , LF ) ;
SetMotor ( 3 , LR ) ;
SetMotor ( 4 , RR ) ;
}
}
I'm dead serious too - I really do have like $2000 worth of Vex stuff. |
|
#23
|
|||
|
|||
|
Re: pic: it's a Vex Holonomic Drive!
I love bringing back up old topics =)
Anyways, I tried to import this code into EasyC 1.1 to see how it actually worked. To no avail though. After the code transfers to the controller, the motors seem to randomly spin at different times. I've tweaked this for numerous hours and still no luck. It would be great if someone could help on this issue. Thanks in advance P.S. I apologize if I posted this in the wrong area. Didn't want to create a new topic for something that has been discussed numerous times. |
|
#24
|
||||
|
||||
|
Re: pic: it's a Vex Holonomic Drive!
did u use just one of the joysticks to control this or some other combination? I should think about building something like that...hmm...
|
|
#25
|
|||||
|
|||||
|
Re: pic: it's a Vex Holonomic Drive!
Quote:
Also, the variable names are shorthand for which motor is controlled. RF is short for Right Front, LR is short for left rear, and so on. Make sure the your code controls the correct motors; if you were to swap two or three of the motors around, then the motors would appear to move randomly. If you are still having problems, can you add some PrintScreen commands to display the values for each motor (add them right before the SetMotor blocks, download the original code (posted here), and then post the values you are getting? Or a simpler way would be to look at each of the motors while you control the robot. When you hit forward, the motors should rotate like this: ![]() Quote:
|
|
#26
|
|||
|
|||
|
Re: pic: it's a Vex Holonomic Drive!
THAT'S PRETTY SWEET
|
|
#27
|
||||
|
||||
|
Re: pic: it's a Vex Holonomic Drive!
Quote:
|
|
#28
|
|||||
|
|||||
|
Re: pic: it's a Vex Holonomic Drive!
Quote:
|
|
#29
|
||||
|
||||
|
Re: pic: it's a Vex Holonomic Drive!
Quote:
|
|
#30
|
|||||
|
|||||
|
Re: pic: it's a Vex Holonomic Drive!
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Direct Drive Four Motor System | Collin Fultz | Technical Discussion | 42 | 02-11-2006 12:03 |
| Holonomic Drive Question | Jeff Waegelin | Technical Discussion | 12 | 20-11-2005 21:23 |
| vex programming arcade drive setting | Michael Leicht | FIRST Tech Challenge | 3 | 17-10-2005 21:26 |
| pic: Team 870 Front Drive Train | CD47-Bot | Robot Showcase | 4 | 27-02-2003 15:23 |
| pic: Team 870 Rear Drive Train | CD47-Bot | Robot Showcase | 2 | 27-02-2003 00:22 |