To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.roboticsOpen lugnet.robotics in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / 22583
22582  |  22584
Subject: 
Multitasking
Newsgroups: 
lugnet.robotics
Date: 
Fri, 9 Jul 2004 19:10:24 GMT
Viewed: 
994 times
  
Hi,

I have some questions about usage of multitasking in robotics.

I think its necessary, because it simplifies programming.
Instead of breaking down actions in small pieces and check sensors in between.
For example: driving a square and watching bumpers

Different behavior of the multitasking:

1. Like the RCX Lego software
   Sensor will abort the running task, execute its own, but never return to
   the interrupted task.
2. Real Multitasking
   Each task runs independent from each other. Higher prio task will
   interrupt another task. When this task is finished, execution returns to the
   original task.
   I'm not shure is it the behavior of BrickOS? How BrickOS handles sensors, in
respect
   of task switching?

Which concept is better, abort the task and execute the new task or interrupt
the running
task and go back after finishing the high prio task?

Thx



Message has 2 Replies:
  Re: Multitasking
 
(...) Neither is universally better. Both have their uses. It all depends on what you want to do. If the sensor just indicates something that you need to make a small adjustment for (turn away from a bumper push, for instance), then returning to the (...) (20 years ago, 9-Jul-04, to lugnet.robotics)
  Re: Multitasking
 
Hi, how does BrickOS handle the following situation? Its a path follower robot with bumpers to detect an obstacle. When the robot starts it seeks the black path and follows it. When the robot hits an obstcle, he gets back and turns. How do I (...) (20 years ago, 18-Jul-04, to lugnet.robotics)

5 Messages in This Thread:


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

Custom Search

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