View Single Post
  #4   Spotlight this post!  
Unread 25-01-2008, 13:39
Tom Line's Avatar
Tom Line Tom Line is offline
Raptors can't turn doorknobs.
FRC #1718 (The Fighting Pi)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 1999
Location: Armada, Michigan
Posts: 2,521
Tom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond reputeTom Line has a reputation beyond repute
Re: For some reason our motors are "breaking" and not going forward. Why?

The easiest way to debug an issue like this is to add a printf statement into each "if" statement like this:

printf("We made it into 1");

in the next if:

printf("We made it into 2");

and so on. Then you can watch the terminal window and determine which if/thens are setting it to what values.