Go to Post In order to change the world and make it a better place we must start with ourselves. - wendymom [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rating: Thread Rating: 2 votes, 5.00 average. Display Modes
  #1   Spotlight this post!  
Unread 02-13-2015, 03:55 PM
ShadathChow's Avatar
ShadathChow ShadathChow is offline
Registered User
AKA: Shadath Chowdhury
FRC #3175 (Knight Vision)
Team Role: Alumni
 
Join Date: Feb 2014
Rookie Year: 2011
Location: Grosse Pointe Woods, Michigan
Posts: 21
ShadathChow is an unknown quantity at this point
Eclipse WPILib Problem C++

Hey everyone,
Our team is having a problem with connecting WPILib to Eclipse. The problem is that where we have errors is in the code that we didn't write. Our main problems are in VictorSP, Digital Input, and Joystick. Joystick won't connect, no matter what we do. For VictorSP, we have errors that say "must implement pure virtual method SpeedController::Set". In Digital Input, we have errors that say "must implement pure virtual method InterruptableSensorBase".

Does anyone know what to do?

Thanks,
ShadathChow
Reply With Quote
  #2   Spotlight this post!  
Unread 02-13-2015, 04:30 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: Eclipse WPILib Problem C++

This sounds a bit odd to me. The only thing coming to mind at the moment is that I have seen strange errors (maybe not THIS strange though) with new projects until executing a right-click on the project (left pane) and select Index->Rebuild.

Possibly you need an update of the WPI plugin? If you went through the screensteps very carefully, you will have set your preferences to auto update. Maybe check to see if that's still 'set' right? Preferences... Updates->AutoUpdate and check the checkbox for allowing automatic updates. You can also manually check for updates via Help->Check for updates.

Let us know what you find!
__________________
~~~~~~~~~~~~~~~~~~~
Bob Wolff - Software from the old-school
Mentor / C / C++ guy
Team 1967 - The Janksters - San Jose, CA
Reply With Quote
  #3   Spotlight this post!  
Unread 02-13-2015, 04:38 PM
ShadathChow's Avatar
ShadathChow ShadathChow is offline
Registered User
AKA: Shadath Chowdhury
FRC #3175 (Knight Vision)
Team Role: Alumni
 
Join Date: Feb 2014
Rookie Year: 2011
Location: Grosse Pointe Woods, Michigan
Posts: 21
ShadathChow is an unknown quantity at this point
Re: Eclipse WPILib Problem C++

Quote:
Originally Posted by bob.wolff68 View Post
This sounds a bit odd to me. The only thing coming to mind at the moment is that I have seen strange errors (maybe not THIS strange though) with new projects until executing a right-click on the project (left pane) and select Index->Rebuild.

Possibly you need an update of the WPI plugin? If you went through the screensteps very carefully, you will have set your preferences to auto update. Maybe check to see if that's still 'set' right? Preferences... Updates->AutoUpdate and check the checkbox for allowing automatic updates. You can also manually check for updates via Help->Check for updates.

Let us know what you find!
Unfortunately, we've tried this, to no avail. Thanks for your help, though!
Reply With Quote
  #4   Spotlight this post!  
Unread 02-13-2015, 04:53 PM
BrianAtlanta's Avatar
BrianAtlanta BrianAtlanta is offline
Registered User
FRC #1261
Team Role: Mentor
 
Join Date: Apr 2014
Rookie Year: 2012
Location: Atlanta, GA
Posts: 69
BrianAtlanta has a spectacular aura aboutBrianAtlanta has a spectacular aura about
Re: Eclipse WPILib Problem C++

This isn't likely not be related, but thought I would mention this C++ driver station update just in case.

http://www.usfirst.org/sites/default...Bundle0210.pdf
Reply With Quote
  #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
  #6   Spotlight this post!  
Unread 02-13-2015, 06:21 PM
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 516
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Eclipse WPILib Problem C++

Do you at least see an FRCUserProgram binary under the Binaries tree node in the Project explorer? If so then your code is building ok, in which case the IDE parser is likely showing stale info. In which case this should fix it....
http://www.chiefdelphi.com/forums/sh...63&postcount=5
Reply With Quote
  #7   Spotlight this post!  
Unread 02-13-2015, 08:04 PM
ShadathChow's Avatar
ShadathChow ShadathChow is offline
Registered User
AKA: Shadath Chowdhury
FRC #3175 (Knight Vision)
Team Role: Alumni
 
Join Date: Feb 2014
Rookie Year: 2011
Location: Grosse Pointe Woods, Michigan
Posts: 21
ShadathChow is an unknown quantity at this point
Re: Eclipse WPILib Problem C++

Quote:
Originally Posted by ozrien View Post
Do you at least see an FRCUserProgram binary under the Binaries tree node in the Project explorer? If so then your code is building ok, in which case the IDE parser is likely showing stale info. In which case this should fix it....
http://www.chiefdelphi.com/forums/sh...63&postcount=5
Quote:
Then in the project explorer, under binaries delete your FRCUserProgram. This step is necessary just for checking that the project does build.
We are getting stuck at this part. Where would we find the binaries to find the FRCUserProgram?
Reply With Quote
  #8   Spotlight this post!  
Unread 02-13-2015, 08:23 PM
ozrien's Avatar
ozrien ozrien is offline
Omar Zrien
AKA: Omar
no team
Team Role: Mentor
 
Join Date: Sep 2006
Rookie Year: 2003
Location: Sterling Heights, MI
Posts: 516
ozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant futureozrien has a brilliant future
Re: Eclipse WPILib Problem C++

http://wpilib.screenstepslive.com/s/...to-the-roborio

Look at the eclipse screenshots. There is a tree node called "Binaries" in the project explorer. It's above "Includes", which is above "Debug", etc...
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:10 AM.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi