 | | Re: semaphores
|
| a short example: #include <semaphore.h> // for semaphore opperations // global buffer, used to store incoming messages. // the buffer is checked by the application waiting for the message. struct inn_msg{ char *msg; sem_t lock; }; //create a (...) (25 years ago, 9-May-02, to lugnet.robotics.rcx.legos)
| | |  | | Re: New MOC: RoboArm I
|
| OH SNAP!! That's really cool! And then Robo Arm 2!!! Dang it looks complicated, can't wait to shake it's hand in person. ;) Oh man, look at all those cool components! Drool! Legomaster (25 years ago, 9-May-02, to lugnet.robotics, lugnet.technic, lugnet.build)
| | |  | | RE: Apparent 'time-out'
|
| (...) Thanks... (...) When the RCX is sitting idle, the pbForth interpreter is spinning and looking for characters from the IR. I doubt that sunlight (or flashlight) would be interpreted as valid chars, and the error handling should just discard the (...) (25 years ago, 9-May-02, to lugnet.robotics.rcx.pbforth)
| | |  | | semaphores
|
| Does anyone have any code that implements semaphores and shows where they might be useful? That is one place that the documentation seems a little weak. Thanks, Sam (25 years ago, 9-May-02, to lugnet.robotics.rcx.legos)
| | |  | | Re: Apparent 'time-out'
|
| The GUI version is 2.1.0. The pbForth version (COLD) is 2.1.2. I am using the USB tower with RIS 2.0. Once the RCX stops responding, if I pull out a battery and re-upload the firmware, the RCX will respond again to the same GUI session. In other (...) (25 years ago, 9-May-02, to lugnet.robotics.rcx.pbforth)
| |