Go to Post ...UFH nominations are like jello, there is always room for one more. - Barry Bonzack [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 03-02-2008, 14:09
mayazk mayazk is offline
Registered User
FRC #2596 (FBI Robotics)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jersey city
Posts: 22
mayazk will become famous soon enough
Send a message via MSN to mayazk Send a message via Yahoo to mayazk
Arrow intermdiate programmer requests your help!!!

HI to all and thanks to those who help me! (VIEWRERS DO NOT COUNT ONLY REPLIERS OK VIEWERS COUNT)

MY QUESTIONS AND RESULTS
so the arcade motor stands for what?
y axis = speed and x=steer got it!

TODAYS STEPS
TODAY WE HHOKED UP 4 VICTORS AND 1 VICTOR TO A MOTOR NOW THE MOTOR WAS CONNECTED TO A ROD WHICH WAS HOOKED WITH ANOTHER MOTOR THE ROD WILL ACT LIKE A PULLEY SYSTEM

NOW WHAT I WANT TO KNOW IS

IS THERE ANYWAY THAT I CAN INCREASE THE SPEED OF THE MOTOR AND IF SO WHAT IS IT?

ALSO I WANT TO LEARN MORE ABOUT THE AUTONOMUS MODE AND HOW TO SET IT UP??

I WANT OUR ROBOT TO GO STRAIGHT 13 AND A HALF FEET LIFT ITS CLAW AND WERE GOING TO INCLUDE A LIMIT SWITCH A LITTLE BIT MORE LIGHT ON THAT SUBJECT WOULD BE KIND!

THATS ALL FOR NOW FOLKS AND I KNOW IM BEING BOSSY BUT IT WOULD HELP ALOT IF I GOT QUICK REPLIES ILL BE POSTING EVERY TUESDAY,WEDNESDAY,FRIDAY AND SATURDAY BECAUSE OF THE SHORT TIME IT WOULD BE A GREAT HELP IF YOU GAVE SOME QUIICK REPLIES

THANKS ALOT FOR UR HELP!!!!
__________________
Ayaz Khan
  #2   Spotlight this post!  
Unread 03-02-2008, 14:13
jacobhurwitz jacobhurwitz is offline
Registered User
FRC #0449 (Blair Robot Project)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Maryland
Posts: 45
jacobhurwitz has a spectacular aura aboutjacobhurwitz has a spectacular aura aboutjacobhurwitz has a spectacular aura about
Re: intermdiate programmer requests your help!!!

Quote:
Originally Posted by mayazk View Post
HI to all and thanks to those who help me! (VIEWRERS DO NOT COUNT ONLY REPLIERS OK VIEWERS COUNT)

MY QUESTIONS AND RESULTS
so the arcade motor stands for what?
y axis = speed and x=steer got it!

TODAYS STEPS
TODAY WE HHOKED UP 4 VICTORS AND 1 VICTOR TO A MOTOR NOW THE MOTOR WAS CONNECTED TO A ROD WHICH WAS HOOKED WITH ANOTHER MOTOR THE ROD WILL ACT LIKE A PULLEY SYSTEM

NOW WHAT I WANT TO KNOW IS

IS THERE ANYWAY THAT I CAN INCREASE THE SPEED OF THE MOTOR AND IF SO WHAT IS IT?

ALSO I WANT TO LEARN MORE ABOUT THE AUTONOMUS MODE AND HOW TO SET IT UP??

I WANT OUR ROBOT TO GO STRAIGHT 13 AND A HALF FEET LIFT ITS CLAW AND WERE GOING TO INCLUDE A LIMIT SWITCH A LITTLE BIT MORE LIGHT ON THAT SUBJECT WOULD BE KIND!

THATS ALL FOR NOW FOLKS AND I KNOW IM BEING BOSSY BUT IT WOULD HELP ALOT IF I GOT QUICK REPLIES ILL BE POSTING EVERY TUESDAY,WEDNESDAY,FRIDAY AND SATURDAY BECAUSE OF THE SHORT TIME IT WOULD BE A GREAT HELP IF YOU GAVE SOME QUIICK REPLIES

THANKS ALOT FOR UR HELP!!!!
Please don't write in all caps. It's distracting.

In tank drive, left y-axis is left motors, right y-axis if right motors. Both forward means robot goes forward, one forward and one backwards means the robot twists on its axis.

In arcade drive, y-axis is fowards/backwards and x-axis is twisting.

To increase the speed, you have a few options. If you use WPILib and a function like TankDrive() or ArcadeDrive(), then how far you push the joystick changes the speed. If you want to code it yourself, send the motors a value from 0 to 254 for various speeds (with 127 being neutral). Search Chief Delphi and I'm sure you can find lots of sample code for this.

For autonomous mode, I recommend WPILib. It's very simple and easy to understand for beginners. You just have an AutonomousCode() function that's executed during autonomous mode. See WPILib's website for details.

In summary, welcome to Chief Delphi! But please be more polite, and always search for an answer to your question before you ask it.
  #3   Spotlight this post!  
Unread 03-02-2008, 14:16
psy_wombats's Avatar
psy_wombats psy_wombats is offline
Registered User
AKA: A. King
FRC #0467 (Duct Tape Bandits)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Shrewsbury MA
Posts: 95
psy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura aboutpsy_wombats has a spectacular aura about
Re: intermdiate programmer requests your help!!!

Alright...

Motor Speed: You can't get a motor to go faster than it can mechanically move. So if you're assigning the PWM 255 or 0, there is no way to get it increase its speed... Unless you redo your gearing and select a different gear ratio.

Autonomous: Can't help you much here. You'll want to be more specific on what sensors you are using. What exactly will your limit switch be? To drive for a certain number of feet, you need at least a geartooth sensor hooked up. Then just measure the amounts. There are plenty of GTS threads floating about. Search for specific issues.

And in the future, please don't use caps locks... It makes your post very hard to read, and decreases my chance of reading it. Thanks.
  #4   Spotlight this post!  
Unread 03-02-2008, 14:22
kevin.li.rit's Avatar
kevin.li.rit kevin.li.rit is offline
Imaginary Friend
AKA: Kevin Li
FRC #0596 (SciClones)
Team Role: Student
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Hopkinton, Massachusetts
Posts: 936
kevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond repute
Send a message via Yahoo to kevin.li.rit
Re: intermdiate programmer requests your help!!!

a limit switch is pretty simple. You plug it into the digital inputs and look for it to be pressed, when it is pressed it creates a 0 signal.

if(!rc_dig_in07)// if limit switch is pressed
{ pwm05=127;//Stop arm!
backuparm(); //use a function here to back up the arm so it no longer hits the limit switch.
}

There Many ways to use a limit switch...
__________________
Kevin Li

596 - Sciclones
1405 - Finney Falcons
2262 - Holliston Panthers
  #5   Spotlight this post!  
Unread 03-02-2008, 14:44
paulcd2000's Avatar
paulcd2000 paulcd2000 is offline
Accidentally speaks in C
AKA: Paul Dagnelie
FRC #1719 (The Umbrella Corp.)
Team Role: Programmer
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Baltimore
Posts: 368
paulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the roughpaulcd2000 is a jewel in the rough
Send a message via AIM to paulcd2000
Re: intermdiate programmer requests your help!!!

and your limit switch will depend on how it's wired. 1 could be open or closed depending on the wiring. test with a multimeter first. for the 13.5 feet part, use encoders (might be hard), or measure the time that it takes your robot to go 13.5 feet and use timers (sample code):

Code:
int time;
if(time<115){ //this is about 3 seconds, 1 is 26.2 milliseconds
     pwm01=pwm02=254;
     time++;
}
else{
     pwm01=pwm02=127;
     if(!limit_switch){ //again, remember the wiring thing
          claw_motor=254; //redefine claw motor, and this is assuming that 254 is up, and that ur not using a relay
     }
     else{
          claw_motor=127; //same deal
     }
}
__________________
"People don't say 'It's just a game' when their team is winning!" -- Scott Adams

5.5 students (on average)* $7/h *210 hours/student= $8085 of labor, all volunteered (not counting mentors', who are each that much)

We have blades on our robot?! ***sweeeeeet***

There are 11 types of people in the world. Those who can read binary, those who can't, and those who say this joke is supposed to be, "There are 10 types of people in the world. Those who can read binary and those who have a life."
  #6   Spotlight this post!  
Unread 09-02-2008, 21:59
mayazk mayazk is offline
Registered User
FRC #2596 (FBI Robotics)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jersey city
Posts: 22
mayazk will become famous soon enough
Send a message via MSN to mayazk Send a message via Yahoo to mayazk
Re: intermdiate programmer requests your help!!!

Thanks and i apologize for the all caps i thought its more of making a point than distracting so im sorry!
I understand the limit switch, now what about the autonomus period how is the robot suppose to even move?? Am i suppose to use Tank 4 drive for it too or what?? and if so how?

thanks
__________________
Ayaz Khan
  #7   Spotlight this post!  
Unread 09-02-2008, 23:28
1jbinder 1jbinder is offline
Registered User
FRC #0852
 
Join Date: Jan 2008
Location: Athenian School
Posts: 35
1jbinder is an unknown quantity at this point
Re: intermdiate programmer requests your help!!!

In autonomous mode you will need encoders to measure distance. We are currently controlling our motors with a PD loop and not direct PWM control but if you want to set your to drive motors(plugged into outputs 1 and 2) forward this would be the command:
pwm01=255;
pwm02=255;
Use Kevin's default code at kevin.org for you robot. In the autonomous.c file in the project open up the autonomous function and write the code there. In future posts you should probably call yourself a beginner FRC C programmer because it will make it easier for people to fix your posts. Anyways i hope this works for you.
Julian

Last edited by 1jbinder : 09-02-2008 at 23:31. Reason: Making it correct and understandable
  #8   Spotlight this post!  
Unread 11-02-2008, 15:36
mayazk mayazk is offline
Registered User
FRC #2596 (FBI Robotics)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Jersey city
Posts: 22
mayazk will become famous soon enough
Send a message via MSN to mayazk Send a message via Yahoo to mayazk
Re: intermdiate programmer requests your help!!!

hey guys
quick question

is there anyway to program the buttons on the joystick??

quick reply is appreicated

thanks alot
__________________
Ayaz Khan
  #9   Spotlight this post!  
Unread 11-02-2008, 15:47
kevin.li.rit's Avatar
kevin.li.rit kevin.li.rit is offline
Imaginary Friend
AKA: Kevin Li
FRC #0596 (SciClones)
Team Role: Student
 
Join Date: Jan 2003
Rookie Year: 2001
Location: Hopkinton, Massachusetts
Posts: 936
kevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond reputekevin.li.rit has a reputation beyond repute
Send a message via Yahoo to kevin.li.rit
Re: intermdiate programmer requests your help!!!

Yes You can do something like.
relay1_fwd = p1_sw_trig;
relay1_rev = p1_sw_top;

or
if(p1_sw_trig)
{relay1_fwd=1;
relay1_rev=0;
}
if(p1_sw_trig)
pwm07=235;

Look on the OI reference guide for all the button definitions.
__________________
Kevin Li

596 - Sciclones
1405 - Finney Falcons
2262 - Holliston Panthers
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
NEW PROGRAMMER!!!!! NEED HELP!!!! delphi demon Programming 5 19-04-2007 13:22
NEED PROGRAMMER TO HELP WITH PROGRAMING Reaper40 Programming 4 02-02-2007 17:31
Rookie programmer in need of help. kshot Programming 7 20-01-2005 15:05
Help for New Programmer Mike375 Programming 3 27-09-2001 09:04


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

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