Go to Post Don't worry about where you will be. Just consider youself lucky for being where you have been. - sanddrag [more]
Home
Go Back   Chief Delphi > Other > VEX
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 24-11-2006, 20:43
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: vex jumpers

One way is to take a look at the value of certain digital inputs - those without a jumper will have a value of "1" and those with a jumper will have the value "0". Then, at the very start of your program, determine the value of the digital inputs - let's say you use 3 inputs, that will give you up to 8 different modes, depending on the jumpers. Each additional input doubles the number of modes.

Does that help??

Don
__________________

I am N2IRZ - What's your callsign?

Last edited by DonRotolo : 25-11-2006 at 19:39. Reason: Spellling
Reply With Quote
  #2   Spotlight this post!  
Unread 25-11-2006, 00:12
TheOtherGuy's Avatar
TheOtherGuy TheOtherGuy is offline
Unregistered User
AKA: Kevin Forbes
FRC #4183 (Bit Buckets)
Team Role: Engineer
 
Join Date: Jul 2006
Rookie Year: 2006
Location: Tucson, AZ
Posts: 408
TheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond repute
Re: vex jumpers

Hey cool, it works! thanks! I did have to do one thing though; I tried putting the jumpers in the digital/analog section of the microcontroller after changing the first 3 to digital inputs, but it turns out you have to put them in the interrupt ports (which are digital inputs anyway)

but again, thanks!
__________________
Reply With Quote
  #3   Spotlight this post!  
Unread 25-11-2006, 19:43
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,998
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: vex jumpers

One point about the inputs: All analog iunputs must have lower input numbers than any digital inputs or outputs.

So, the first (lowest numbered) ports are analog inputs, the next few are digital outputs, and the last few are digital inputs. Of ocurse, if you don't have analog inputs or digital outputs, they can all be digital inputs, but...

...in most cases, your jumpered ports should be 16, 15, 14 etc.

Don
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #4   Spotlight this post!  
Unread 26-11-2006, 22:58
TheOtherGuy's Avatar
TheOtherGuy TheOtherGuy is offline
Unregistered User
AKA: Kevin Forbes
FRC #4183 (Bit Buckets)
Team Role: Engineer
 
Join Date: Jul 2006
Rookie Year: 2006
Location: Tucson, AZ
Posts: 408
TheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond repute
Re: vex jumpers

I have 2 more questions (sorry, I like MPLab but I'm new to using it with sensors and recievers.)

1. How do you recieve data from 2 recievers in MPLab and...
2. How would you program an optical shaft encoder in MPLab?

thanks in advance for help (we need it soon!)
__________________
Reply With Quote
  #5   Spotlight this post!  
Unread 27-11-2006, 10:32
EHaskins EHaskins is offline
Needs to change his user title.
AKA: Eric Haskins
no team (CARD #6 (SCOE))
Team Role: College Student
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Elkhorn, WI USA
Posts: 998
EHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond reputeEHaskins has a reputation beyond repute
Send a message via MSN to EHaskins
Re: vex jumpers

1. There are seperate names for the controlls on the second remote. I can't remember them now, but if you look at the IFI aliases file you should be able to find them.
2. If you're using the VEX encoder it very simple. You need to connect your encoder output to one of the interupt ports on your robot. Then setup an intterupt handler that just increments a variable.

If you're using non-VEX quadrature encoders you should look at Kevin's encoder code from 2005(www.kevin.org/frc/2005).
__________________
Eric Haskins KC9JVH
Reply With Quote
  #6   Spotlight this post!  
Unread 27-11-2006, 23:48
TheOtherGuy's Avatar
TheOtherGuy TheOtherGuy is offline
Unregistered User
AKA: Kevin Forbes
FRC #4183 (Bit Buckets)
Team Role: Engineer
 
Join Date: Jul 2006
Rookie Year: 2006
Location: Tucson, AZ
Posts: 408
TheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond reputeTheOtherGuy has a reputation beyond repute
Re: vex jumpers

I can't seem to find any separate names for the second receiver, but I did see that there are 12 pwm inputs (7-12 possibly for the second transmitter/receiver?)...


...ah, yes, I changed one of the inputs to 12 and channel 6 of the second receiver controlled the motor that the first one was controlling originally at 6. Thanks for the help!
__________________
Reply With Quote
Reply


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
2006 WIRED Vex Challenge and Milwaukee Vex League Kevin Kolodziej Off-Season Events 15 04-12-2006 09:59
Vex Announcement: FIRST Vex Challenge Extended for 2006-2007 KathieK FIRST Tech Challenge 14 30-07-2006 23:42
where to get jumpers John Gutmann Technical Discussion 2 30-07-2006 17:54
VEX EDUbot hybrid or $50.00 VEX kit? Tazlikesrobots Robot Showcase 15 13-08-2005 22:12
autonomous jumpers pakrat Programming 3 12-02-2005 18:19


All times are GMT -5. The time now is 04:14.

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