Wanna hang together?
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 05-01-2015, 11:23
E Dawg E Dawg is offline
... is not done with FRC yet.
AKA: Ethan
FRC #0159 (Alpine Robotics)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Fort Collins, CO
Posts: 267
E Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud of
Errors in motor declarations

We are getting errors in all of our motor constructors. It reads: "The type 'Talon' must implement the pure virtual method 'SpeedController::Set'." Essentially, we are being told that Set is not being overridden, yet it is overridden. Has anyone else run into this and solved it? Or does anyone have a solution?

Our constructor looks like this:
Quote:
motor1 = new Talon(0);
Thanks.
  #2   Spotlight this post!  
Unread 05-01-2015, 11:55
Cel Skeggs Cel Skeggs is offline
Robot Software Manager Alumnus
AKA: Previously known as Colby
FRC #1540 (The Flaming Chickens)
Team Role: Alumni
 
Join Date: Feb 2013
Rookie Year: 2009
Location: Portland, Oregon, USA
Posts: 107
Cel Skeggs is a glorious beacon of lightCel Skeggs is a glorious beacon of lightCel Skeggs is a glorious beacon of lightCel Skeggs is a glorious beacon of lightCel Skeggs is a glorious beacon of lightCel Skeggs is a glorious beacon of light
Re: Errors in motor declarations

If it isn't too big, can you post your entire file? It could help diagnose the problem.
If it is too big to post, could you try creating a new minimal project, make sure that it exhibits this problem, and post the entire code of that?
__________________
Software manager alumnus. Developer of the CCRE, a powerful robot code framework based on dataflow and composibility.
Refer to as she/her/hers. Years of FRC: 2012, 2013, 2014, 2015, 2016. FLL for a few years beforehand.
Team 1540: The Flaming Chickens | Portland, Oregon | Twitter | Facebook
  #3   Spotlight this post!  
Unread 05-01-2015, 12:00
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,609
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Errors in motor declarations

Is the error being reported by the Eclipse C++ syntax checker, or when you are building the program? If it is the former, try to rebuild the index per https://wpilib.screenstepslive.com/s...ildingTheIndex
  #4   Spotlight this post!  
Unread 05-01-2015, 13:18
E Dawg E Dawg is offline
... is not done with FRC yet.
AKA: Ethan
FRC #0159 (Alpine Robotics)
Team Role: Mentor
 
Join Date: Feb 2013
Rookie Year: 2012
Location: Fort Collins, CO
Posts: 267
E Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud ofE Dawg has much to be proud of
Re: Errors in motor declarations

Fixed it! We uninstalled and reinstalled everything. There must have been a problem with the program finding the WPI libraries.
  #5   Spotlight this post!  
Unread 05-01-2015, 13:19
ejb1123 ejb1123 is offline
Registered User
AKA: E.J. Bevenour
FRC #5404 (Gearaffes)
Team Role: Leadership
 
Join Date: Nov 2014
Rookie Year: 2008
Location: U.S.
Posts: 7
ejb1123 is an unknown quantity at this point
It need a type to make the varuble. I have c++ experience with QT but this is my first year in FRC and I haven't worked with the WPI 2015 C++ library yet. I am not sure if they have to be defined as a pointer. Below is how I would define it.
Code:
Talon *motor1 = new Talon(0);

Last edited by ejb1123 : 05-01-2015 at 16:29.
Closed Thread


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 08:52.

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