Go to Post If there's one thing I've learned, it's that the robot is never truly finished. - Joseph Smith [more]
Home
Go Back   Chief Delphi > Technical > Technical Discussion
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
  #7   Spotlight this post!  
Unread 10-02-2002, 09:09
s_alaniz s_alaniz is offline
Registered User
#0057 (Leopards)
 
Join Date: Jun 2001
Location: Houston, Tx
Posts: 73
s_alaniz is an unknown quantity at this point
I only did a quick read but I think I see two problems:



loop:
if p1_sw_top = 1 then j:
goto red:
j:
goto loop:



If p1_sw_top = 1 is true, then you have the program stuck in an infinite loop until you change p1_sw_top = 1 to false. That will probably shut down your robot since you exceed the time limit on the watchdog timer.. (delta T)


if count1 = 1 then yo:
count1=1
yo:
if count1 = 0 then yo2:
count1 = 0
yo2:
s:

if count1 = 0 you then change count1 to 1 go past the yo: label, test if count1 = 0 which it never will (since you just changed it to 1) and then change it with count1 = 0 so you're right back with count1 = 0 just like you started. I think you intended to have an unconditional "goto s:" between "count1 = 1" and "yo:"



Good luck... I'm off to N.O. for Mardi Gras!


Steve Alaniz


" What good is technology if you can't abuse it?" - Ted Forth
 


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
Quick <hr> question Jack Website Design/Showcase 1 31-01-2003 22:19
Quick Optical Sensor Question zorro Technical Discussion 10 21-01-2003 06:39
To all the ladies in the hiz-ous!! lol a quick question archiver 2001 1 24-06-2002 02:12
Quick Question archiver 2001 5 24-06-2002 00:08
Quick Question, i guess Andrew Rudolph Motors 1 12-08-2001 14:39


All times are GMT -5. The time now is 16:06.

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