OCCRA
Go to Post what is FIRST?...It's about innovation, hard work, inspiration, teaching, learning, experiment, strategy, competition, meeting new people, being inspired, aiming high and changing paradigms...Really, FIRST is what you make of it. - jarowe [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 11-07-2002, 08:48 PM
necroprime necroprime is offline
Registered User
#0599 (Robodox)
 
Join Date: Nov 2002
Location: Granada Hills
Posts: 8
necroprime is an unknown quantity at this point
Does anyone have an idea on how to make a joystick program for an operating board?

I'm trying to come up with a program for an operating board that uses one joystick instead of two to maneuver the robot forwards, backwards, and turning as well. However, I'm fairly new at this (I just started AP programming C++ a couple months ago)... any and all help would be greatly appreciated.
__________________
Code:
<script language="Javascript">
<!--
alert("The answer is b");
//-->
</script>
  #2   Spotlight this post!  
Unread 11-07-2002, 09:13 PM
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
InnovationFIRST has a whitepaper on this.

Avalailable at:

http://www.innovationfirst.com/FIRST...ickControl.pdf
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #3   Spotlight this post!  
Unread 11-07-2002, 09:41 PM
evulish's Avatar
evulish evulish is offline
1010100
AKA: Grant Harding
#0084 (WATTNESS (bot: Chuck))
Team Role: Alumni
 
Join Date: Jul 2002
Location: Towanda/Wysox, PA
Posts: 1,434
evulish is just really niceevulish is just really niceevulish is just really niceevulish is just really nice
Send a message via AIM to evulish
necroprime:

FYI: Your sig is a bit odd. The code tags don't actually make the code work...it does the exact opposite, in fact. It just prints out the code in a fixed font. Sorry if you wanted it that way
__________________
I'm a professional web developer. I'm good with PHP, Perl, Java/JSP, some RoR, XML, Javascript (AJAX as well), (x)HTML, CSS, etc.. Validated code is good; fully cross-browser code is better (you comply to your users and the software they use, not the other way around. Sorry!)
  #4   Spotlight this post!  
Unread 11-08-2002, 12:32 PM
f22flyboy's Avatar
f22flyboy f22flyboy is offline
Distributor of Mayhem
#0540 (Rhythmic Disturbance)
 
Join Date: Oct 2002
Location: Richmond, VA
Posts: 199
f22flyboy will become famous soon enoughf22flyboy will become famous soon enough
unfortunately for our bot, equal spike input does not make equal output at the wheels. We put the 1 joystick drive on, and the bot was uncontrollable. Keep in mind this is our test bot, which is nothing but a piece of plywood with 2 pnuematic off-road scooter tires run by 2 drill motors. It goes maybe 30-40 mph. It was funny when we put the drills in 2nd and took off, only for it to abruptly do a 360, which flung the battery off and about 30 feet away
__________________
Godwin Robotics Association- Rhythmic Disturbance

Team 540 Forums

FIRST Look... FIRST Shot... FIRST Kill.
  #5   Spotlight this post!  
Unread 11-08-2002, 12:56 PM
FotoPlasma FotoPlasma is offline
\: |
no team
 
Join Date: Jul 2001
Rookie Year: 2001
Location: San Jose
Posts: 1,900
FotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond reputeFotoPlasma has a reputation beyond repute
Send a message via AIM to FotoPlasma
Quote:
Originally posted by f22flyboy
unfortunately for our bot, equal spike input does not make equal output at the wheels. We put the 1 joystick drive on, and the bot was uncontrollable. Keep in mind this is our test bot, which is nothing but a piece of plywood with 2 pnuematic off-road scooter tires run by 2 drill motors. It goes maybe 30-40 mph. It was funny when we put the drills in 2nd and took off, only for it to abruptly do a 360, which flung the battery off and about 30 feet away
If I recall correctly, the drill motors don't run at the same speeds, forwards and backwards. There were three in the kit, last year, two that were regular, spinning a little faster going forward, and one that was either modified or manufactured differently, which spun at the same speed as the other two did forward, in reverse. I'm not sure if this really applies to your situation (I guess I just thought it did), but I thought I'd mention it.

