Go to Post To anyone who is discouraged about their team, don't let yourself get down. I've seen my team go from having a robot that barely moved (and I'm not kidding, we had keys falling out of gearboxes) to this year with a robot that is ACTUALLY GOING TO WORK. Don't lose hope, stick with FIRST! - ZipTie3182 [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 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
  #2   Spotlight this post!  
Unread 08-02-2016, 17:46
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,025
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Talon SRX Encoder


Have you looked at Section 20 of the Talon SRX Software Reference Manual ?



Last edited by Ether : 08-02-2016 at 17:51.
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


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