Thread
:
Switch Function Problems
View Single Post
#
2
28-01-2008, 20:01
Joe Ross
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Re: Switch Function Problems
Code:
static unsigned char delay; static unsigned char direction; static unsigned char time;
An unsigned char's maximum value is 255. Since you want to use values greater then that for time, you should use an int.
Joe Ross
View Public Profile
Find all posts by Joe Ross
Find CD-Media Photos by Joe Ross
Find CD-Media Papers by Joe Ross