Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Jaguars won't take in any negative values (http://www.chiefdelphi.com/forums/showthread.php?t=83089)

Yuan Xue Lim 19-02-2010 14:32

Jaguars won't take in any negative values
 
Yesterday night, our team was testing the kicker. It was working fine at beginning.However, halfway through the testing, it just won't take in negative values. Not even the jaguars are flashing red to represent negative values.

Values from 0~1 works fne. Does this have to do with the encoder? We tried it with the encoder off and it still gives the same problem.

P.S the motors work fine with joysticks.

Zme 19-02-2010 15:43

Re: Jaguars won't take in any negative values
 
check the limit switch jumpers to make sure that one didn't get removed by mistake

Yuan Xue Lim 19-02-2010 15:46

Re: Jaguars won't take in any negative values
 
I check all of them( if you are talking about the jumpers on jaguars) and it is all fine,none was removed.

Zme 19-02-2010 15:48

Re: Jaguars won't take in any negative values
 
ok reread your post, if the LED's arn't lighting up red then there is a different issue, check through your code and make sure you don't clip the outputs anywhere, you might also want to be sure that the code isn't suffering any major errors when you try to drive backwards and (because i don't know if they would trip the led or not) make sure a soft limit didn't get set

AmoryG 19-02-2010 16:41

Re: Jaguars won't take in any negative values
 
Quote:

Originally Posted by Yuan Xue Lim (Post 923964)
Yesterday night, our team was testing the kicker. It was working fine at beginning.However, halfway through the testing, it just won't take in negative values. Not even the jaguars are flashing red to represent negative values.

Values from 0~1 works fne. Does this have to do with the encoder? We tried it with the encoder off and it still gives the same problem.

P.S the motors work fine with joysticks.

When you say negative values does this mean your motor can't spin in one direction? I ask this because yesterday the programming team ran into a bug where one of the wheels could not spin backwards. A mentor tested one of our Jaguars with a voltmeter and found out it was broken. I'm guessing yours is to.

Yuan Xue Lim 19-02-2010 22:59

Re: Jaguars won't take in any negative values
 
Quote:

Originally Posted by AmoryG (Post 924044)
When you say negative values does this mean your motor can't spin in one direction? I ask this because yesterday the programming team ran into a bug where one of the wheels could not spin backwards. A mentor tested one of our Jaguars with a voltmeter and found out it was broken. I'm guessing yours is to.

But we did try that jaguar with joystick and it works fine. Right now is not just one jaguar is all the jaguars won't take in negative values other than the one from joystick.

AmoryG 20-02-2010 10:58

Re: Jaguars won't take in any negative values
 
Quote:

Originally Posted by Yuan Xue Lim (Post 924285)
But we did try that jaguar with joystick and it works fine. Right now is not just one jaguar is all the jaguars won't take in negative values other than the one from joystick.

Yesterday, our electronics guy checked out the jaguar and found out it had been wired incorrectly. I don't think this is a programming issue, I think someone on your team needs to check if your jaguar(s) is wired correctly. If Sorry if my advise isn't very helpful. If you haven't I think you should post this same thread in the electrical forum, see if more people will help you over there.

Yuan Xue Lim 20-02-2010 13:31

Re: Jaguars won't take in any negative values
 
We just solved the problem.It wasn't the jaguar.It was the program. I shouldn't have set the PWM into 0 outside the if statement after the trigger or button was pushed.
Thank you all for helping me out.
I represent team #3017 to thank you all.


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

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