|
Re: We NEED 8-inch wheels and programming help
Posted by Stephen at 2/8/2001 6:57 PM EST
Other on team #122, NASA Knights, from Grafton High School (Robotics team is at NHGS) and NASA.
In Reply to: Re: We NEED 8-inch wheels and programming help
Posted by Matt Leese on 2/8/2001 5:21 PM EST:
Below is the code to use one joystick for 2 motors, PWM1 and PWM2 are the left and right motors, you can change these variables.
PWM1 = (((2000 + p1_y - p1_x + 127) Min 2000 Max 2254) - 2000)
PWM2 = (((2000 + p1_y + p1_x - 127) Min 2000 Max 2254) - 2000)
__________________
This message was archived from an earlier forum system. Some information may have been left out. Start new discussion in the current forums, and refer back to these threads when necessary.
|