Thread
:
Inverting the direction of a Motor
View Single Post
#
10
12-03-2008, 12:12
Jimmy Cao
Registered User
AKA: Jimmy Cao
no team
Join Date: Sep 2006
Rookie Year: 2004
Location: San Francisco, CA
Posts: 295
Re: Inverting the direction of a Motor
I guess it's already been posted, but the following should also work.
(all words in all caps are alliases, as I do not actually know the names of all the values)
Code:
PWM_LEFT_MOTOR = STICK_FOUR_X; PWM_RIGHT_MOTOR = 254 - STICK_FOUR_X;
__________________
Jimmy Cao
Team 469 2006-2010 Student/Alumni
Team 830 2011-2012 Mentor
Jimmy Cao
View Public Profile
Find all posts by Jimmy Cao
Find CD-Media Photos by Jimmy Cao
Find CD-Media Papers by Jimmy Cao