(...) I don't see how that could possibly work - where does this code turn the motor off? You need something like: task sensor_to_motor () { while ( 1 ) /* Do this forever... */ { Off ( motor ) ; /* Turn the motor off */ while ( sensor == 0 ) /* (...) (23 years ago, 16-May-02, to lugnet.robotics)
|