Subject:
|
Re: LONG DELAY after pressing RUN button (to end the program)
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Sun, 27 Apr 2003 11:52:06 GMT
|
Viewed:
|
3364 times
|
| |
| |
Steve Hassenplug wrote:
> 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;
> > }
> > }
> >
> >
>
>
>
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 when
english documentation is available :)
nanobapt
|
|
Message is in Reply To:
3 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|