Subject:
|
Re: video game type thing...
|
Newsgroups:
|
lugnet.robotics.rcx.legos
|
Date:
|
Thu, 15 Mar 2001 11:53:49 GMT
|
Viewed:
|
1636 times
|
| |
| |
Nick,
The TOUCH_x macros are boolean - they return true or false. You should be
testing
if (TOUCH_2) {....}
HTH
ROSCO
In lugnet.robotics.rcx.legos, Nick Howell writes:
> I just got new batteries for my RCX, so I just did an actual test. I didn't
> get very far. I don't believe that it is registering the touch sensors.
> Here's how I had it:
>
> if(TOUCH_2 == 1)
> {
> do this and that and that;
> }
>
> What's wrong with it? I should probably have it print the results to see
> what's really getting in and what's not.
>
> Nick H.
|
|
Message has 1 Reply:
Message is in Reply To:
| | Re: video game type thing...
|
| I just got new batteries for my RCX, so I just did an actual test. I didn't get very far. I don't believe that it is registering the touch sensors. Here's how I had it: if(TOUCH_2 == 1) { do this and that and that; } What's wrong with it? I should (...) (24 years ago, 13-Mar-01, to lugnet.robotics.rcx.legos)
|
13 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
|
|
|
|