Go to Post In the absence of a valid game hint, the natives in CD tend to get restless and resort to this sort of pun-ishment of one another. - David Brinza [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Spotlight this post!  
Unread 02-11-2006, 04:23
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
Re: !HELP! IM STUCK IN A SUBROUTINE!!! !HELP!

Cameron,

I can not identify exactly where your problem is. Here are some ideas.

I would add a check after incrementing time and set time = 0 if time < 0.

I would look at where time is declared and insure that it is static. Beware of dynamic initializations...

As a matter of style, I would use the form ((A > B) && (A < C)) rather than (A > B && A < C) when working with students. It adds nothing to the speed of the code and eliminates the memorization of operator precedence.

Lastly, I would add a printf to determine what is going on. I strongly suspect the initialization of time is either implicit or the variable is getting stepped on between loops.

Regards,

Mike
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
RC Controller Stuck bhk88 Programming 1 31-01-2006 17:46
Stuck on Camera Mount busterblade16 Programming 2 14-02-2005 22:07
stuck in programming mode Shu Song Control System 2 29-04-2004 16:44
help! Am really stuck!!!! pagemauck Programming 8 29-01-2004 12:38
guy stuck in toilet! robot180 Chit-Chat 8 14-11-2003 22:27


All times are GMT -5. The time now is 02:04.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi