Go to Post What I would really love to see is having the teams try to solve a problem that is real scientists are trying to solve right now. Wouldn't it be cool if a team came up with a robot design that could solve one of the world's worst problems? Talk about FIRST publicity! - Beth Sweet [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 07-03-2006, 16:42
HRobotics's Avatar
HRobotics HRobotics is offline
Havergal College Robotics Team
AKA: Tracy, Amanda and Katrina
FTC #0156 (PiRobotics)
Team Role: Leadership
 
Join Date: Oct 2005
Rookie Year: 2008
Location: Toronto, Ontario, Canada
Posts: 18
HRobotics will become famous soon enoughHRobotics will become famous soon enough
Programming VEX Controller

Hi;

We're having a few problems programming our controller with the VEX easyC (we realise that the VEX season is over, but we're still working on it, so we're still having issues). (We've searched this issue quite a number of times... couldn't find anything... if there are any other threads that deal with this, we'd be grateful for a link.)

So the scenario is: We would like to use 5 motors in our robot. 2 motors will be controlled by 1 joystick that makes it go up-down-left-right (to control the robot). The other 3 will be for the arm.

So the problem is: We want to use 2 motors to move the arm forwards and backwards ; the other, to move the scoop up and down. If we use the arcade (-2 motor) for the arm, we wanted to make the arm go back and forward with the *up arrow* and *down arrow* of the joystick. We wanted to use *right arrow* and *left arrow* for the claw, but when one turns, the joystick goes to the left or right, and that causes both motors to go in reverse. This will cause problems. (I really hope that made sense...)

We'd also like to know if there is a way to program the controller without using the preset functions like arcade or tank. If there isn't, is there an alternate way to address this problem?

Thanks,
HC Robotics (Katherine + Hilary).
__________________
Tracy, Amanda and Katrina

PiRobots - We're on FIRE!
  #2   Spotlight this post!  
Unread 07-03-2006, 19:28
Cuog's Avatar
Cuog Cuog is offline
Registered Linux User: 390661
AKA: Alex
FRC #0422
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 2004
Location: Richmond, Virginia
Posts: 852
Cuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond reputeCuog has a reputation beyond repute
Send a message via AIM to Cuog
Re: Programming VEX Controller

you can program the VEX with MPLAB and the mcc18 compiler look around vexrobotics.com and some other vex sites and you should come accross the default code and the IFI Loader you will need
__________________
KK4KQO
http://voltair.us
Too many projects, too little time.
  #3   Spotlight this post!  
Unread 12-03-2006, 17:34
Kingofl337's Avatar
Kingofl337 Kingofl337 is offline
You didn't see anything....
AKA: Adam
FRC #0501 (Power Knights)
Team Role: Mentor
 
Join Date: Feb 2005
Rookie Year: 1998
Location: Manchester, NH
Posts: 861
Kingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond reputeKingofl337 has a reputation beyond repute
Send a message via Yahoo to Kingofl337
Re: Programming VEX Controller

You can write directly to the set motor function in EasyC. Just get the data from RX Input assign it to a variable and then play with it as you wish and dump
the value back into the motor.


//Could someone move this to the VEX EasyC forum?

P.S. A64 all the way.
  #4   Spotlight this post!  
Unread 21-03-2006, 22:23
Jackel148's Avatar
Jackel148 Jackel148 is offline
Registered User
FTC #0160 (Impulse)
Team Role: Programmer
 
Join Date: Mar 2006
Rookie Year: 2005
Location: Waterbury
Posts: 4
Jackel148 is an unknown quantity at this point
Cool Re: Programming VEX Controller

Quote:
Originally Posted by HRobotics
Hi;

We're having a few problems programming our controller with the VEX easyC (we realise that the VEX season is over, but we're still working on it, so we're still having issues). (We've searched this issue quite a number of times... couldn't find anything... if there are any other threads that deal with this, we'd be grateful for a link.)

So the scenario is: We would like to use 5 motors in our robot. 2 motors will be controlled by 1 joystick that makes it go up-down-left-right (to control the robot). The other 3 will be for the arm.

So the problem is: We want to use 2 motors to move the arm forwards and backwards ; the other, to move the scoop up and down. If we use the arcade (-2 motor) for the arm, we wanted to make the arm go back and forward with the *up arrow* and *down arrow* of the joystick. We wanted to use *right arrow* and *left arrow* for the claw, but when one turns, the joystick goes to the left or right, and that causes both motors to go in reverse. This will cause problems. (I really hope that made sense...)

We'd also like to know if there is a way to program the controller without using the preset functions like arcade or tank. If there isn't, is there an alternate way to address this problem?

Thanks,
HC Robotics (Katherine + Hilary).
We were having the same problem you might find it easier if you just put the turning motions or the forward and backward motions on the switch that is on the bottom of the controler...the problem is that the joysticks are two sensative to the other motions as well (such as up and down)

let me know if you need any more help if you want just email me the easy -C from a screen shot and I will look at it for you

but know their are no other presets to get aaround the tank and arcade sorry

I hope this helps

Jackel
  #5   Spotlight this post!  
Unread 21-03-2006, 23:25
artdutra04's Avatar
artdutra04 artdutra04 is offline
VEX Robotics Engineer
AKA: Arthur Dutra IV; NERD #18
FRC #0148 (Robowranglers)
Team Role: Engineer
 
Join Date: Mar 2005
Rookie Year: 2002
Location: Greenville, TX
Posts: 3,078
artdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond reputeartdutra04 has a reputation beyond repute
Re: Programming VEX Controller

Code:
          Left Joystick:                           Right Joystick:
           [drive fwd]                               [arm up]
                ^                                       ^ 
                |                                       |
[drive left]<------->[drive right]       [claw open]<------->[claw close] 
                |                                       |
                v                                       v
           [drive rev]                              [arm down]
Using the joystick as mapped above, try using this code:
Code:
#include "Main.h"

void main ( void )
{
      unsigned char arm; // Create a unsigned char variable called arm

      while ( 1 )
      {
            // The Arcade Drive Code Block 
            // Connect The Left Drive Motor to Port 1 
            // Connect The Right Drive Motor to Port 2 
            Arcade2 ( 1 , 3 , 4 , 1 , 2 , 0 , 0 ) ;
            // The Arm Drive Code 
            // Connect the Arm Motors to Ports 3 and 4 
            arm = GetRxInput ( 1 , 2 ) ;
            SetPWM ( 3 , arm ) ;
            SetPWM ( 4 , arm ) ;
            // The Claw / Grabber Code 
            // Connect the Claw Motor to Port 5 
            MotorRcControl ( 1 , 1 , 5 , 0 ) ;
      }
}
__________________
Art Dutra IV
Robotics Engineer, VEX Robotics, Inc., a subsidiary of Innovation First International (IFI)
Robowranglers Team 148 | GUS Robotics Team 228 (Alumni) | Rho Beta Epsilon (Alumni) | @arthurdutra

世上无难事,只怕有心人.
Closed Thread


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
Programming Vex w/ MPLab dababyjebus FIRST Tech Challenge 27 25-04-2008 09:11
VEX programming Gene F Programming 14 08-08-2006 22:21
Vex controller - outputs not working jrecht FIRST Tech Challenge 2 06-02-2006 23:26
Vex bot programming Q's BaldwinNYRookie Programming 6 09-10-2005 17:45
Programming Vex Starter Kit To Recieve From Serial Port firetrap FIRST Tech Challenge 0 26-09-2005 17:27


All times are GMT -5. The time now is 18:40.

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