|
| | Re: Design by Contract (long post)
|
| (...) For more fun with asserts: See if your compiler supports the FILE and LINE macros (or something equivilant). #ifdef NDEBUG #define assert(x) ((void)0) #else #define assert(x) if (x) else assertfail(FILE,LINE); #endif your assert_fail function (...) (21 years ago, 9-Jan-04, to lugnet.robotics.rcx, FTX)
| |
| long (score: 0.414) |
|
| | Re: Design by Contract (long post)
|
| (...) Hi Iain! (...) Cool! (...) I have a question about this: If NDEBUG is defined, shouldn't it still execute x? That is, shouldn't the code in assert.h (or wherever) be: #ifdef NDEBUG #define assert(x) (x) #else #define assert(x) if (x) else (...) (21 years ago, 8-Jan-04, to lugnet.robotics.rcx, FTX)
| |
| long (score: 0.413) |
|
| | Re: Design by Contract (long post)
|
| (...) <delurk> The first definition of assert is the correct, standard definition. However there is a slight boo boo in the original post in the line: assert (myptr = malloc (sizeof (mystruct)); Which will delete the malloc when NDEBUG is defined. (...) (21 years ago, 8-Jan-04, to lugnet.robotics.rcx, FTX)
| |
| long (score: 0.413) |
|
| | Re: Design by Contract (long post)
|
| (...) I agree it seems to be the wrong way round. That's the standard implementation. NDEBUG seems to stand for "No debug". One advantage of making it negative, is that you get the assert()s if you don't do anything (ie dont define NDEBUG). BTW, (...) (21 years ago, 8-Jan-04, to lugnet.robotics.rcx, FTX)
| |
| long (score: 0.413) |
|
|
| long (score: 0.413) |
|
|
| long (score: 0.413) |
|
| | Re: installing Robolab under Mac OS X
|
| (...) Great news for MAC/OSX fans this is not a rumor according to the PITSCO 2004 catalog there will be Native OSX CD version available JUNE 2004. You will need ROBOLAB 2.5 software with training missions. If you have the 2.5 ROBOLAB RIS you can (...) (21 years ago, 11-Jan-04, to lugnet.robotics.rcx, FTX)
| |
| long (score: 0.413) |
|
| | Re: GP2D12 IR sensor RCX active sensor interface?
|
| Hi all, It seems I missed this thread... (...) As suggested by Rainer, if you use an external battery everything is much simpler, you could even use a 4.5V battery to avoid regulator. (...) I don't think you can improve this circuit with a simple (...) (23 years ago, 10-Oct-01, to lugnet.robotics.rcx)
| |
| ir (score: 0.413) |
|
|
| ir (score: 0.413) |
|
| | Re: GP2D12 IR sensor RCX active sensor interface?
|
| (...) Hi Gareth, maybe you don't need an external regulator ?!?! But, the specs also say that rating of supply voltage is "-0.3 to +7V". Do you know what happens to the sharp if supply voltage rises above +7V ??? (the mux has a supply voltage of +9V (...) (23 years ago, 9-Oct-01, to lugnet.robotics.rcx)
| |
| ir (score: 0.413) |
|
| | Re: Does RIS2.0 set use the fiber optics cable?
|
| "nanobapt" <nanobapt@wanadoo.fr> wrote in message news:3FF961FA.404050...adoo.fr... (...) set, (...) of (...) Hi, Thanks for that reply. If the fiber optics cable in the spybotics set have an identical length to the RIS2.0 one then it seems Peeron's (...) (21 years ago, 5-Jan-04, to lugnet.robotics.rcx)
| |
| long (score: 0.413) |
|
| | Max. Space of RCX?
|
| Hy@all I've wrote a Programm for Roboter who has to play "Ship sink". The problem is, that the programm doesn't work and i can't find the failure. It's very long, so i shouldn't post it here. I ask if i can send the skript to somebody who has time (...) (21 years ago, 8-Jan-04, to lugnet.robotics.rcx)
| |
| long (score: 0.413) |
|
|
| ir (score: 0.413) |
|
| | Implementation of Installable Timers
|
| Hello everybody. I have an implementation of installable timer handlers, and Id like to solicit some feedback. This is definitely a facility that Id like to see in BrickOS. The implementation doesnt have to be my one. But I thought that Id just (...) (21 years ago, 8-Jan-04, to lugnet.robotics.rcx)
| |
| long (score: 0.413) |
|
| | Re: GP2D12 IR sensor RCX active sensor interface?
|
| (...) Hi Gareth, I guess the three wire solution won't work. (Not tested it myself) The Sharp GP2D12 have a current consumption of about 35mA-50 mA (at 5V) !!!! Michael Gasperi mentioned that an input of the RCX only give about 15mA. ((URL) techno (...) (23 years ago, 8-Oct-01, to lugnet.robotics.rcx)
| |
| ir (score: 0.413) |
|
| | Re: GP2D12 IR sensor RCX active sensor interface?
|
| (...) Hi Gareth, i build a interface (mutiplexer) using one input for three (ore more with little changes) sharp GP2D12 and a 9V battery. (Actually Michael Gasperi builds it !!!! I only made some changes !!!!) Have a look at : (2 URLs) more general) (...) (23 years ago, 8-Oct-01, to lugnet.robotics.rcx)
| |
| ir (score: 0.413) |
|
| | Does RIS2.0 set use the fiber optics cable?
|
| Hi, I'm putting together the parts for my RIS2.0 set in order to sell the set, but I can't find the fiber optics cable... I might have thrown it away by accident.... Anyway, I've looked on the CD and in the instructions and I can't seem to find the (...) (21 years ago, 5-Jan-04, to lugnet.robotics.rcx)
| |
| long (score: 0.413) |
|
| | Re: GP2D12 IR sensor RCX active sensor interface?
|
| (...) Thanks. I actually have all your stuff bookmarked already and am aware of your 3 sensor mux :-) What I really want is something simple - like Phillo's design - that is plug-n-play on the RXC. Unfortanately his circuit board is a little bigger (...) (23 years ago, 8-Oct-01, to lugnet.robotics.rcx)
| |
| ir (score: 0.412) |
|
| | GP2D12 IR sensor RCX active sensor interface?
|
| I recently acquired several Sharp GP2D12 IR distance sensors that I want to attach to the RCX for use in the robotics course I'm teaching at Vassar College. I found an RCX interface circuit for this sensor at (URL) I go ahead and build it, I though (...) (23 years ago, 5-Oct-01, to lugnet.robotics.rcx)
| |
| ir (score: 0.412) |
|
| | Sensor Power
|
| ok, I have a real question. I'm interested in sending messages between RCXs using only the sensor ports. I've tested and found by switching between active and passive, signals can be sent, however, when the port is set to active, it is not powered (...) (21 years ago, 5-Jan-04, to lugnet.robotics.rcx.legos)
| |
| long (score: 0.412) |