View Full Version : Swerve Drive Tester
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!
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.
jlmcmchl
21-10-2013, 11:45
I see a program that does the trig required for a swerve drive, without showing how it's done. How does this help teams?
I see a program that does the trig required for a swerve drive
How can you tell? The jar file contains only Java bytecode (Main.class and MtrTester.class); no source.
xForceDee
21-10-2013, 12:31
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.
The jar file is a program (double click to run with Java Runtime installed).
Has anyone successfully run this?
If so, what am I doing wrong? (I'm not familiar with Java)
Try "java -jar <jarfile>". if the manifest inside the jar file was made correctly it will run the main class.
jlmcmchl
21-10-2013, 15:23
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.
Try "java -jar <jarfile>". if the manifest inside the jar file was made correctly it will run the main class.
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?
xForceDee
21-10-2013, 16:31
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.
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)
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*
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 (http://www.chiefdelphi.com/media/papers/download/3028).
The equations in there look hauntingly familiar (http://www.chiefdelphi.com/media/papers/download/3028).
I got mine from here :P
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 :D *I just put it in a program :P*
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
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.