Hey Guys!
Okay So I’m here basically to submit a Java File that Helps teams attempting to use a swerve drive.
Yeah, it’s a basic Java application that’ll help teams who need to get going fast at competition time!Robot_Temp.jar.zip (3.49 KB)Robot_Temp.jar.zip (3.49 KB)
Ether
October 20, 2013, 3:54pm
2
mkaa00x:
Hey Guys!
Okay So I’m here basically to submit a Java File that Helps teams attempting to use a swerve drive.
Yeah, it’s a basic Java application that’ll help teams who need to get going fast at competition time!
I’m no Java guru, but it appears to be jibberish. Perhaps I’m doing something wrong.
*MD5_zip.txt (170 Bytes)MD5_class.txt (213 Bytes)DIR_class.txt (185 Bytes)MD5_zip.txt (170 Bytes)MD5_class.txt (213 Bytes)DIR_class.txt (185 Bytes)
I see a program that does the trig required for a swerve drive, without showing how it’s done. How does this help teams?
Ether
October 21, 2013, 12:03pm
4
How can you tell? The jar file contains only Java bytecode (Main.class and MtrTester.class); no source.
The jar file is a program (double click to run with Java Runtime installed). I don’t think the post is about source code but the program itself.
Ether
October 21, 2013, 3:11pm
6
Has anyone successfully run this?
If so, what am I doing wrong? (I’m not familiar with Java)
*What’s wrong.txt (529 Bytes)What’s wrong.txt (529 Bytes)
BigJ
October 21, 2013, 3:20pm
7
Try “java -jar <jarfile>”. if the manifest inside the jar file was made correctly it will run the main class.
Yep. Java’s funky like that.
Either point <jarfile> to the absolute path, or the canonical path.
Ether
October 21, 2013, 3:29pm
9
Thanks, that worked. That is to say, the program ran. But the program doesn’t seem to work properly - doesn’t seem to give correct angles and speeds.
Would the OP please join this dialog?
Also, if you are not one to use command line arguments, to open the file, right click on the jar file, select open with, and select choose default program. From there, navigate to Java (either in Program Files or Program Files (x86)). In there, select jre6 or jre7 whichever version you have. Then go to the bin folder and double click on javaw.exe. This will open the program and set .jar files to open by default using the correct method in the future.
mkaa00x
October 21, 2013, 4:56pm
11
OP’s Back!
Haha sorry, it’s not really supposed to display the algorithm behind if, but if you’d like, I could post a link to the algorithm I used to create it as well as my source code. It’s a very simple program with a few bugs that are yet to patch up, I simply realized that there wasn’t a program like this out there yet and so I decided, why not post it? (there is an excel file somewhere out there however that works like a program which I was grateful for :P)
mkaa00x
October 21, 2013, 5:27pm
12
Here is the Java source.
Open it up in Netbeans to view the files
Edit
Re done Program, still not perfect, gives rounded values.
/Edit RobotSwerveTester.zip (27.1 KB)RobotSwerveTester.zip (27.1 KB)
Ether
October 21, 2013, 6:01pm
13
mkaa00x:
Here is the Java source.
Open it up in Netbeans to view the files
Edit
Re done Program, still not perfect, gives rounded values.
/Edit
The equations in there look hauntingly familiar .
mkaa00x
October 21, 2013, 6:06pm
14
I got mine from here
http://www.chiefdelphi.com/media/papers/2426
I actually used to look directly onto the PDF and not find who it was made by, but now that I know, credits to you man I just put it in a program
P.S. and Lol, Hauntingly familiar
P.S. again, also that excel sheet was yours 0.o Creds to you, again!
LAST P.S. (I hope) I’m afk a lot, so if I don’t realy, it’s probably because I’m AFK