 | | Re: How to read the touch sensors on the Scout in NQC?
|
|
I was using my scout this past weekend as a coinbox detector to launch a mono rail. The touch sensors work exactly as Dave suggests. You can also just do the following: until(SENSOR_1); Waits until it's touched. until(!SENSOR_1); Waits until the (...) (24 years ago, 17-Dec-01, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
|
|
 | | Re: Injection-Molding Factory
|
|
(...) I will try to answer your questions here: Andrew- ROBOLAB is a great program. NQC is also a great program. I have used them both. It depends on which you prefer. In my case, I do not use (say) C++ elsewhere and I find ROBOLAB easier to (...) (24 years ago, 17-Dec-01, to lugnet.robotics)
|
|
 | | Re: Shuting up the RCX
|
|
(...) Change the firmware. Maybe we should make this a selling point of Lejos :-) (at the moment it beep too, I think) Jürgen (24 years ago, 17-Dec-01, to lugnet.robotics.rcx)
|
|
 | | Re: How to read the touch sensors on the Scout in NQC?
|
|
(...) That is what I thought, but it will determine if the touch sensor is pressed. (...) Dunno, I'll try. Then again, if !=255 works... (...) If it were not for Perl I'd never write a line of code ^_^ (24 years ago, 17-Dec-01, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
|
|
 | | Re: Home-made One-way valve
|
|
(...) Difficult to regulate though - as the same pump affects both. When the high pressure one is full & low pressure one needs pumping, it'll keep adding pressure to both (one outside, one inside). You'd have to have some kind of pressure release (...) (24 years ago, 17-Dec-01, to lugnet.robotics, lugnet.technic, lugnet.build)
|
|
 | | Re: Three kinds of motors?
|
|
(...) All three work with Mindstorms. * The micromotor is low in power and low in speed - you'd really only want to use it where space is at a premium. The micromotor is just 2x2 studs and two bricks high! * The motor that comes with RIS and RDS is (...) (24 years ago, 17-Dec-01, to lugnet.robotics)
|
|
 | | Three kinds of motors?
|
|
Looking at brickbay for an extra motor for mindstorms i found three different kinds of motor: - Technic motor (not the one it came with RIS) - Technic Mini-motor (RIS one) - Technic Micromotor (?) Can someone explain the differences, and most (...) (24 years ago, 17-Dec-01, to lugnet.robotics)
|
|
 | | Shuting up the RCX
|
|
Hi all. Just a simple question, does anybody know if there is anyway to stop rcx beeping everytime i turn it on or off. It is terribly annoying at 2:00 in the morning :-) Thank Francis (24 years ago, 17-Dec-01, to lugnet.robotics.rcx)
|
|
 | | Re: How to read the touch sensors on the Scout in NQC?
|
|
This program turns on motor A and leaves it running until a touch sensor attached to input 1 is pressed, then it turns off the motor and plays a sound: task main() { On(OUT_A); until(SENSOR_1 == 1); Off(OUT_A); PlaySound(SOUND_UP); } Dave (...) (24 years ago, 16-Dec-01, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
|
|
 | | Re: How to read the touch sensors on the Scout in NQC?
|
|
Hi Chris, (...) this is a bit crazy, unless your sensor value is a bit pattern. (...) This is sensible, but are you sure it's ok to use equality and not inequalities like SensorValueRaw(1) < 240? (...) but it's equivalent, also in C, where & is (...) (24 years ago, 16-Dec-01, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
|