|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Commanding Speed in a Negative Number Results in Runaway
I'm playing with CAN set Speed a bit in Java and DBC-COMM and setting a Speed of negative RPM causes the jaguar to command full speed. It seems the jaguar doesn't understand a negative RPM value.
|
|
#2
|
||||
|
||||
|
Re: Commanding Speed in a Negative Number Results in Runaway
This is purely a guess. It's not a negative value but rather an unsigned value. Which translates a negative value into a very large positive value.
That's purely a guess based on experience as a programmer. :-) |
|
#3
|
||||
|
||||
|
Re: Commanding Speed in a Negative Number Results in Runaway
I'm pretty sure this is the issue also, probably in the Jaguar firmware.
|
|
#4
|
|||
|
|||
|
Re: Commanding Speed in a Negative Number Results in Runaway
Hi Adam,
Are you seeing this on a Gray or a Black Jag? What firmware version are you running? What are your PID values? -David |
|
#5
|
||||
|
||||
|
Re: Commanding Speed in a Negative Number Results in Runaway
Black Jags,
Firmware 89, PID 2, .0001, 6 US Digital Kit Encoders 360cpr I posted sample code on the 2010 beta site Last edited by Kingofl337 : 12-03-2010 at 22:31. |
|
#6
|
|||
|
|||
|
Re: Commanding Speed in a Negative Number Results in Runaway
Hi Adam,
We were able to recreate what you're seeing on my setup here. After doing some testing we noticed that there is a small bug in the PID code that makes the reverse direction more sensitive to PID tuning. Correct me if I'm wrong, but I bet you tuned your PID constants in the forward direction first, and then tried to move in reverse (I did the same thing). I would try tuning your PID in reverse first. It should be possible to tune in reverse, even with the bug. I would try lowering P and possibly D and see if that helps tuning in the reverse direction. Once tuned in reverse, forward should work just as well. We are currently working on a bug fix and the best plan of action on releasing an update if it is deemed necessary. Thanks for your input and please keep me posted! -David |
|
#7
|
||||
|
||||
|
Re: Commanding Speed in a Negative Number Results in Runaway
if FIRST doesn't want you to release an update, I'd be willing to test a beta version of the fix.
![]() |
|
#8
|
|||
|
|||
|
Re: Commanding Speed in a Negative Number Results in Runaway
There is new firmware that should fix this issue. Please see this thread: http://www.chiefdelphi.com/forums/sh...852#post938852
-David |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Negative Repping... | Cody Carey | General Forum | 21 | 29-03-2007 18:42 |
| No Negative Scores? | ahecht | General Forum | 3 | 05-03-2005 01:41 |
| Negative Scoring | Mr.G | Rules/Strategy | 16 | 14-02-2005 11:02 |
| Negative Bus | Greg | General Forum | 3 | 03-02-2003 07:33 |
| Negative Scoring | BBFIRSTCHICK | Rules/Strategy | 4 | 12-01-2003 03:55 |