To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.org.us.laflrcOpen lugnet.org.us.laflrc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Organizations / United States / LafLRC / 338
337  |  339
Subject: 
Re: 3T
Newsgroups: 
lugnet.org.us.laflrc
Date: 
Sat, 4 Mar 2006 03:11:45 GMT
Viewed: 
1930 times
  
John Brost wrote:

Well, I've had some time on my hands, and being totally unhappy with my 3T robot
I decided a re-build was in order.  Probably an 85% - 90% rebuild.  About the
only thing that wasn't touched was my cube magazine & the dropper mechanism.
Everything else was changes to some extent.  Taking a cue from the rest of you,
and having rescued my touch sensors from my NEIRG robot, I decided to ditch the
rotation sensors and go with touch sensors for both X & Y movements.  Much, much
better.

I finally got workable code last night, but still not as streamlined as I'd
like.

Which leads me to this....

I have noticed an interesting thing in Mindscript, and I'm hoping somebody out
there might take notice of this and explain it to me.


}

besides being crappy code, my problem is this.  If I detect a block in A, it
should immediately recognize that, return home and stop the scanning task.  It
does this, but apparently not until it has already executed a few more lines of
code.  I know this because when it returns home, the CurX and CurY values have
already been reassigned to the location of B (1,2).  Here's my workaround...
insert a 1/2 second wait command just before the if B = 0 statement.  If I do
this, it works just fine.  I haven't figured out how long I have to wait, but
1/2 a sec works.  Anybody know why it works this way?

John


as a mindscript guy,

i cant say i've had this problem.

i ~think~ the STOP TASK command stops the task at the END of that task.
not mid task when the STOP was called. (1)

If i wasn't busy with a R20 robot I would code a quick test to test for
that condition.  have a task re-set 10 variables a - j and flip them all
from 0 to 1, then at variable e, have a WATCHER or something stop that task.

have a display show var j, OR make the last thing a SOUND 1

it will tell you if its your code or mindscript


Good luck.

Chris

1. wow listen to me, i sound like a programer or something.



Message has 1 Reply:
  Re: 3T
 
(...) well, I sit corrected. I ran this VERY CRUDE program, and it would seem that a STOP TASK should stop the task mid task. feel free to mess with var x, to see it the resuts change. program generic { var a = 0 var b = 0 var c = 0 var d = 0 var e (...) (19 years ago, 4-Mar-06, to lugnet.org.us.laflrc)

Message is in Reply To:
  3T
 
Well, I've had some time on my hands, and being totally unhappy with my 3T robot I decided a re-build was in order. Probably an 85% - 90% rebuild. About the only thing that wasn't touched was my cube magazine & the dropper mechanism. Everything else (...) (19 years ago, 3-Mar-06, to lugnet.org.us.laflrc)

9 Messages in This Thread:




Entire Thread on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact

This Message and its Replies on One Page:
Nested:  All | Brief | Compact | Dots
Linear:  All | Brief | Compact
    

Custom Search

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR