View Single Post
  #4   Spotlight this post!  
Unread 30-06-2011, 12:58
Egg 3141592654's Avatar
Egg 3141592654 Egg 3141592654 is offline
Now a mentor, always a student
FRC #0810 (Mechanical Bulls)
Team Role: Programmer
 
Join Date: Feb 2010
Rookie Year: 2008
Location: Long Island
Posts: 53
Egg 3141592654 is on a distinguished road
Re: VEX motors on a FRC robot

If you are using a speed controller on the motor, it isn't different than coding a regular FIRST motor. Firstly, you need to determine what speed controller it is (Victor or jag). Depending on which it is, the constructor will be something like
Code:
 /*speed controller type*/ motor = new /*speed controller type */(4,/*pwm number on sidecar*/);
/*during teleport period...*/
motor.setSpeed(*/a double less than 1*/);
Hope this helps a tad, ill try to respond, budpt im in germany right now and wifi is sketchy here...
__________________
"The answers to the book of life are not found in the back." Charlie Brown

Software Mentor - Team Apex Robotics 5803

Lead Programmer - Team 810 Mechanical Bulls '09-'11

Last edited by Egg 3141592654 : 30-06-2011 at 13:04. Reason: speed control name replaced with speed control type for clarity
Reply With Quote