Subject:
|
Re: Polling sensor values with wait_event
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Wed, 27 Nov 2002 15:27:10 GMT
|
Viewed:
|
3260 times
|
| |
| |
Hi Joe,
Thanks for your reply, I guess that is the solution to use in this case.
I'll still just get values every 20ms. By changing the timeslice I
could have this go a bit faster though.
Thomas
|
|
Message has 1 Reply: | | Re: Polling sensor values with wait_event
|
| Thomas, I had a thought about this situation. You could write a function that sets a flag when the event is triggered, do nothing otherwise. You could call this function from within each of the tasks you write (at a somewhat high frequency ... say (...) (22 years ago, 28-Nov-02, to lugnet.robotics.rcx.legos)
|
Message is in Reply To:
| | Re: Polling sensor values with wait_event
|
| Thomas, You are mostly correct. However, keep in mind that tasks with the same priority get checked in turn. The first task in the priority chain does not get undo precedence over the others in the same priority level. Example: Tasks A, B and C all (...) (22 years ago, 27-Nov-02, to lugnet.robotics.rcx.legos)
|
4 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
|
|
|
|