View Single Post
  #5   Spotlight this post!  
Unread 02-13-2015, 06:16 PM
ay2b's Avatar
ay2b ay2b is offline
Registered User
AKA: Andy
FRC #2928
Team Role: Mentor
 
Join Date: Mar 2004
Rookie Year: 1994
Location: Seattle, WA
Posts: 210
ay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant futureay2b has a brilliant future
Re: Eclipse WPILib Problem C++

Note that I am attempting to answer this question having not looked at the WPILib in several years...

The error you are describing sounds like you are trying to instantiate an interface rather than a fully implemented class. Posting a code snipit might help diagnose the exact problem. Do you have a line in your code like:
Code:
SpeedController sc = new SpeedController();
or
Code:
SpeedController sc = new IVictorSP();
If so, try replacing it with something like:
Code:
SpeedController sc = new VictorSP();
Basically what seems to be happening is that there exists a class "SpeedController" that has a method "Set" that is not implemented (it is pure virtual), making this class be an interface. Other classes, such as Victor, Tallon, etc, will derive from the SpeedController class and must implement the Set() method. The error you are reporting makes it sound like you are trying to instantiate one of the parent classes/interfaces, rather than the child class that actually has the implementation.

Check your documentation and make sure you are instantiating the correct class.
__________________

2011 - SD Quarterfinalists (980), LA Quarterfinalists (980)
2010 - LA (2404) Finalists (980), AZ Motorola Quality (980)
2009 - LA Semifinalists (980); Las Vegas Quarterfinalists (980); SD (2404); IRI #1 Seed, Finalist (980)
2008 - SD Quarterfinalists (980), LA Champions (980), LA Rookie Inspiration Award (2404); CalGames Finalists
2007 - So.Cal Finalists (980), SD Quarterfinalists (980); CalGames Finalists
2006 - So.Cal Regional Champion (4), Toronto Judge's Award Day 1 (4)
2005 - SVR Champions, Delphi "Driving Tomorrow's Technology" (980); AZ Xerox Creativity (980); So.Cal Finalists, RadioShack Innovation in Control (980); Championship Archimedes Division Semifinalists; IRI Finalists (980)
2004 - So.Cal Regional Champions, Leadership in Controls (980); AZ GM Industrial Design (980); Championship Galileo Division #2 Seed; IRI Champions
2003 - PNW Semi-finalists (488)
2002 - PNW Finalists (488)
2000 - X-bot / 488 - Mentor / Founder
1994 - Sunny Delight - Driver - champion
Reply With Quote