|
Re: Create a low speed drive in programming
Quote:
|
Originally Posted by scitobor 617
Code:
motor=y-((y-center)/factor)
So for example:
y=168 center=127 and factor=2
148=168 - (( 168 - 127 ) / 2 )
|
This code will not work for joystick values less than 127.
__________________
"FIRST is like bling bling for the brain." - Woodie Flowers
|