Go to Post That sound you hear is a student on the mechanical team trying to get out of the shipping crate you closed too early. - Al Skierkiewicz [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

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Spotlight this post!  
Unread 01-02-2012, 20:13
ssirovica's Avatar
ssirovica ssirovica is offline
Programming Captain
AKA: Sasha Sirovica
FRC #1458 (Red Ties)
Team Role: Programmer
 
Join Date: Sep 2011
Rookie Year: 2010
Location: Alamo
Posts: 26
ssirovica is an unknown quantity at this point
Encoder Feedback From Jaguar

Our team has decided to plug an encoder into one of our Jaguars to regulate the speed of our shooter for more accurate results.

However, we are not getting any output from the encoder.

There is potentially a hardware or software issue.

Our Code:
Initialization
PHP Code:
try {
            
rightMotor1 = new CANJaguar(11CANJaguar.ControlMode.kPercentVbus);
            
rightMotor2 = new CANJaguar(12CANJaguar.ControlMode.kPercentVbus); //Change these to id Nums of jaguar!!!!!
            
leftMotor1 = new CANJaguar(13CANJaguar.ControlMode.kPercentVbus);
            
leftMotor2 = new CANJaguar(15CANJaguar.ControlMode.kPercentVbus);
            
rightMotor2.enableControl();


        } catch (
CANTimeoutException ex) {
            
            
ex.printStackTrace();
        } 
and here is our output code
PHP Code:
try {
        
driverStation.println(DriverStationLCD.Line.kUser31"Right Encoder Jaguar: " Double.toString(rightMotor2.getSpeed()));
          } catch (
CANTimeoutException ex) {

            
ex.printStackTrace();
        } 
Hardware wise everything seems to be wired normally except the Index signal which is supposed to go into the Jaguar is left floating because our encoder does not output an Index signal.

Any ideas?
__________________
Computers run on smoke. When you let the smoke out the computer stops working.
Reply With Quote
 


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 08:33.

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