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!

Robot_Temp.jar.zip (3.49 KB)


Robot_Temp.jar.zip (3.49 KB)

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?

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.

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)

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.

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.

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 :slight_smile:

Edit

Re done Program, still not perfect, gives rounded values.

/Edit

RobotSwerveTester.zip (27.1 KB)


RobotSwerveTester.zip (27.1 KB)

The equations in there look hauntingly familiar.

I got mine from here :stuck_out_tongue:

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 :smiley: I just put it in a program :stuck_out_tongue:

P.S. and Lol, Hauntingly familiar :wink:

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