Go to Post I'm a bit wary about playing on the new fields, however, because of the Carson/Carver/Hopper/Tesla Curse. I hear no alliance from those divisions has ever won championships. - [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 20-02-2012, 13:29
SheMesH SheMesH is offline
Registered User
FRC #2231
 
Join Date: Jan 2012
Location: Israel
Posts: 5
SheMesH is an unknown quantity at this point
VEX Motor module programming

Hello,
how can I program the VEX Motor module?
Thank you for help, Team 2231.
Reply With Quote
  #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
  #3   Spotlight this post!  
Unread 28-02-2012, 22:56
PAR_WIG1350's Avatar
PAR_WIG1350 PAR_WIG1350 is offline
Registered User
AKA: Alan Wells
FRC #1350 (Rambots)
Team Role: Alumni
 
Join Date: Dec 2009
Rookie Year: 2009
Location: Rhode Island
Posts: 1,190
PAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond reputePAR_WIG1350 has a reputation beyond repute
Re: VEX Motor module programming

Quote:
Originally Posted by SheMesH View Post
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?
__________________
Reply With Quote
  #4   Spotlight this post!  
Unread 28-02-2012, 23:06
ProgrammerMatt ProgrammerMatt is offline
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
ProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really nice
Re: VEX Motor module programming

Quote:
Originally Posted by Ian McShane View Post
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..

Code:
Victor vexmotor = new Victor(#);

vexmotor.set(0.5);
Reply With Quote
  #5   Spotlight this post!  
Unread 04-03-2012, 08:09
SheMesH SheMesH is offline
Registered User
FRC #2231
 
Join Date: Jan 2012
Location: Israel
Posts: 5
SheMesH is an unknown quantity at this point
Re: VEX Motor module programming

Quote:
Originally Posted by ProgrammerMatt View Post
Wouldn't this be easier..

Code:
Victor vexmotor = new Victor(#);

vexmotor.set(0.5);
thnx you!
Reply With Quote
  #6   Spotlight this post!  
Unread 04-03-2012, 11:58
ProgrammerMatt ProgrammerMatt is offline
Programmer-Electrical-Mechanical
FRC #0228 (Gus)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Southington
Posts: 138
ProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really niceProgrammerMatt is just really nice
Re: VEX Motor module programming

Quote:
Originally Posted by SheMesH View Post
thnx you!
Your welxcome
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 12:46.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi