Subject:
|
nqc question
|
Newsgroups:
|
lugnet.robotics
|
Date:
|
Thu, 16 May 2002 18:37:19 GMT
|
Original-From:
|
Roel Scheijde <ROEL.SCHEIJDE@ihatespamTISCALI.NL>
|
Viewed:
|
460 times
|
| |
![Post a public reply to this message](/news/icon-reply.gif) | |
I want to have a motor turn as long as i press a touch sensor and
stop when i release it.
This is probly a very simple problem but I cant seem to solve it.
I tried if while and until but for some reason it didn't work
***
email: Roel.Scheijde@tiscali.nl
|
|
Message has 1 Reply: ![](/news/x.gif) | | Re: nqc question
|
| (...) What combinations of if while and until did you use? I'm not sure if you tried this already, but I would think that you could simply use the following code: while(1) { if(SENSOR_X == 1) On(OUT_Y); until(SENSOR_X == 0) } that should check it (...) (22 years ago, 16-May-02, to lugnet.robotics)
|
2 Messages in This Thread: ![You are here](/news/here.gif) ![](/news/46.gif) ![Re: nqc question -Marc Lewis (16-May-02 to lugnet.robotics)](/news/x.gif)
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|