|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#5
|
|||
|
|||
|
Re: Moderating Acceleration / Deceleration
A simple filter is one line of code. Here is a version that works with integer math:
Code:
out = (((n-1)*out)+in)/n; out = the filtered quantity e.g. PWM value to the wheel. n sets the filter bandwidth. Higher values, lower bandwidth. Experiment! Preserve the value of 'out' (make it global or static). Use separate variables for each wheel. That should get you started. |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Acceleration Curve | EricWilliams | Programming | 5 | 01-02-2006 16:27 |
| Acceleration Sensor Connected, but values are odd.... | Leav | Electrical | 7 | 04-02-2005 15:28 |