|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
||||||
|
||||||
|
Re: Could someone look this over?
Quote:
|
|
#2
|
||||
|
||||
|
Re: Could someone look this over?
Yes!
![]() ![]() ![]() ![]() PS Excessive celebration, 5 yard penalty. Any more suggestions appreciated. Thanks Last edited by Ryan M. : 08-02-2004 at 12:19. |
|
#3
|
||||||
|
||||||
|
Re: Could someone look this over?
Code:
if(currentPWM >= goalPWM + sensitivity)
return currentPWM - sensitivity;
if(currentPWM <= goalPWM - sensitivity)
return currentPWM + sensitivity;
If goalPWM is 254 and sensitivity is 10 and CurrentPWM is 127, the result of (goalPWM + sensitivity) is 8 and so CurrentPWM is greater then 8 and you return 117 not 137 like you hope. |
|
#4
|
||||
|
||||
|
Re: Could someone look this over?
Quote:
And the funny thing is, I had already paritially taken looping around into acount in the code. Last edited by Ryan M. : 08-02-2004 at 12:27. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|