Thread: Repeated Error
View Single Post
  #2   Spotlight this post!  
Unread 06-12-2016, 17:40
bdaroz's Avatar
bdaroz bdaroz is offline
Programming Mentor
AKA: Brian Rozmierski
FRC #5881 (TVHS Dragons)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2016
Location: Albany, NY
Posts: 366
bdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud ofbdaroz has much to be proud of
Re: Repeated Error

Quick and Dirty Answer:

You refer to Robot.oi.lStick on line 46 of Robot.java. (See the top of the stack trace). At that point of code execution Robot.oi has been declared (see line 35), but not assigned a value yet. That doesn't happen until late inside the robotInit() function (function starts line 52, assigned value at 67).

If you just declare the variable, and remove the assignment at 46 (and 47) and assign the value in robotInit() after line 67, you should get past that problem.

(Sorry I didn't check for any others you might run into after this.)
Reply With Quote