|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#14
|
||||
|
||||
|
Re: Servo 'smoothing'
This would impreve your responsivness: (I just tought of it, not tested before)
Code:
static int temp[5]=0; temp[4] = temp[3]; temp[3] = temp[2]; temp[2] = temp[1]; temp[1] = temp[0]; temp[0] = Get_Analog_Value(ana_in_yy); pwmXX = (temp[0]/2 + temp[1]/4 + temp[2]/8 + temp[3]/16 + temp[4]/32)/4; |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Data Smoothing | Lafleur | Programming | 3 | 14-01-2008 22:06 |
| Servo behavior question / advanced servo/PIC programming question | DanL | Electrical | 12 | 18-10-2005 18:33 |
| Servo Values | DanDon | Motors | 8 | 14-02-2005 15:49 |
| Buying Servo | Gamer930 | Motors | 4 | 13-02-2005 20:44 |
| Servo | MASherry | General Forum | 6 | 04-10-2004 22:46 |