Thread
:
1 Joystick Control
View Single Post
#
6
01-02-2008, 10:02
Tom Bottiglieri
Registered User
FRC #0254 (The Cheesy Poofs)
Team Role: Engineer
Join Date: Jan 2004
Rookie Year: 2003
Location: San Francisco, CA
Posts: 3,187
Re: 1 Joystick Control
This is easier.
Code:
left_motor = speed - turn_rate; right_motor = speed + turn_rate;
Where speed and turn_rate are signed char's (subtract 127 from a u-char) and left and right motor are limited to (-128,127).
Tom Bottiglieri
View Public Profile
Visit Tom Bottiglieri's homepage!
Find all posts by Tom Bottiglieri
Find CD-Media Photos by Tom Bottiglieri
Find CD-Media Papers by Tom Bottiglieri