Subject:
|
Re: legOS
|
Newsgroups:
|
lugnet.robotics.scout
|
Date:
|
Wed, 14 Feb 2001 20:47:11 GMT
|
Viewed:
|
3088 times
|
| |
| |
Alex wrote:
> > If you're using a Scout then you need to add the -Tscout option...
> >
> > nqc -Tscout -d test.nqc
> >
> > Unless you are using NQC 2.3 b1, you'll need to manually set the Scout
> > in "power mode" before trying to download. (version 2.3 b1 will do this
> > automatically for you via some IR commands).
> >
> >
> > Dave
>
> Thanks I got the test.nqc flie to download and it worked....but when I try any
> program from the unoffical guide to lego mindstorms robots like the Hank The
> Bumper Tank program, it gives me the undifined variable error it says
> "undifined variable 'SENSOR_TOUCH'" same with Zangs light seeker program.
> the only program that works is your test.nqc program...am I not saving the
> program right? I save it as "Hank.nqc" but when I put in that name it cant
> find the file I have to put in "Hank.nqc.txt"
> kinda weird
>
> Alex
As far as sensors go for the SCOUT you DO NOT have to declare them at all. Just
comment out anything to do with declaring Sensors. The scout uses a different
command to get the RAW values.
For the Scout the the sensors are always TOUCH.
Hope that helps.
Dean
--
Coin-Op's For Sale!: http://www.akasa.bc.ca/tfm/coin-op.html
Dean's Lego Workshop: http://www.akasa.bc.ca/tfm/lego_wr.html
Vancouver Lego Club: http://www.akasa.bc.ca/vlc
|
|
Message has 1 Reply: | | Re: legOS
|
| (...) Just (...) Thank I figured out how to use the sensors I must have an old version or somthing because i have to write the "#ifdef"decleration and the "#endif" decleration on top and on the bottom of the "SetSensor(SENSOR_1, SENSOR_TOUCH);" here (...) (24 years ago, 15-Feb-01, to lugnet.robotics.scout)
|
Message is in Reply To:
| | Re: legOS
|
| (...) Thanks I got the test.nqc flie to download and it worked....but when I try any program from the unoffical guide to lego mindstorms robots like the Hank The Bumper Tank program, it gives me the undifined variable error it says "undifined (...) (24 years ago, 14-Feb-01, to lugnet.robotics.scout)
|
15 Messages in This Thread:
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
This Message and its Replies on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|