|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#13
|
|||||
|
|||||
|
Re: Swerve vs. Mecanum Programming
Quote:
it's called proportional control. p from pid. Basically, you say; Code:
error = setpoint - process_variable output = error * Kp Edit: Forgot to talk about I and D: Integral (I): Basically you integrate the error and add it to the output: Code:
integral += error output += integral * kI Derivative (D): You calculate the derivative of the previous action to determine how momentum will affect the stopping ability. Basically, it works against P and I to slow it down when it nears the end, allowing a higher P gain. You will almost certainly not need this with crab steering, as the friction of turning the pods will probably slow their rotation very quickly (D would be useful for, say, a 6' arm that has a lot of mass at the end). Last edited by apalrd : 23-05-2010 at 00:10. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Mecanum or Swerve? | buildmaster5000 | Technical Discussion | 73 | 18-04-2010 11:19 |
| Programming Mecanum | Zrob | Java | 22 | 04-04-2010 23:00 |
| Mecanum Programming Help | Mars | Programming | 8 | 27-02-2008 15:41 |
| mecanum programming | mrmummert | Programming | 27 | 28-01-2007 13:45 |
| Need help programming our swerve with feedback? | activemx | Programming | 25 | 13-04-2004 07:29 |