View Single Post
  Spotlight this post!  
Unread 30-11-2011, 22:02
Jared Russell's Avatar
Jared Russell Jared Russell is offline
Taking a year (mostly) off
FRC #0254 (The Cheesy Poofs), FRC #0341 (Miss Daisy)
Team Role: Engineer
 
Join Date: Nov 2002
Rookie Year: 2001
Location: San Francisco, CA
Posts: 3,078
Jared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond reputeJared Russell has a reputation beyond repute
Re: Rookie team seeking some programming advice

Most of the underlying math primitives (e.g. forward and inverse trig, exponents, square roots, etc.) are present in the FRC Java implementation - they went ahead and implemented more than the bare bones J2ME spec requires (albeit in a different package structure than J2SE...you need to do some digging to find where some of the classes live).

This does mean that adding J2SE JARs is generally not going to work. That said, I have found that this is seldom a big problem in FRC. Linear algebra and hardcore AI are not used by most teams, and those that do usually supply their own matrix math functions (for example). If you have the source for a library you would like to use, you may be able to get it to compile for FRC Java by changing the import statements for certain math/container functions and classes to point to the correct FRC Java packages. However, if your library uses a lot of J2SE-only classes, this approach would not work.
Reply With Quote