コード例 #1
0
ファイル: DriveDistance.cs プロジェクト: taylor-brown/irobot
        public byte[] getScript()
        {
            CommandScript cs = new CommandScript();
            DriveVelocity dv = new DriveVelocity();

            dv.setVelocity(velocity);
            cs.addBytes(dv.getCommand());
            cs.addBytes(this.getCommand());
            dv.setVelocity(0);
            cs.addBytes(dv.getCommand());
            return(cs.getScript());
        }
コード例 #2
0
ファイル: TurnAngle.cs プロジェクト: taylor-brown/irobot
        public byte[] getScript()
        {
            CommandScript cs = new CommandScript();

            cs.addBytes(getTurnAngle());
            cs.addBytes(getWaitAngle());
            DriveVelocity dv = new DriveVelocity();

            dv.setVelocity(0);
            cs.addBytes(dv.getCommand());
            return(cs.getScript());
        }