View Single Post
  #2   Spotlight this post!  
Unread 20-01-2016, 18:45
E, Palmer E, Palmer is offline
Registered User
FRC #5830 (The Irrational Engineers)
Team Role: Programmer
 
Join Date: Jan 2014
Rookie Year: 2009
Location: Maryland
Posts: 15
E, Palmer will become famous soon enoughE, Palmer will become famous soon enough
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.