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; }
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(); }
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(); }