Go to Post Who says engineers can't be poets? - Wayne TenBrink [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-02-2005, 15:43
willie837's Avatar
willie837 willie837 is offline
Registered User
#0837 (Webbinators)
Team Role: Programmer
 
Join Date: Jan 2005
Location: Oxford, NC
Posts: 9
willie837 is an unknown quantity at this point
Send a message via AIM to willie837
Exclamation Need Serious Gimungous Huge Major Seriously Awesome Help

I need a button code for operating our arm on our robot. Any code would be nice. Thank you.

P.S.- We have a single joystick code, if that matters at all.
__________________
Freshman

Please, I need your help with programming. It is my first year with Robotics and I have been chosen as programmer. If possible can anyone IM or PM me with some codings to help with the prgramming? I need especially a code to change our robot's control to two jostick tank drive from one jostick drive. I also need autonomous help. Thank you so much.



"Don't Die Worrying..." Alicia Molik
  #2   Spotlight this post!  
Unread 11-02-2005, 16:05
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Need Serious Gimungous Huge Major Seriously Awesome Help

Quote:
Originally Posted by willie837
I need a button code for operating our arm on our robot. Any code would be nice.
What moves your arm? A motor? Pneumatics? A herd of servos in parallel? The code you need has to control the device you use.

What button are you using? What do you want to have happen when you press the button? The code you want has to implement that.

After you give some real specifications for what you want, we can start giving useful suggestions on how to meet them.
  #3   Spotlight this post!  
Unread 11-02-2005, 16:19
willie837's Avatar
willie837 willie837 is offline
Registered User
#0837 (Webbinators)
Team Role: Programmer
 
Join Date: Jan 2005
Location: Oxford, NC
Posts: 9
willie837 is an unknown quantity at this point
Send a message via AIM to willie837
Re: Need Serious Gimungous Huge Major Seriously Awesome Help

Alrgiht, we have a pneumatic arm with three different cylinders, one for lifting, and two for extension. We need code to operate these three cylinders with one joystick, so we can have another for driving. We need three different buttons to operate each cylinder, the first press to activate the cylinder out, and the second press of the same button to retract it.
__________________
Freshman

Please, I need your help with programming. It is my first year with Robotics and I have been chosen as programmer. If possible can anyone IM or PM me with some codings to help with the prgramming? I need especially a code to change our robot's control to two jostick tank drive from one jostick drive. I also need autonomous help. Thank you so much.



"Don't Die Worrying..." Alicia Molik

Last edited by willie837 : 11-02-2005 at 16:22.
  #4   Spotlight this post!  
Unread 11-02-2005, 16:26
Dave Scheck's Avatar
Dave Scheck Dave Scheck is offline
Registered User
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Feb 2003
Rookie Year: 2002
Location: Arlington Heights, IL
Posts: 574
Dave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond reputeDave Scheck has a reputation beyond repute
Re: Need Serious Gimungous Huge Major Seriously Awesome Help

Check out this thread.
What you're looking for is a way to toggle a relay output with a button tap. There were several solutions mentioned.
  #5   Spotlight this post!  
Unread 11-02-2005, 16:34
willie837's Avatar
willie837 willie837 is offline
Registered User
#0837 (Webbinators)
Team Role: Programmer
 
Join Date: Jan 2005
Location: Oxford, NC
Posts: 9
willie837 is an unknown quantity at this point
Send a message via AIM to willie837
Re: Need Serious Gimungous Huge Major Seriously Awesome Help

The code we saw is not working. Where in the Default Code do we put it? Or what is another code?
__________________
Freshman

Please, I need your help with programming. It is my first year with Robotics and I have been chosen as programmer. If possible can anyone IM or PM me with some codings to help with the prgramming? I need especially a code to change our robot's control to two jostick tank drive from one jostick drive. I also need autonomous help. Thank you so much.



"Don't Die Worrying..." Alicia Molik
  #6   Spotlight this post!  
Unread 11-02-2005, 16:38
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,112
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Need Serious Gimungous Huge Major Seriously Awesome Help

Quote:
Originally Posted by willie837
...pneumatic arm with three different cylinders...one joystick...three different buttons to operate each cylinder, the first press to activate the cylinder out, and the second press of the same button to retract it.
Fortunately, the white joysticks have lots of buttons! Assuming the joystick is on Port 4 of the OI, the trigger is p4_sw_trig, the thumb button is p4_sw_top, the left hand button on top is p4_sw_aux1, and the right hand button on top is p4_sw_aux2. Pick which three you want to use. I'll show you how to use the trigger for what you want, assuming you're using a double solenoid connected to a Spike on Relay 1, and you can go from there.

In the Default_Routine() function in user_routines.c, use this code:
Code:
static char last_trig = 0; // this is what the switch state was last time
static char cylinder_state = 0; // this is what we last told the cylinder

if (last_trig == 0 && p4_sw_trig == 1) // the switch was just now pressed
{
    if (cylinder_state == 0) // the cylinder was retracted, need to extend
    {
        cylinder_state = 1; // remember that we're extending it
        relay1_fwd = 1; // do whatever it takes to activate the solenoid
        relay1_rev = 0;
    }
    else // the cylinder was extended, need to retract
    {
        cylinder_state = 0; // remember that we're retracting it
        relay1_fwd = 0; // do whatever it takes to reverse the solenoid
        relay1_rev = 1;
    }
}
last_trig = p4_sw_trig;
  #7   Spotlight this post!  
Unread 14-02-2005, 15:36
willie837's Avatar
willie837 willie837 is offline
Registered User
#0837 (Webbinators)
Team Role: Programmer
 
Join Date: Jan 2005
Location: Oxford, NC
Posts: 9
willie837 is an unknown quantity at this point
Send a message via AIM to willie837
Re: Need Serious Gimungous Huge Major Seriously Awesome Help

Thanks. I think we are going to use the trigger, left hand button on the top, and thumb button.
__________________
Freshman

Please, I need your help with programming. It is my first year with Robotics and I have been chosen as programmer. If possible can anyone IM or PM me with some codings to help with the prgramming? I need especially a code to change our robot's control to two jostick tank drive from one jostick drive. I also need autonomous help. Thank you so much.



"Don't Die Worrying..." Alicia Molik
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


All times are GMT -5. The time now is 23:30.

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