To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcxOpen lugnet.robotics.rcx in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / *6525 (-5)
  Re: HOWTO Demo.c
 
That is correct each Task started has a higher priority and they all have a higher prority than task_swapper like Prio Task 1 -- Task Swapper 2 -- Motor Driver Task 3 -- Light Sensor Task 4 -- Touch Sensor I changed the all the priorities to 1 but I (...) (22 years ago, 9-Jul-02, to lugnet.robotics.rcx.legos)
 
  Re: HOWTO Demo.c
 
If I understand this correctly (which I doubt) each task you start, has a higher priority, and they all have a higher priority than the 'task_swapper' task. Try setting all the priorities the same. Like to 1. See what that does. (...) (22 years ago, 9-Jul-02, to lugnet.robotics.rcx.legos)
 
  Re: HOWTO Demo.c
 
The code I have taken out of HOWTO.ps (URL) given at the end of the document under the name Demo.c I have fixed some compile time errors (like mismatching process ids in the kill call, the function for getting button state is dbutton() and not (...) (22 years ago, 9-Jul-02, to lugnet.robotics.rcx.legos)
 
  Re: HOWTO Demo.c
 
I'm no expert, but I can try to help you figure it out. Let's start with something simple. What version of LegOS are you using? How are you starting the 'task_swapper' task? What is in the 'motor_driver' task? At one time, when I was working with (...) (22 years ago, 9-Jul-02, to lugnet.robotics.rcx.legos)
 
  HOWTO Demo.c
 
Need Help, if someone has faced such a problem or knows the fix please do reply. In the legOS Howto their is a demo code demo.c which has some task switching examples I am having trouble with the following piece of code int task_swapper() { (...) (22 years ago, 9-Jul-02, to lugnet.robotics.rcx.legos)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

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