|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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? |
|
#2
|
|||||
|
|||||
|
Re: Single Motor Programing Question
Pretend it is a drive motor for the left side, and let it talk to only one PWM output.
|
|
#3
|
||||
|
||||
|
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 |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |