View Single Post
  #8   Spotlight this post!  
Unread 04-01-2011, 18:24
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: What was the hardest to program this year in Java?

Quote:
Originally Posted by ksanger View Post
(Last year we were using C++ and to reconfigure the Cans we needed to destruct them then initialize them in either diagnostic speed mode or run position mode).
This year the API has a changeMode method so you don't need to destroy the object and recreate it. Just call changeMode and then call enable.

Quote:
Originally Posted by ksanger View Post
I don't know if I can destruct them in Java and haven't seen a Java example that enables position mode.
In Java, there are no destructors and there is no delete. The lack of destructors is a limitation of the Squawk JVM that we are using. Objects with no references to them are destroyed by the garbage collector.

-Joe
Reply With Quote