 | | Multitasker test script
|
|
John, You might want to try this little script to try out the tasker. It's based on Koh's demo. If you type TASK0 AWAKE and then .TASKS, you will see the chain is ok and that TASK0 is running. Now press the RUN button on the RCX and try .TASKS (...) (28 years ago, 12-May-99, to lugnet.robotics.rcx.pbforth)
|
| |
 | | RE: Multitasker test script
|
|
Previously, I wrote (...) If anyone else out there is tempted to try the pbFORTH tasker, I will email the srec to you. I have not posted it on my website because it is very early beta software. Cheers, Ralph Hempel - P.Eng ---...--- Check out (...) (28 years ago, 12-May-99, to lugnet.robotics.rcx.pbforth)
|
| |
 | | Re: A recursion question/test...
|
|
(define (sum num) (if (zero? num) 0 (+ num(sum (- num 1))))) -- Richard Clemens Associate Professor Computer Science Department West Virginia Wesleyan College Buckhannon, West Virginia 26201 clemens@wvwc.edu 304.473.8421 ----- Original Message ----- (...) (28 years ago, 12-May-99, to lugnet.robotics)
|
| |
 | | Re: A recursion question/test...
|
|
(...) Well, you didn't specify if the numbers existed in a list or were iterative, and you didn't specify language so: Smalltalk: ^list sum. or ^(1..n) sum. sorry.. if you'll excuse Perl... List: foreach $num (@list) {$result += $num;} return (...) (28 years ago, 12-May-99, to lugnet.robotics)
|
| |
 | | Re: Scheme
|
|
A simple scheme interface such as (sensor <num> <type> <mode>) or (motor <letter> <direction> <speed>) could prove a valuable addition to scheme teaching functions. Students could explore functions (i.e. just small "programs") to include the ability (...) (28 years ago, 12-May-99, to lugnet.robotics)
|