|
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.
|