Esempio n. 1
0
 public void init()
 {
     this.speed = 200;
     BPi.Setup();
     BPi.AutoUpdate = true;
     this.motor1 = new BPiMotor() { Port = BrickPi.PORT_B, Enabled = true };
     this.motor2 = new BPiMotor() { Port = BrickPi.PORT_C, Enabled = true };
     BPi.Timeout = 3000;
 }
Esempio n. 2
0
        public void main()
        {
            BPi.Setup();
            BPi.AutoUpdate = true;
            this.motor1 = new BPiMotor() { Port = BrickPi.PORT_B, Enabled = true };
            this.motor2 = new BPiMotor() { Port = BrickPi.PORT_C, Enabled = true };
            this.jsk = new BPiJoystick() {  Port = BrickPi.PORT_1 };

            BPi.Timeout = 3000;
            this.Go();
        }
Esempio n. 3
0
        public void main()
        {
            this.speed = 200;
            BPi.Setup();
            BPi.AutoUpdate = true;
            this.motor1 = new BPiMotor() { Port = BrickPi.PORT_B, Enabled = true };
            this.motor2 = new BPiMotor() { Port = BrickPi.PORT_C, Enabled = true };
            BPi.Timeout = 3000;

            Console.WriteLine("simplebot_speed start");
            this.Go();
        }