Go to Post Honesty and Integrity is the key to success. If I don't teach my team to be honest, I am a failure! - team4384 [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 11-02-2011, 19:58
team 3311 team 3311 is offline
Registered User
FRC #4057 (Klamath Basion Robotics)
Team Role: Leadership
 
Join Date: Dec 2010
Rookie Year: 2008
Location: klamath falls OR.
Posts: 75
team 3311 has a spectacular aura aboutteam 3311 has a spectacular aura about
Set Speed of Jaguar

Hello guys,

we are trying to run this motor. All the ports are hooked up right.
We initiated the Jaguar and did everything but we can't make the motor running. We have a Joystick and if this one button is pressed the motor should start working, but it doesn't.
What can we do to fix it?

Code:
if(rightstick.GetRawButton(8));
{
armcrane.Set(1); 
}
The armcrane is the name of our Jaguar.

Thanks for helping!

PS: We are not the best of programmers, so we need a good explaination.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2011, 20:20
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 494
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Set Speed of Jaguar

one way that i coded our arm is this

Code:
 if(leftstick.getrawbutton(2)){
                   vicelbow.set(leftstick.getY())
            }
this way when you press and hold the button the victor that controls the elbow will move based on what your leftstick is doing

but then again we are using a xbox controller for our driving and a two joysticks for our arm

hope it helps
Reply With Quote
  #3   Spotlight this post!  
Unread 12-02-2011, 00:18
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: Set Speed of Jaguar

Quote:
Originally Posted by team 3311 View Post
We have a Joystick and if this one button is pressed the motor should start working, but it doesn't.
What can we do to fix it?
The steps to fix it naturally depend on what's wrong, and we can't tell what's wrong from your description so far. Let's try to get some more information.

What is the Jaguar's LED doing while you try to make the motor run?
What is the big orange Robot Signal Light doing?
What does the rest of your code look like, specifically the part where you initialize the Jaguar?
Reply With Quote
  #4   Spotlight this post!  
Unread 12-02-2011, 04:16
team 3311 team 3311 is offline
Registered User
FRC #4057 (Klamath Basion Robotics)
Team Role: Leadership
 
Join Date: Dec 2010
Rookie Year: 2008
Location: klamath falls OR.
Posts: 75
team 3311 has a spectacular aura aboutteam 3311 has a spectacular aura about
Re: Set Speed of Jaguar

Thanks you guys!
We got the problem fixed now. This thread can be closed.
Reply With Quote
  #5   Spotlight this post!  
Unread 12-02-2011, 08:40
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: Set Speed of Jaguar

Quote:
Originally Posted by team 3311 View Post
We got the problem fixed now. This thread can be closed.
Any chance you could tell us what was wrong? Some other team with a similar problem might find the information useful.
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


All times are GMT -5. The time now is 17:44.

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