To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.legosOpen lugnet.robotics.rcx.legos in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / legOS / 3246
3245  |  3247
Subject: 
Re: LONG DELAY after pressing RUN button (to end the program)
Newsgroups: 
lugnet.robotics.rcx.legos
Date: 
Sun, 27 Apr 2003 02:21:25 GMT
Viewed: 
3034 times
  
In lugnet.robotics.rcx.legos, CarlosLuis Rendón Monterroso writes:
I have another question now. I've two different kernels, legOS 0.2.6 and
brickOS 0.2.6.10 well, when using brickOS I'm experiencing a big delay after
pressing the  RUN button in order to stop the program (the LCD displays
"STOP" for quite a long time). On the other side, when using legOS that does
not happen. The program is quite simple, it's just for testing the lnp
addresing layer.

My question is why is this happening just with brickOS and not with legOS?

Because stuff was changed in BrickOS.  I can't tell you too much, but I'm
sure it's trying to shut-down the program in a cleaner way.

I think BrickOS waits 2 seconds before killing tasks.

You need to change your LegOS loop:
while(true)

to BrickOS:
while(!shutdown_requested())


while (true) {
   if (go == 1) {
     cputs ("hello");
     msleep(500);
     cls();
     go = 0;
   }
}



Message has 1 Reply:
  Re: LONG DELAY after pressing RUN button (to end the program)
 
(...) Wow, Steve I've never sucess to make adressing work .... with 2.5 kernel and lnpd with serial tower..... So I've write a library who permit to communicate with other RCX/PC (combot project) it's the first part of my project and i'll post it (...) (21 years ago, 27-Apr-03, to lugnet.robotics.rcx.legos)

Message is in Reply To:
  LONG DELAY after pressing RUN button (to end the program)
 
Hi there, I see that I'm the only one who has recently used this newsgroup. Well thanks to the people who has taken the time to answer my questions, such as nanobapt. I have another question now. I've two different kernels, legOS 0.2.6 and brickOS (...) (21 years ago, 27-Apr-03, to lugnet.robotics.rcx.legos)

3 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