Thread
:
Inverting the direction of a Motor
View Single Post
#
7
12-03-2008, 11:09
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,186
Re: Inverting the direction of a Motor
PHP Code:
pwm01
=
p2_y
;
pwm02
= ~
p2_y
;
This flips all of the bits, so realistically it does the same as (255-p2_y).
Last edited by Tom Bottiglieri : 12-03-2008 at
11:15
.
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