To LUGNET HomepageTo LUGNET News HomepageTo LUGNET Guide Homepage
 Help on Searching
 
Post new message to lugnet.robotics.rcx.nqcOpen lugnet.robotics.rcx.nqc in your NNTP NewsreaderTo LUGNET News Traffic PageSign In (Members)
 Robotics / RCX / NQC / 1281 (-20)
  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 ^_^ (23 years ago, 17-Dec-01, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
 
  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 (...) (23 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 (...) (23 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?
 
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)) (...) (23 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 (...) (23 years ago, 16-Dec-01, to lugnet.robotics.rcx.nqc, lugnet.robotics.scout)
 
  Re: MIDI to NQC/RIS2.0 translator "Midi2LSC"
 
Makino-san, I'm gald you did this because you just saved me the trouble of doing it myself!!! Thanks, Chris Barker (...) (23 years ago, 16-Dec-01, to lugnet.robotics, lugnet.robotics.rcx, lugnet.robotics.rcx.nqc)
 
  Re: Trigonometry and NQC
 
Thank you for these posts! This idea of creating a table of arctangents is just what I need. I'll let everyone know how it works after I redesign the racer. (The prototype, designed for speed, experienced a significant mechanical shock when it (...) (23 years ago, 14-Dec-01, to lugnet.robotics.rcx.nqc)
 
  Re: Trigonometry and NQC
 
Hi Richard, No, NQC does not implement any of the trig functions. However, you can do it yourself. The idea is to use a second order polynomial to approximate the sine function. You can get pretty good accuracy (within about 5%) if you break up the (...) (23 years ago, 12-Dec-01, to lugnet.robotics.rcx.nqc)
 
  Re: Trigonometry and NQC
 
(...) Hi Rich, Have a look at (URL) where you can find various tips around trig-functions under the restriction of integer values. Claude (23 years ago, 13-Dec-01, to lugnet.robotics.rcx.nqc)
 
  Re: Trigonometry and NQC
 
(...) Hi Rich, there are no trig functions, because there's no float. I had the same problem and was able to approximate these values. I created two tables with the necessary values. The first table includes the values of the tangens of a angle. (...) (23 years ago, 13-Dec-01, to lugnet.robotics.rcx.nqc)
 
  Trigonometry and NQC
 
Hi! I'm working on a project where a robot needs to travel a right triangle with unkown side lengths. Basically, the robot starts at a point in a room, travels perpendicularly toward a wall, turns 90 degrees left when it hits, and when it gets to (...) (23 years ago, 12-Dec-01, to lugnet.robotics.rcx.nqc)
 
  BricxCC release 3.3.2.13
 
Yesterday, I uploaded release 3.3.2.13 of BricxCC to my website: (URL) version fixes the access violation on calling the UpgradeRegistry method at startup (not all users encountered this problem). I am beginning to implement the "save desktop" (...) (23 years ago, 4-Dec-01, to lugnet.robotics.rcx.nqc)
 
  Re: Problems with BricxCC release 3.3.2.12
 
(...) I'd be happy to leave the MDI world behind and switch to a tabbed page control for handling multiple files. But I would need to get a feel from the user community to see whether that would be a problem. There are some known problems with (...) (23 years ago, 2-Dec-01, to lugnet.robotics.rcx.nqc)
 
  Re: Problems with BricxCC release 3.3.2.12
 
(...) I've discovered a really stupid bug in my code that was causing the access violations in version 3.3.2.12. This bug has been there since I introduced the registry upgrade feature (3.3.2.2) as far as I can determine. It has been fixed but I (...) (23 years ago, 2-Dec-01, to lugnet.robotics.rcx.nqc)
 
  Re: Problems with BricxCC release 3.3.2.12
 
(...) Will, it doesn't crash on my system, too. But I have to complain about the way maxed windows are handled. Try the following: - open new window - max it (now you can re-min it, too) - you see the little waving guy in the menu - open a new 2nd (...) (23 years ago, 2-Dec-01, to lugnet.robotics.rcx.nqc)
 
  Re: Problems with BricxCC release 3.3.2.12
 
(...) Thanks for testing BricxCC, John. I appreciate it greatly. I'm glad it is working for at least some users. :-) John Hansen (23 years ago, 2-Dec-01, to lugnet.robotics.rcx.nqc)
 
  Re: Problems with BricxCC release 3.3.2.12
 
(...) Hi John: As you requested I just tried out your latest ver. 3.3.2.12. I have a P2 450, 256 megs of ram. A Radeon 7200, driver ver. 6.13.3276. My desktop is set at 1024 by 768. I just wrote a quick little program, downloaded to my RCX and ran (...) (23 years ago, 1-Dec-01, to lugnet.robotics.rcx.nqc)
 
  Problems with BricxCC release 3.3.2.12
 
I've had reports of access violations and run time error 217 when trying to execute BricxCC version 3.3.2.12 (i.e., the most recently released version). It runs fine on my development machine but it exhibits this behavior on another PC in my house. (...) (23 years ago, 1-Dec-01, to lugnet.robotics.rcx.nqc)
 
  Re: BricxCC release 3.3.2.12
 
(...) I guess I don't see so close a tie between the NQC code in a .NQC file and the brick type, port number, and program slot. A program running on RCX in slot 3 downloaded via COM4 could just as well run on an RCX2 in slot 1 downloaded via USB2. (...) (23 years ago, 29-Nov-01, to lugnet.robotics.rcx.nqc)
 
  Re: BricxCC release 3.3.2.12
 
(...) In the simplest implementation (i.e., the one I'm likely to write) if you double click on an NQC file it will always open a new instance of BricxCC. That's the way it works right now. I may have it always bypass the "search" form when opening (...) (23 years ago, 29-Nov-01, to lugnet.robotics.rcx.nqc)


Next Page:  5 more | 10 more | 20 more

Redisplay Messages:  All | Compact

©2005 LUGNET. All rights reserved. - hosted by steinbruch.info GbR