![]() |
Share your Java Utilities and Object Classes
So I am sure just about every team has written a class for something that isn't in the library, or some other utility to aid in code development/testing. In the spirit of Gracious Professionalism and Open Source, I would love to have us share our creations.
For my contributions: XboxController Class that is compatible with the CommandBase OI Button and Scheduler system. It also assists by using subclasses for the buttons and axises to alleviate memorizing the button/axis numbers. XboxController Threaded RaspberryPi Socket Connection. This is a little more specifically written to our uses, but it is likely useful for any co-processor using a TCP Socket Connection in a separate thread to prevent the robot from crashing if the thread crashes. ThreadedPi ThreadedberryPi (subsystem) Then I have python code for a RaspberryPi for processing images and using a TCP Socket Server. This was not written by me, but we used it on our competition robot which has perfect killer accuracy. It calculated Distance(in millifeet) and pixels from center. The distance wasn't quite accurate, but was consistently inaccurate(useful if you recorded target points). PyGoalFinder I hope these helps someone. And thanks for sharing if you do so! |
Re: Share your Java Utilities and Object Classes
Here is our current code, we have quite a few of these things,
|
Re: Share your Java Utilities and Object Classes
|
Re: Share your Java Utilities and Object Classes
Thanks for the thread, thanks for the posts. Always good to read other people's code. I do not have much to contribute, but we have found this library useful for Math functions that Java ME does not provide: http://javolution.org.
Does anyone know a simple lib for formatting floating-point numbers since printf is not available? |
Re: Share your Java Utilities and Object Classes
gixxy's is probably superior, but here is a link to a mapping file we use for XBox gamepads (We just use the Joystick class and these mapping values).
Quote:
|
Re: Share your Java Utilities and Object Classes
Quote:
Our team also wrote code for a Raspberry Pi that we intended to use on the robot (we couldn't due to weight limitations), and we used C++ and OpenCV to create an image processing program. Our team intends on publishing a Raspberry Pi image designed for FIRST this summer. Thanks for publishing this. |
Re: Share your Java Utilities and Object Classes
Quote:
We used the RPi (with said posted code) at competition this year and besides issues with autonomous (if it wasn't fully booted in time) it worked perfectly! |
Re: Share your Java Utilities and Object Classes
I'm not sure how relevant this is, since the topic seems kind of old, but I wrote this up last season and think it was extremely useful. It's a set of classes that can be extended to automatically set up a way to edit autonomous code on the fly so you don't have to re-download and restart the CRio just to change a simple variable. This makes having multiple autonomous sequences easy to manage, and brings extreme flexibility to that section of the game. The only downside that it only works for teams using the command base, and it is a little tricky to set up.
https://github.com/Ipiano/Parsable_Autonomous |
| All times are GMT -5. The time now is 10:00. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi