View Single Post
  #5   Spotlight this post!  
Unread Yesterday, 23:57
Oblarg Oblarg is offline
Registered User
AKA: Eli Barnett
FRC #0449 (The Blair Robot Project)
Team Role: Mentor
 
Join Date: Mar 2009
Rookie Year: 2008
Location: Philadelphia, PA
Posts: 1,120
Oblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond reputeOblarg has a reputation beyond repute
Re: CANTalon getEncVel update rate

Quote:
Originally Posted by Ken Streeter View Post
I'm a fan of using all native units, too. getSpeed() continues to report in nativeUnits if one simply never calls "ConfigEncoderCodesPerRev()"

We intentionally do not call ConfigEncoderCodesPerRev() so that we receive sensor positions and velocities in native units, as described in the table in section 17.2.1.
Yeah, but we occasionally use the CTRE mag encoder, and so if we call getSpeed we need to have an extra if statement and change our unit scaling (unless there's some way to use the CTRE mag encoder without leveraging the internal unit scaling?).
__________________
"Mmmmm, chain grease and aluminum shavings..."
"The breakfast of champions!"

Member, FRC Team 449: 2007-2010
Drive Mechanics Lead, FRC Team 449: 2009-2010
Alumnus/Technical Mentor, FRC Team 449: 2010-Present
Lead Technical Mentor, FRC Team 4464: 2012-2015
Technical Mentor, FRC Team 5830: 2015-2016
Reply With Quote