View Single Post
  #3   Spotlight this post!  
Unread 17-01-2017, 21:48
SamCarlberg's Avatar
SamCarlberg SamCarlberg is offline
GRIP, WPILib. 2084 alum
FRC #2084
Team Role: Mentor
 
Join Date: Nov 2015
Rookie Year: 2009
Location: MA
Posts: 154
SamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to beholdSamCarlberg is a splendid one to behold
Re: java.lang.NullPointerException

Line 27, as of commit d16c532, cannot possibly throw a NullPointerException:

Code:
if((xAxis< deadBand) && (xAxis > -deadBand)){ xAxis=0;}
Are you sure the code on the robot is the same as the code on Github?


Edit: Ben's right. You declare the speed controllers in RobotMap, but never call init() so they're always going to be null.
__________________
WPILib
GRIP, RobotBuilder

Last edited by SamCarlberg : 17-01-2017 at 21:51.
Reply With Quote