Thread
:
Error in code light on, trouble finding error
View Single Post
#
17
12-10-2007, 21:59
bear24rw
Team 11 Programming Captain
AKA: Max T
FRC #0011 (MORT)
Team Role: Programmer
Join Date: Sep 2005
Rookie Year: 2005
Location: Flanders, NJ
Posts: 385
Re: Error in code light on, trouble finding error
Just an idea...
Code:
pwm01 = wL + 127; pwm02 = 127 - wR;
I've never casted a double to an unsigned char so im not sure if this could be it at all but try doing
Code:
pwm01 = (int)wL + 127; pwm02 = 127 - (int)wR;
[
bear24rw
View Public Profile
Visit bear24rw's homepage!
Find all posts by bear24rw
Find CD-Media Photos by bear24rw
Find CD-Media Papers by bear24rw