View Single Post
  #7   Spotlight this post!  
Unread 02-13-2015, 04:26 PM
bob.wolff68's Avatar
bob.wolff68 bob.wolff68 is offline
Da' Mentor Man
FRC #1967
Team Role: Mentor
 
Join Date: Jan 2012
Rookie Year: 2007
Location: United States
Posts: 152
bob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nicebob.wolff68 is just really nice
Re: [C++] Eclipse deploying errors (FrcUserProgram)

I think your enc.GetDistance() was likely executed BEFORE RobotInit() if it was part of the class definition or otherwise misplaced. Make sure your code that utilizes WPILib classes does not execute before RobotInit(). I think it's safe to 'new' class objects in the constructor of your Robot(), but making calls like GetDistance can't be done before RobotInit() because there are other initialization items that WPI does which happen behind the scenes.
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote