|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||
|
||||
|
Re: Problem with only 2 days left
You may want to look into PID control:
http://www.chiefdelphi.com/forums/sh...light=pid+code http://www.chiefdelphi.com/media/papers/1823 Also, just out of curiosity, are your victors running in "Brake" mode? That may help alleviate your problem by actually trying to stop the motors when they reach the right position instead of just cutting the power and letting them coast. Good luck |
|
#2
|
||||
|
||||
|
Re: Problem with only 2 days left
Are you using a printf to print out the outputs and variables every step of the way?
Most likely your code has some output value that's going too high and getting maxed out. You might be able to divide some things by a number (in PID, you want to reduce the proportional and the integral components) |
|
#3
|
|||||
|
|||||
|
Re: Problem with only 2 days left
you might also try setting one limit in the up direction and another in the down position - that can keep the control from hunting for the perfect spot.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| 10 Days Left NERDS | Andy Grady | General Forum | 13 | 20-07-2005 14:46 |
| Anyone Know What This Means ? Help, only a few days left.. | gemccnp | Programming | 4 | 19-02-2005 01:28 |
| problem with joystick buttons (top left one) | Richomundo | Programming | 5 | 15-02-2004 17:16 |
| Only 58 Regional spots left... | Aidan F. Browne | Regional Competitions | 17 | 14-11-2003 23:47 |
| Seniors... how many days left? | Jeff Waegelin | Chit-Chat | 16 | 02-05-2003 22:21 |