Examples of GRTRobotBase


Examples of com.grt192.mechanism.GRTRobotBase

        addMechanism("RobotBase", rb);
        System.out.println("Started Event Controller");
    }

    public void yAxisMoved(JoystickEvent e) {
        GRTRobotBase base = ((GRTRobotBase) getMechanism("RobotBase"));
        if (e.getSource().getId().equals("left")) {
            base.tankDrive(e.getValue(), base.getRightSpeed());

        } else if (e.getSource().getId().equals("right")) {
            base.tankDrive(base.getLeftSpeed(), e.getValue());
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.