Quote:
Originally posted by s_alaniz
Diego,
I can't tell what it is you're trying to accomplish. Are you trying to limit how far the wheel turns? Or do you want to trigger a sequence that holds the wheel turned for some amount of time and then returns to straight? Sorry, I'm a bit muddled ... I read through your program and it looks like ...
<snip>
so what exactly do you want it to do?
|
Yeah, I know, my program doesn't do what I wanted it to do; that's why I'm asking here
If the joystick is halfway left, I want a motor to turn 45 degrees and stop. If the joystick is all the way left, I want the motor turn till 90 degrees and stop. Basically I'm trying to write a program for a steering wheel.
Thanks,
Diego