View Single Post
  #23   Spotlight this post!  
Unread 25-02-2009, 20:06
chinckley chinckley is offline
Winner 2009 West Michigan District
FRC #1254 (Entropy)
Team Role: Teacher
 
Join Date: Jan 2005
Rookie Year: 2003
Location: Lawrence, Michigan
Posts: 204
chinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to allchinckley is a name known to all
Re: Programming Error

Quote:
Originally Posted by Mark McLeod View Post
You have a While loop that should normally, by default, keep you running when the Run button is pushed.

The default for such a loop is "Stop if True" (looks like the left picture below).
Did you by any chance change it to a "Continue if True" (the middle picture)?

Either type can be used, but you have to be careful to have the correct default value going in. In one case it should default to True, while in the other it should default to False. That's a common reason for the program to run only once (taking only milliseconds to complete). People sometimes change the loop type, but forget to reverse the default True/False. In the middle case below, the loop will run only once (very fast) because the button feeding it would have to be held down to make it loop.

For instance, the third picture is what the Basic Framework uses and it keeps the loop going because it defaults to True and uses "Continue if True."
I don't think so.

Good thing our second event is the last week of regionals/districts.
We have a whole month to think and draw ideas. I already told them I want the switch for autonomous.
__________________
2009 West Michigan District Winner
Thanks to Team 216 and Team 1918

2009 Traverse City Semifinalist
Thanks to Team 1596 and Team 47
2009 Traverse City UL Safety Award Winners

Attending 2009: West Michigan, Traverse City, & State

Last edited by chinckley : 25-02-2009 at 20:14.