
13-03-2015, 16:12
|
 |
Registered User
AKA: Alex Yeckley
 FRC #2252 (Mavericks)
Team Role: Mentor
|
|
Join Date: Apr 2007
Rookie Year: 2007
Location: Sandusky, OH
Posts: 268
|
|
|
Re: Using the A x-axis data stream
Quote:
Originally Posted by KMBruggeman
If I look at that it appears that *.ax, *.ay, etc are all 16bit integers. Could I modify the code from https://github.com/TI-FIRST/MSP430-G...b/master/hal.c (line 517)
from: "gamepadReportTx.ax = Convert8Bit(ADC12_A_getResults(ADC12_A_BASE, ADC12_A_MEMORY_12));"
to "gamepadReportTx.ax = encoder_count;" as that would allow me in essence to have up to 8 x 16BIT signed integers in my HID data stream?
|
I believe that would work.
__________________

|