Again, if I recall correctly, speed controllers are called "victors", and relays are called "spikes".
__________________
I played hacky sack with Andy Baker.

2001-2004: Team 258, The Sea Dawgs
2005: Team 1693, The Robo Lobos
  #6   Spotlight this post!  
Unread 11-08-2002, 02:38 PM
Adam Y.'s Avatar
Adam Y. Adam Y. is offline
Adam Y.
no team (?????)
 
Join Date: Mar 2002
Location: Long Island
Posts: 1,979
Adam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to behold
Send a message via AIM to Adam Y.
Quote:
Again, if I recall correctly, speed controllers are called "victors", and relays are called "spikes".
Thats correct.
__________________
If either a public officer or any one else saw a person attempting to cross a bridge which had been ascertained to be unsafe, and there were no time to warn him of his danger, they might seize him and turn him back without any real infringement of his liberty; for liberty consists in doing what one desires, and he does not desire to fall into the river. -Mill
  #7   Spotlight this post!  
Unread 11-08-2002, 05:43 PM
Clark Gilbert's Avatar
Clark Gilbert Clark Gilbert is offline
Registered User
no team
Team Role: Alumni
 
Join Date: May 2001
Rookie Year: 2000
Location: Columbus, IN
Posts: 1,946
Clark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond reputeClark Gilbert has a reputation beyond repute
One thing for you to try after u get everything figured out is to have it so your robot can drive with 1 stick or 2. I know we had this last year, and to switch it to one stick all we did was move a switch on the operators panel. Not sure how we did it, but i thought it was pretty cool.
__________________
Purdue Alumni
Cummins, Inc.
  #8   Spotlight this post!  
Unread 11-08-2002, 06:35 PM
rbayer's Avatar Unsung FIRST Hero
rbayer rbayer is offline
Blood, Sweat, and Code
no team (Teamless Orphan)
 
Join Date: Mar 2002
Rookie Year: 2001
Location: Minnetonka, MN
Posts: 1,087
rbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of lightrbayer is a glorious beacon of light
Send a message via AIM to rbayer
Quote:
Originally posted by Clark Gilbert
One thing for you to try after u get everything figured out is to have it so your robot can drive with 1 stick or 2. I know we had this last year, and to switch it to one stick all we did was move a switch on the operators panel. Not sure how we did it, but i thought it was pretty cool.
Some code for your viewing pleasure:

Quote:
if (p3_sw_aux1=1) then twoJoystick
oneJoystick:
PWM1 = (((2000 + p1_y - p1_x + 127) Min 2000 Max 2254) - 2000)
PWM2 = (((2000 + p1_y + p1_x - 127) Min 2000 Max 2254) - 2000)
goto endDrive
twoJoysticks:
PWM1=p1_y
PWM2=p2_y
endDrive:

With this code, whenever port 3 aux1 is pressed, you will drive with two joysticks, but when it isn't pressed, you only need one. Port 3 aux1 could be anything you want it to be, but most often it would be a switch of some sort on your "button box."
__________________
New C-based RoboEmu2 (code simulator) available at: http://www.robbayer.com/software.php
  #9   Spotlight this post!  
Unread 11-09-2002, 07:04 PM
necroprime necroprime is offline
Registered User
#0599 (Robodox)
 
Join Date: Nov 2002
Location: Granada Hills
Posts: 8
necroprime is an unknown quantity at this point
Cool

Thanks, this really helps out... appreciate it!
__________________
Code:
<script language="Javascript">
<!--
alert("The answer is b");
//-->
</script>
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
Anyone looking for more program space? archiver General Forum 13 06-24-2002 02:20 AM


All times are GMT -5. The time now is 01:25 PM.

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