Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Set Speed of Jaguar (http://www.chiefdelphi.com/forums/showthread.php?t=91535)

team 3311 11-02-2011 19:58

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.

tomy 11-02-2011 20:20

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

Alan Anderson 12-02-2011 00:18

Re: Set Speed of Jaguar
 
Quote:

Originally Posted by team 3311 (Post 1020886)
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?

team 3311 12-02-2011 04:16

Re: Set Speed of Jaguar
 
Thanks you guys!
We got the problem fixed now. This thread can be closed.

Alan Anderson 12-02-2011 08:40

Re: Set Speed of Jaguar
 
Quote:

Originally Posted by team 3311 (Post 1021127)
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.


All times are GMT -5. The time now is 13:56.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi