Go to Post I can't imagine Wildstang without tiedye... it just wouldn't be right. - Jeff Waegelin [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-07-2015, 21:59
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
RIO Communications API

I started writing a communications API to communicate with the RoboRIO. This is an attempt to separate the communications code from RoboDS, but it can be used for any custom driverstation projects you want. The library is written in Java but can be ported pretty easily to other languages.

Just note that though the API is complete and should be functional, it has not been tested at all on a real RIO device, it has only been tested with my loopback interface. The API only supports the new 2015 version of the communications protocol, but I hope others can expand it to work with the earlier protocol.

Here is the repo, it is in the form of an eclipse project so you should be able to download it and import it directly into eclipse: https://github.com/raystubbs/RioComAPI
__________________
"If all else fails, read the instructions."
  #2   Spotlight this post!  
Unread 21-07-2015, 15:03
M3rcuriel's Avatar
M3rcuriel M3rcuriel is offline
Mentor
AKA: Lee Mracek
FRC #0299 (Valkyrie Robotics)
Team Role: Mentor
 
Join Date: Jun 2014
Rookie Year: 2013
Location: Cupertino
Posts: 19
M3rcuriel is on a distinguished road
Re: RIO Communications API

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!
  #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."
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 02:59.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi