View Single Post
  #2   Spotlight this post!  
Unread 30-01-2017, 20:48
solomondg solomondg is offline
Registered User
FRC #2898 (Flying Hedgehogs)
Team Role: Programmer
 
Join Date: Aug 2016
Rookie Year: 2016
Location: Portland, Oregon
Posts: 14
solomondg is an unknown quantity at this point
Re: How to increase the Talon SRX encoder update freq

CANTalon.setStatusFrameRateMs is what you're looking for.

If you have CANTalon mLeftMotor, all you'd have to do to set it to a 50Hz update rate is
mLeftMotor.setStatusFrameRateMs(CANTalon.StatusFra meRate.Feedback, 20);

Careful of saturating the CAN bus.
Reply With Quote