View Single Post
  #2   Spotlight this post!  
Unread 20-06-2015, 20:42
GeeTwo's Avatar
GeeTwo GeeTwo is offline
Technical Director
AKA: Gus Michel II
FRC #3946 (Tiger Robotics)
Team Role: Mentor
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Slidell, LA
Posts: 3,676
GeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond reputeGeeTwo has a reputation beyond repute
Re: Talons without libraries?

Are you speaking of a Talon SR or SRX? The SR accepts PWM input (that is, pulse duration, not duty cycle) but does not have any sensor inputs, so you can't use it to query the encoder. The SRX is a CAN bus controller which does have sensor inputs, including an encoder port. I have not yet used CAN apart from monitoring current use on the PDB; I have no idea how difficult it would be to create a CAN port on a microcontroller. If you licked that problem, then yes, you would be able to monitor the encoder through the same CAN bus that you used to control the motor. The neat thing about CAN is that if you build a single CAN controller, you can use it to drive several devices. You would not be using PWM, however.
__________________

If you can't find time to do it right, how are you going to find time to do it over?
If you don't pass it on, it never happened.
Robots are great, but inspiration is the reason we're here.
Friends don't let friends use master links.