|
Re: Example Robot Java Project
I wouldn't suggest using an example. If you want something really simple and fast just make a new Robot Project. Then go to The Robot Class. create a joystick object "Joystick joy1 =new Joystick (0);" then create a motor object for each motor controller/Cim (My team personally uses talon motor controllers)"Talon Motor1 = new Talon(PWM PORT);" then go to your teleopperiodic and pull the X and Y value of the joystick, set it to a double . Then use double to set the speed of the motors.
|