View Single Post
  #2   Spotlight this post!  
Unread 12-03-2015, 07:22
KMBruggeman KMBruggeman is offline
Registered User
FRC #3737 (RotoRaports)
Team Role: Programmer
 
Join Date: Mar 2015
Rookie Year: 2014
Location: Goldsboro, NC
Posts: 8
KMBruggeman is an unknown quantity at this point
Re: paper: Driver Station Encoder Support using the TI LaunchPad

I think I was able to follow most of this but did have some follow-up questions. Though I'm not as experience in looking at the launchpad code or using eclipse.

Looking at the example code:

P1IE basically enables the interupt
P1IES enables interupt edge select

It appears that we are limited to just P1 and P2,e.g. we could add a second encoder with P2IE and P2IES?

Additionally, to map that to a button 2.2 and 2.7 we could reference bits 2 & 7 respectively?

To output it then could I use the other 16 BITS for the buttons out?

Finally, is there the ability to pass additional encoder counts so long as we did not exceed the current draw of the launchpad?

For example could I run an interrupt on P3 using 3.2 and 3.6?

Would I just implement that by passing an integer vs a float for an axis value?

Thanks for any help, my sum total of knowledge is thus far based upon your team's paper and Google. (http://courses.cs.washington.edu/cou...pts-posted.pdf)
Reply With Quote