Go to Post Sure, whining is easier than working, but what's more rewarding? - PayneTrain [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 02-23-2010, 08:03 PM
Team 1554 Team 1554 is offline
Registered User
FRC #1554
 
Join Date: Feb 2010
Location: Oceanside, NY
Posts: 9
Team 1554 is an unknown quantity at this point
Single Motor Programing Question

Since we already used 4 of the CIM motors for the drive, we are only allowed to use 1 for the kicker.
I searched the java libraries but the only thing i can see to control a motor thats not a servo motor is only the RobotDrive, but that doesnt have a constructor for only 1 motor
How can i program a single motor?
Reply With Quote
  #2   Spotlight this post!  
Unread 02-23-2010, 10:00 PM
DonRotolo's Avatar
DonRotolo DonRotolo is offline
Back to humble
FRC #0832
Team Role: Mentor
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Atlanta GA
Posts: 6,979
DonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond reputeDonRotolo has a reputation beyond repute
Re: Single Motor Programing Question

Pretend it is a drive motor for the left side, and let it talk to only one PWM output.
__________________

I am N2IRZ - What's your callsign?
Reply With Quote
  #3   Spotlight this post!  
Unread 02-23-2010, 10:13 PM
MattD's Avatar
MattD MattD is offline
Registered User
AKA: Matthew Douglas
FRC #0228 (GUS Robotics)
Team Role: Alumni
 
Join Date: Feb 2006
Rookie Year: 2005
Location: Indianapolis, IN
Posts: 185
MattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to beholdMattD is a splendid one to behold
Send a message via AIM to MattD
Re: Single Motor Programing Question

Take a look at the Jaguar or Victor class. These are used to control a single motor. In fact, RobotDrive by default creates two or four instances of Jaguar.

For example:

Code:
Jaguar motor = new Jaguar(5);  // Motor connected to Jaguar on PWM #5
Joystick stick = new Joystick(2);

// operator control:
motor.set(stick.getY()); // set the motor output to Y-axis input on Joystick #2
__________________
GUS Robotics Team 228

2010 WPI Engineering Inspiration Award
2010 WPI Regional Champions (Thanks 230 & 20!)
2010 CT VEX Champions
2010 CT VEX Innovate Award
2009 QCC VEX Champions
2009 CT Motorola Quality Award
2007 CT J&J Sportsmanship Award
2006 CT Best Website Award
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

Similar Threads
Thread Thread Starter Forum Replies Last Post
programing motor with axis frcchile Programming 1 02-16-2009 08:30 AM
Single Motor Drive Team2339 NI LabVIEW 1 02-04-2009 11:43 PM
Single motor VI/example PinionTwister National Instruments LabVIEW and Data Acquisition 2 01-09-2009 01:40 PM
White Paper Discuss: Team 179 conceptual - single speed - 3 motor gearbox CD47-Bot Extra Discussion 9 08-30-2004 09:57 PM
question about one joystick drive programing james700 Programming 13 01-29-2003 02:49 PM


All times are GMT -5. The time now is 07:31 AM.

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