|
|
 | | Re: How to read the touch sensors on the Scout in NQC?
|
| I've sort of solved my problem, but not in a way which really makes total sense. Both of the below fragments work as expectd: #1 if ((SensorValueRaw(1) & SensorValueRaw(0)) != 255) #2 if ((SensorValueRaw(1) != 255) || (SensorValueRaw(0) != 255)) (...) (24 years ago, 16-Dec-01, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
| | |  | | How to read the touch sensors on the Scout in NQC?
|
| All, I'm feeling pretty stupid right about now. I've read the NQC docs, looked in the newsgroups, books, etc, but I can't seem to figure out how to read the touch sensors on my Scout. I want to implement a bumper checking task but no matter how I (...) (24 years ago, 16-Dec-01, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
| | |  | | Re: About SensorValueRaw(SENSOR_3) in Scout
|
| Zhengrong, I'm sure you figured this out by now, but I just got it last night so here is a task which reads the light sensor and outputs a sound based on the raw reading. task drone() { CalibrateSensor(); while (shut_up==0) { int b = (...) (24 years ago, 16-Dec-01, to lugnet.robotics.scout)
| | |  | | Re: learning RoboLab (long)
|
| (...) I haven't seen this but I imagine that it is similar to the Control Lab version, only taking advantage of the multi-processing capability of the RCX. At least that was my $0.02 during the brainstorming session for this packet. :) (...) If this (...) (24 years ago, 15-Dec-01, to lugnet.robotics.rcx.robolab, lugnet.edu, lugnet.dacta, lugnet.books, lugnet.robotics.scout, lugnet.robotics.vll)
| | |  | | Re: learning RoboLab (long)
|
| 1. Click www.lego.com/dacta/I...tabase.asp 2. Click the "Quick" button. 3. Click "Search" button. (...) (24 years ago, 10-Dec-01, to lugnet.robotics.rcx.robolab, lugnet.edu, lugnet.dacta, lugnet.books, lugnet.robotics.scout, lugnet.robotics.vll)
| |