To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.nxtOpen lugnet.robotics.nxt in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / NXT / 822
821  |  823
Subject: 
Re: stop task
Newsgroups: 
lugnet.robotics.nxt
Date: 
Tue, 24 Jul 2007 11:41:16 GMT
Viewed: 
21601 times
  
In lugnet.robotics.nxt, Elizabeth Mabrey wrote:

I just noticed that there is no function to terminate
a task like nqc... Suggestion?

Using a global to flag out of a task is about the only (rather awkward) option I
know of. This is one of the things that I really have issues with under the
NXT-G FW.

--
Brian Davis



Message has 1 Reply:
  Re: stop task
 
(...) It is not a rather awkward option, imho. That's like saying breaking out of an infinite loop using a flag is awkward and that it would be better to have some form of stop loop keyword that you could use from outside the loop instead. Is it (...) (17 years ago, 24-Jul-07, to lugnet.robotics.nxt)

Message is in Reply To:
  stop task
 
I just noticed that there is no function to terminate a task like nqc . "stop" . I am currently setting up a global watchdog variable to signal a task to exit. Suggestion? --Elizabeth (17 years ago, 24-Jul-07, to lugnet.robotics.nxt)

6 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