View Single Post
  #3   Spotlight this post!  
Unread 21-07-2015, 21:48
raystubbs's Avatar
raystubbs raystubbs is offline
Programmer, Builder, Designer
FRC #2657 (Thundercats)
Team Role: Student
 
Join Date: Mar 2014
Rookie Year: 2012
Location: Deming NM
Posts: 121
raystubbs will become famous soon enough
Re: RIO Communications API

Quote:
Originally Posted by M3rcuriel View Post
I'm certainly interested!

If you have loopback test code that you can quickly rework for a real RoboRIO, I can test it as soon as you send it. If not, I'll probably work on building something myself for testing, because I've been hoping for an API like this for a while. Thank you!
I updated the github repo, the Main.class contains a test program, all you should need to do is change the IP from the loopback 127.0.0.1 to whatever IP your RIO is using. The program is simple, and uses the keyboard to simulate a joystick. It is mapped thus:
  • Numbers 0, 1, 2, 3, 4 --->Buttons 0, 1, 2, 3, 4
  • Arrows u, d, l , r -------->Axis' 1(y):127, 1(y):-127, 0(x):127, 0(x):-127
  • Space------------------>Enable/Disable

If you find any problems I'd appreciate it if you could help me out in finding their source since as previously stated I do not have access to a Rio.
__________________
"If all else fails, read the instructions."