Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Java (http://www.chiefdelphi.com/forums/forumdisplay.php?f=184)
-   -   Swerve Drive Tester (http://www.chiefdelphi.com/forums/showthread.php?t=120632)

mkaa00x 19-10-2013 19:41

Swerve Drive Tester
 
1 Attachment(s)
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!

Ether 20-10-2013 15:54

Re: Swerve Drive Tester
 
3 Attachment(s)
Quote:

Originally Posted by mkaa00x (Post 1297419)
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

Re: Swerve Drive Tester
 
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 21-10-2013 12:03

Re: Swerve Drive Tester
 
Quote:

Originally Posted by jlmcmchl (Post 1297651)
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

Re: Swerve Drive Tester
 
Quote:

Originally Posted by Ether (Post 1297652)
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 21-10-2013 15:11

Re: Swerve Drive Tester
 
1 Attachment(s)
Quote:

Originally Posted by xForceDee (Post 1297654)
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)



BigJ 21-10-2013 15:20

Re: Swerve Drive Tester
 
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

Re: Swerve Drive Tester
 
Quote:

Originally Posted by BigJ (Post 1297703)
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 21-10-2013 15:29

Re: Swerve Drive Tester
 
Quote:

Originally Posted by BigJ (Post 1297703)
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

Re: Swerve Drive Tester
 
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 21-10-2013 16:56

Re: Swerve Drive Tester
 
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 21-10-2013 17:27

Re: Swerve Drive Tester
 
1 Attachment(s)
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*

Ether 21-10-2013 18:01

Re: Swerve Drive Tester
 
Quote:

Originally Posted by mkaa00x (Post 1297734)
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 21-10-2013 18:06

Re: Swerve Drive Tester
 
Quote:

Originally Posted by Ether (Post 1297741)
The equations in there look hauntingly familiar.




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


All times are GMT -5. The time now is 11:12.

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