Thread: Measuring RPM
View Single Post
  #17   Spotlight this post!  
Unread 18-01-2016, 16:17
ozrien's Avatar
ozrien ozrien is online now
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 555
ozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond reputeozrien has a reputation beyond repute
Re: Measuring RPM

Oh hey I almost forget, so there is a closed-loop speed example in LV for CAN Talon SRX.

Open LV,
Menu bar: Help => Find Examples...

Double clock on this tree node...
FRC Robotics => roboRIO => CAN =>CAN Talon Speed Control Encoder.lvproj

Example probably should be updated to select the CTRE Mag Encoder. Relative would be better since its just velocity (not position). Or just to quickly get started set the Encoder Codes Per Revolution to 1024 and leave Quadrature selected.

This example also does not take advantage of this year's unit-scaling features in the API, so scaling to RPMis done manually, but again I think it will help get you going.