View Single Post
  #5   Spotlight this post!  
Unread 21-06-2015, 00:13
asid61's Avatar
asid61 asid61 is offline
Registered User
AKA: Anand Rajamani
FRC #0115 (MVRT)
Team Role: Mechanical
 
Join Date: Jan 2014
Rookie Year: 2013
Location: Cupertino, CA
Posts: 2,224
asid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond reputeasid61 has a reputation beyond repute
Re: Talons without libraries?

Quote:
Originally Posted by GeeTwo View Post
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.
Okay, thank you. I was thinking about the SRX, as we used them this year for encoder values. I can do the servo-PWM control quite easily, but if I have to hardcode a CAN bus then I might just have to switch to a RIO.
__________________
<Now accepting CAD requests and commissions>