View Single Post
  #2   Spotlight this post!  
Unread 15-01-2016, 17:41
rzoeller rzoeller is offline
MN GOFIRST Recruitment Officer
AKA: Ryan Zoeller
FRC #2169 (RI3D 'Snow Problem; KING TeC)
Team Role: Alumni
 
Join Date: Nov 2009
Rookie Year: 2007
Location: Savage, MN
Posts: 111
rzoeller is a jewel in the roughrzoeller is a jewel in the roughrzoeller is a jewel in the rough
Re: Defining/Setting a motor in Java

Quote:
Originally Posted by iSpotix View Post
I have always written it in one line directly under the class statement not in robotinit.

Talon motor = new Talon(0);

Your problem may be from splitting it up.
That shouldn't cause it, his motor reference would just be null prior to calling robotInit().
__________________
Ri3D - 'Snow Problem Programmer
MN GOFIRST Recruitment Officer
FRC 2169 Alumni
Reply With Quote