Beispiel #1
0
        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());
        }
Beispiel #2
0
        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());
        }