Go to Post To have respect for the process you are in right now, respect the knowledge around you by using it to your full advantage. - Scott Ritchie [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 19-10-2013, 19:41
mkaa00x's Avatar
mkaa00x mkaa00x is offline
Momo
AKA: Mohammad Al-Ahdal
FRC #4627 (Iron Manning)
Team Role: RoboCoach
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Calgary, Canada
Posts: 38
mkaa00x is an unknown quantity at this point
Post 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!
Attached Files
File Type: zip Robot_Temp.jar.zip (3.5 KB, 51 views)
Reply With Quote
  #2   Spotlight this post!  
Unread 20-10-2013, 15:54
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Swerve Drive Tester

Quote:
Originally Posted by mkaa00x View Post
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.


Attached Files
File Type: txt MD5_zip.txt (170 Bytes, 20 views)
File Type: txt MD5_class.txt (213 Bytes, 12 views)
File Type: txt DIR_class.txt (185 Bytes, 15 views)

Last edited by Ether : 20-10-2013 at 16:12. Reason: added attachments
Reply With Quote
  #3   Spotlight this post!  
Unread 21-10-2013, 11:45
jlmcmchl jlmcmchl is offline
FF - The Breakfast Company
AKA: Jordan McMichael
FRC #0027 (Team RUSH 27)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Clarkston,MI
Posts: 327
jlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud of
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?
__________________


Field reset: Kettering Kickoff ('13, '14), Kettering ('14, '15), Bedford ('14), Woodhaven ('16), Carver ('16), Einstein! ('16)
Referee: Bedford ('15), MARC ('15, '16), Kettering Kickoff ('15, '16), Kettering District (#1&2: '16), Troy ('16)
Reply With Quote
  #4   Spotlight this post!  
Unread 21-10-2013, 12:03
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Swerve Drive Tester

Quote:
Originally Posted by jlmcmchl View Post
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.


Reply With Quote
  #5   Spotlight this post!  
Unread 21-10-2013, 12:31
xForceDee's Avatar
xForceDee xForceDee is offline
Registered User
AKA: Bart Kerfeld
FRC #4239 (Warpspeed)
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2012
Location: Minnesota
Posts: 58
xForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to behold
Re: Swerve Drive Tester

Quote:
Originally Posted by Ether View Post
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.
Reply With Quote
  #6   Spotlight this post!  
Unread 21-10-2013, 15:11
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Swerve Drive Tester

Quote:
Originally Posted by xForceDee View Post
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)


Attached Files
File Type: txt What's wrong.txt (529 Bytes, 16 views)
Reply With Quote
  #7   Spotlight this post!  
Unread 21-10-2013, 15:20
BigJ BigJ is offline
Registered User
AKA: Josh P.
FRC #1675 (Ultimate Protection Squad)
Team Role: Engineer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Milwaukee, WI
Posts: 945
BigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond reputeBigJ has a reputation beyond repute
Re: Swerve Drive Tester

Try "java -jar <jarfile>". if the manifest inside the jar file was made correctly it will run the main class.
Reply With Quote
  #8   Spotlight this post!  
Unread 21-10-2013, 15:23
jlmcmchl jlmcmchl is offline
FF - The Breakfast Company
AKA: Jordan McMichael
FRC #0027 (Team RUSH 27)
Team Role: Alumni
 
Join Date: Feb 2012
Rookie Year: 2011
Location: Clarkston,MI
Posts: 327
jlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud ofjlmcmchl has much to be proud of
Re: Swerve Drive Tester

Quote:
Originally Posted by BigJ View Post
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.
__________________


Field reset: Kettering Kickoff ('13, '14), Kettering ('14, '15), Bedford ('14), Woodhaven ('16), Carver ('16), Einstein! ('16)
Referee: Bedford ('15), MARC ('15, '16), Kettering Kickoff ('15, '16), Kettering District (#1&2: '16), Troy ('16)

Last edited by jlmcmchl : 21-10-2013 at 15:24. Reason: clarification on <jarfile>
Reply With Quote
  #9   Spotlight this post!  
Unread 21-10-2013, 15:29
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Swerve Drive Tester

Quote:
Originally Posted by BigJ View Post
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?


Reply With Quote
  #10   Spotlight this post!  
Unread 21-10-2013, 16:31
xForceDee's Avatar
xForceDee xForceDee is offline
Registered User
AKA: Bart Kerfeld
FRC #4239 (Warpspeed)
Team Role: College Student
 
Join Date: Dec 2012
Rookie Year: 2012
Location: Minnesota
Posts: 58
xForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to beholdxForceDee is a splendid one to behold
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.
Reply With Quote
  #11   Spotlight this post!  
Unread 21-10-2013, 16:56
mkaa00x's Avatar
mkaa00x mkaa00x is offline
Momo
AKA: Mohammad Al-Ahdal
FRC #4627 (Iron Manning)
Team Role: RoboCoach
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Calgary, Canada
Posts: 38
mkaa00x is an unknown quantity at this point
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 )
Reply With Quote
  #12   Spotlight this post!  
Unread 21-10-2013, 17:27
mkaa00x's Avatar
mkaa00x mkaa00x is offline
Momo
AKA: Mohammad Al-Ahdal
FRC #4627 (Iron Manning)
Team Role: RoboCoach
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Calgary, Canada
Posts: 38
mkaa00x is an unknown quantity at this point
Re: Swerve Drive Tester

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*
Attached Files
File Type: zip RobotSwerveTester.zip (27.1 KB, 16 views)

Last edited by mkaa00x : 21-10-2013 at 17:36.
Reply With Quote
  #13   Spotlight this post!  
Unread 21-10-2013, 18:01
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,077
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Swerve Drive Tester

Quote:
Originally Posted by mkaa00x View Post
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.



Reply With Quote
  #14   Spotlight this post!  
Unread 21-10-2013, 18:06
mkaa00x's Avatar
mkaa00x mkaa00x is offline
Momo
AKA: Mohammad Al-Ahdal
FRC #4627 (Iron Manning)
Team Role: RoboCoach
 
Join Date: Jan 2013
Rookie Year: 2012
Location: Calgary, Canada
Posts: 38
mkaa00x is an unknown quantity at this point
Re: Swerve Drive Tester

Quote:
Originally Posted by Ether View Post
The equations in there look hauntingly familiar.



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

Last edited by mkaa00x : 21-10-2013 at 18:17.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:32.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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