View Single Post
  #2   Spotlight this post!  
Unread 28-02-2012, 19:06
Ian McShane Ian McShane is offline
Registered User
FRC #3585 (Rogue Robots)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2009
Location: NH
Posts: 141
Ian McShane will become famous soon enoughIan McShane will become famous soon enough
Re: VEX Motor module programming

What do you want to do with it? Create it? tell it to move?

public static Victor Motor1; //defines "Motor1" as a Victor


private static final int PORT_ONE = 1; //defines "PORT_ONE" as an int number 1

Motor1 = new Victor(PORT_ONE); //defines Victor as put in port 1

Motor1.set(.5) //sets speed of motor/victor, argument can be between -1 to 1. 1 is full speed, -1 is full speed backwards.
__________________
in FIRST, it's process over product, and team over robot.
http://www.roguerobotsof4h.com/
Team 3585 Rogue Robots of 4-H
Reply With Quote