|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| 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 | 16-02-2009 08:30 |
| Single Motor Drive | Team2339 | NI LabVIEW | 1 | 04-02-2009 23:43 |
| Single motor VI/example | PinionTwister | National Instruments LabVIEW and Data Acquisition | 2 | 09-01-2009 13:40 |
| White Paper Discuss: Team 179 conceptual - single speed - 3 motor gearbox | CD47-Bot | Extra Discussion | 9 | 30-08-2004 21:57 |
| question about one joystick drive programing | james700 | Programming | 13 | 29-01-2003 14:49 |