|
|
|
| You've stolen the 128-bit encryption key to my heart. |
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Proportional Control and Acceleration
The rest of the controls team on our team are having trouble figuring out how to use a 10 turn potentiometer to regulate the position of a Van Door motor, to make it line up with a 3/4 turn potentiometer on our driver controls. We can't figure out the math, and how we would write it into our code. Thanks for any help!!
![]() *Edit* We are also having problems figuring out to write code for accelerating and decelerating (in incremenets of 5). The current loop in the code would have "lw" for the left wheels and "rw" for the right wheels, and the variables we use for the value of those motors for the previous loop with would be "lw2" and "rw2". The equation we thought of was "lw = lw2 - p1_y", but we don't know how to find the value of "lw2" or "rw2". If this equation is wrong, please let me know if you can think of a better one. Again, thanks for any help!! Last edited by ShadowFlame : 14-02-2004 at 12:39. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| PID control loops - closed loop feedback | KenWittlief | Technical Discussion | 56 | 26-04-2004 21:27 |
| What do you wish you knew about the new control system? | Joe Ross | Control System | 2 | 09-01-2004 21:47 |
| Need a FIRST Robotics control system | kershawrobotics | General Forum | 3 | 07-07-2003 09:49 |
| more control options | smokescreen | Technical Discussion | 17 | 05-03-2002 15:41 |
| goals: how much control? | Pat Sarmiento | Rules/Strategy | 2 | 18-01-2002 19:10 |