View Single Post
  #2   Spotlight this post!  
Unread 29-06-2015, 18:07
Andrew Schreiber Andrew Schreiber is offline
Data Nerd
FRC #0079
 
Join Date: Jan 2005
Rookie Year: 2000
Location: Misplaced Michigander
Posts: 4,057
Andrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond reputeAndrew Schreiber has a reputation beyond repute
Re: Encoders for testing

In case someone else comes along curious about the same thing, because it wasn't intuitive to me, you can access the encoder count value by using:

Code:
hal_data['encoder'][index]['count']
Where index is the order they were initialized in. If you want to verify it's the correct pins you can check hal_data['encoder']['ASourceChannel'] and ['BSourceChannel']
__________________




.
Reply With Quote