|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools | Rate Thread | Display Modes |
|
#7
|
||||
|
||||
|
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 |
|
|
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 |