| | How is this?
|
| One of my students built the chainsaw model from nxtprograms.com. He wanted to make the blade turn only when it was at a distance less than 9 inches from the table. So he attached an ultrasonic and made one mod to the program. The program in NXT-G (...) (15 years ago, 23-Jan-10, to lugnet.robotics.nxt)
| | | | Re: How is this?
|
| (...) I can see how this can happen and it depends on the sequence of events. This sequence will cause this behavior: touched AND distance < 9 - Motor turns on touched AND distance > 9 - Motor running, waiting for distance < 9 untouched AND distance (...) (15 years ago, 23-Jan-10, to lugnet.robotics.nxt)
| | | | Re: How is this?
|
| (...) Yes, change the "wait for 9" to be a "check for 9", and the problem should go away... Loop forever if Touched and distance < 9 { turn on motor } else { turn off motor } Kevin (14 years ago, 19-Aug-10, to lugnet.robotics.nxt)
| |