Tuesday 9 March 2010

Project launch

Team list:

Kaiho Sy
Jungkyoo Park
Shazad Hussain
James Woods
Romi Dhillon

3 mar 2010

1 comment:

  1. This is a simple type of command.
    It shows how to follow a line. It is really simple program using no speed control.

    init: pause 1000

    main:
    if b1 is on then go_f ‘ forward
    if b2 is on then go_l ‘ left
    if b6 is on then go_r ‘ right
    goto go_s ‘ stop as no line nearby
    go_f: let pins = %10100000 ‘ go forward
    goto main
    go_l: let pins = 100000 ‘ go left
    goto main
    go_r: let pins = %10000000 ‘ go right
    goto main
    go_s:
    let pins = 000000 ‘ stop - not line anymore
    goto main

    ReplyDelete