View Single Post
  #1   Spotlight this post!  
Unread 19-03-2013, 20:04
Negative 9 Negative 9 is offline
Registered User
FRC #0611
 
Join Date: Dec 2012
Location: Mclean, VA
Posts: 46
Negative 9 is an unknown quantity at this point
What's the difference between robotInit() and constructor in SimpleRobot?

Is there any functional difference between the robotInit() method and a constructor for a class extending SimpleRobot? I read the description in the API for robotInit() and it look likes it's supposed to do the exact same thing as a constructor.

My code works fine with just using the constructor, but my compilation messages keep recommending I provide robotInit() and disabled() methods so I was just curious.
Reply With Quote