Go to Post Don't just assume that because you can modify an existing design that you are an engineer. - Daniel_LaFleur [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 08-02-2016, 17:40
dukeeagle dukeeagle is offline
Registered User
FRC #4511
 
Join Date: Feb 2016
Location: Twin Cities, Minnesota
Posts: 1
dukeeagle is an unknown quantity at this point
Talon SRX Encoder

We are trying to figure out how to get the number of rotations on our encoder through our CANTalon.
The FRC website offers a solution if you use the Encoder class, but we are doing it through the wpilib CANTalon class.
Here's what we have so far:
Code:
	  CANTalon frontLeft = new CANTalon(RobotMap.frontLeft);

          public encoder(){
		frontLeft.changeControlMode(ControlMode.Position);
		frontLeft.setFeedbackDevice(FeedbackDevice.QuadEncoder);
		frontLeft.setPID(0.5, 0.001, 0.0);
		frontLeft.enableControl();
	}
Is there a way to do this through the CANTalon class? Help is much appreciated.
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:29.

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