View Full Version : VEX Motor module programming
Hello,
how can I program the VEX Motor module?
Thank you for help, Team 2231.
Ian McShane
28-02-2012, 19:06
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.
PAR_WIG1350
28-02-2012, 22:56
Hello,
how can I program the VEX Motor module?
Thank you for help, Team 2231.
There are 3 vex items you could be referring to, a spike, a victor, and a 2-wire gearmotor. Which one do you want to know about?
ProgrammerMatt
28-02-2012, 23:06
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.
Wouldn't this be easier..
Victor vexmotor = new Victor(#);
vexmotor.set(0.5);
Wouldn't this be easier..
Victor vexmotor = new Victor(#);
vexmotor.set(0.5);
thnx you!
ProgrammerMatt
04-03-2012, 11:58
thnx you!
Your welxcome
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.