Go to Post Team 1114 does not design or build ROBOTS. They build AWESOME. - DonRotolo [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 24-02-2013, 21:41
pigpenguin's Avatar
pigpenguin pigpenguin is offline
Registered insane
AKA: Ethan Rooke
FRC #1160 (Titanium Robotics)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: L.A
Posts: 43
pigpenguin is an unknown quantity at this point
Java compile issues

Alright so I have run into a small problem with my latest development of code.... when I go to deploy it to our test robot it goes through the same steps it always has except it goes crazy when it hits some of our math functions namely the arc trig functions. As far as I can tell it is using an old version of java (netbeans says its 1.3) so I am curious... does the robot have to run such an old version of java or is my computer doing something weird where it is pointing it to an old version? any thoughts would be greatly appreciated.
__________________
"Insanity isn't a plea its a way of life and here we are all one card short"
Reply With Quote
  #2   Spotlight this post!  
Unread 24-02-2013, 21:58
joelg236 joelg236 is offline
4334 Retired Mentor & Alumni
AKA: Joel Gallant
no team
Team Role: Mentor
 
Join Date: Dec 2011
Rookie Year: 2012
Location: Calgary
Posts: 733
joelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond reputejoelg236 has a reputation beyond repute
Re: Java compile issues

Yes, the wpilibj plugins are stuck in 1.3. There are a variety of reasons for this, mainly that vxworks on the CRIO is old. All you really need to know is that your stuck with 1.3, so no enums, generics, etc.
__________________
All opinions are my own.
Reply With Quote
  #3   Spotlight this post!  
Unread 24-02-2013, 22:14
pigpenguin's Avatar
pigpenguin pigpenguin is offline
Registered insane
AKA: Ethan Rooke
FRC #1160 (Titanium Robotics)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: L.A
Posts: 43
pigpenguin is an unknown quantity at this point
Re: Java compile issues

Alright that makes sense (bit annoying but eh) so now I am trying to work out how to do some of these functions so I went to look through the javadocs for 1.3 (the one I found was here: http://docs.oracle.com/javase/1.3/docs/api/index.html) and it seems to suggest that math does have these functions (http://docs.oracle.com/javase/1.3/do...lang/Math.html) any idea why the compile still wouldnt be able to find them?
__________________
"Insanity isn't a plea its a way of life and here we are all one card short"
Reply With Quote
  #4   Spotlight this post!  
Unread 24-02-2013, 22:47
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,572
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Java compile issues

The cRIO runs JavaME, which is a subset of JavaSE 1.3, so even looking at the JavaSE v1.3 docs isn't sufficient.

There are additional math functions that aren't in the java ME spec that are implemented in com.sun.squawk.util.MathUtils. This is in addition to the required JavaME math functions in java.lang.Math

What functions are you looking for?
Reply With Quote
  #5   Spotlight this post!  
Unread 24-02-2013, 23:40
pigpenguin's Avatar
pigpenguin pigpenguin is offline
Registered insane
AKA: Ethan Rooke
FRC #1160 (Titanium Robotics)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: L.A
Posts: 43
pigpenguin is an unknown quantity at this point
Re: Java compile issues

Quote:
There are additional math functions that aren't in the java ME spec that are implemented in com.sun.squawk.util.MathUtils. This is in addition to the required JavaME math functions in java.lang.Math
thank you so much for pointing that out... we were half way through writing our own using taylor series saved us a whole lot of time.
Quote:
What functions are you looking for?
We were looking for arc tan, arc sine, and arc cos
__________________
"Insanity isn't a plea its a way of life and here we are all one card short"
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 11:42.

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