Subject:
|
Re: RCX Programming Questions and Sensor Ideas
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Tue, 10 Nov 1998 22:21:33 GMT
|
Original-From:
|
Kekoa Proudfoot <kekoa@Graphics.Stanford.EDU>
|
Viewed:
|
2759 times
|
| |
| |
> An example. Say you want to prevent two tasks from fighting over motor
> 1. Just insert an instruction in each task before operating the motor
> to check that var 31 contains zero. If it does, set var 31 to 1 and
> control the motor, then set var 31 to 0 again. If a task sees var 31 is
> non-zero then you can program it to wait or abort as you wish.
This assumes that the check and the set are, together, atomic. Does the
SDK document describe what if/why this might be atomic? I haven't had a
chance to read it in enough detail to find this answer for myself.
-Kekoa
|
|
Message has 2 Replies: | | Re: RCX Programming Questions and Sensor Ideas
|
| (...) ...and it would be my sincerest recommendation that you NOT read it, Kekoa. It would be safer from the reverse-engineering standpoint that you NOT use this SDK in any manner. *I* can read it, though <g>, and I can find nothing that indicates a (...) (26 years ago, 10-Nov-98, to lugnet.robotics)
|
Message is in Reply To:
| | Re: RCX Programming Questions and Sensor Ideas
|
| In article <255199E650C3D11194B...stBuy.com> , Cwikla, Brian <Brian.Cwikla@BestBuy.com> writes (...) An example. Say you want to prevent two tasks from fighting over motor 1. Just insert an instruction in each task before operating the motor to (...) (26 years ago, 10-Nov-98, to lugnet.robotics)
|
17 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
|
|
|
Active threads in Robotics
|
|
|
|