 | | (Some) HiTechnic Sensors to be Produced Once Again?
|
|
Looks like it to me. (URL) know more? Max (22 years ago, 27-Dec-03, to lugnet.robotics, lugnet.technic)
|
|
 | | Re: Pneumatic valve mystery
|
|
(...) What about tighten the things a bit more with: int pos = whichPosition; valveMotor.forward(); while( pos != 1 ) { pos = whichPosition; } valveMotor.stop(); LCD.showNumber( pos ); This should be the fastest loop I can think of in terms of (...) (22 years ago, 26-Dec-03, to lugnet.robotics)
|
|
 | | Re: Pneumatic valve mystery
|
|
Alex, Many thanks! Your improved code has been chugging along nicely; probably 100 cycles with no mysteries! Walt White (22 years ago, 26-Dec-03, to lugnet.robotics)
|
|
 | | Re: Pneumatic valve mystery
|
|
(...) I suspect you're having problems with indeterminate values in the whichPosition variable. This might happen due to the SensorListener getting called in the middle of one of the tests for your while loops... or it might have some other cause. (...) (22 years ago, 26-Dec-03, to lugnet.robotics)
|
|
 | | Re: Pneumatic valve mystery
|
|
(...) touch (...) to? (...) not (...) Kevin, Thanks for the reply. As you might guess, I am also a novice at posting and replying to a "list." Took two trys to get it posted! I do get the touch sensor pressed every time the drum passes it. I can see (...) (22 years ago, 26-Dec-03, to lugnet.robotics)
|