Go to Post but look at the bright side, you will now be able to size 1/4-20 nuts with your forearm and i doubt there are many people who can say that :p - Greg Needel [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 Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 08-01-2017, 20:47
rakosi2 rakosi2 is offline
Registered User
FRC #4160
 
Join Date: Jan 2016
Location: San Diego
Posts: 15
rakosi2 is an unknown quantity at this point
Muliple errors from getting started and past years code

I updated my team's laptop and eclipse is erroring. I uninstalled everything and removed eclipse and installed the newest neon eclipse following the wpi instructions.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	62
Size:	202.4 KB
ID:	21497  
Reply With Quote
  #2   Spotlight this post!  
Unread 08-01-2017, 21:26
RufflesRidge RufflesRidge is offline
Registered User
no team
 
Join Date: Jan 2012
Location: USA
Posts: 990
RufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant futureRufflesRidge has a brilliant future
Re: Muliple errors from getting started and past years code

Have you tried rebuilding the index? ("Rebuilding the Index" on the page linked below)
https://wpilib.screenstepslive.com/s...p-test-program

If you've already tried that, try closing Eclipse, navigating to your user home directory C:\Users\USERNAME on Windows and locate and delete the wpilib folder, then re-open Eclipse.
Reply With Quote
  #3   Spotlight this post!  
Unread 09-01-2017, 18:55
rakosi2 rakosi2 is offline
Registered User
FRC #4160
 
Join Date: Jan 2016
Location: San Diego
Posts: 15
rakosi2 is an unknown quantity at this point
Re: Muliple errors from getting started and past years code

So after deleting the wpilib folder those errors disappeared but now new errors appeared. This is the code from last year and we are using Talon SRX.
Attached Thumbnails
Click image for larger version

Name:	Capture.PNG
Views:	24
Size:	219.5 KB
ID:	21510  
Reply With Quote
  #4   Spotlight this post!  
Unread 09-01-2017, 19:37
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,590
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: Muliple errors from getting started and past years code

Did you install the TalonSRX library?
Reply With Quote
  #5   Spotlight this post!  
Unread 09-01-2017, 19:39
rakosi2 rakosi2 is offline
Registered User
FRC #4160
 
Join Date: Jan 2016
Location: San Diego
Posts: 15
rakosi2 is an unknown quantity at this point
Re: Muliple errors from getting started and past years code

I installed the CTRE Toolsuite v4.4.1.8.exe
Reply With Quote
  #6   Spotlight this post!  
Unread 11-01-2017, 00:31
rakosi2 rakosi2 is offline
Registered User
FRC #4160
 
Join Date: Jan 2016
Location: San Diego
Posts: 15
rakosi2 is an unknown quantity at this point
Re: Muliple errors from getting started and past years code

Since RufflesRidge asked me to delete the wpilib folder, it also deleted the SRX library. After I reinstalled CTRE Toolkit, it still did not work. What I did was copy the files from /wpilib/user/cpp over to wpilib folder and included #include "CANTalonSRX.h" at the top of the code and it started working. The code for the SmartDashboard is erroring but at least I can move the robot.
Reply With Quote
  #7   Spotlight this post!  
Unread 11-01-2017, 00:40
jmullins16's Avatar
jmullins16 jmullins16 is offline
Registered User
AKA: Jeff Mullins
FRC #2135 (Presentation Invasion)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2011
Location: San Jose, CA
Posts: 23
jmullins16 is an unknown quantity at this point
Re: Muliple errors from getting started and past years code

Those drives look like they are CANTalon SRX objects. The key steps to using these that are different this year are:

1) Install the CTRE tools (as you did), AND
2) add: #include <CANTalon.h> in the files so that the methods are defined. They are no longer a subset of wpilib.h as they were last year.

Also, during beta testing we did have an instance where the include paths did not quite get set up correctly for the project. Open the includes in the navigator window on the left and see if there's a path that corresponds to the CTRE files that have been installed. We think that the only time this was not set up correctly for us is when the CTRE tools were installed, but Eclipse was not restarted.

Jeff
Reply With Quote
  #8   Spotlight this post!  
Unread 13-01-2017, 21:13
rakosi2 rakosi2 is offline
Registered User
FRC #4160
 
Join Date: Jan 2016
Location: San Diego
Posts: 15
rakosi2 is an unknown quantity at this point
Re: Muliple errors from getting started and past years code

Thanks, I was able to add the SRX library but I cant add the SmartDashboard as SendableChooser is empty.
I added these and still nothing.
#include <SmartDashboard\NamedSendable.h>
#include <SmartDashboard\Sendable.h>
#include <SmartDashboard\SendableChooser.h>
#include <SmartDashboard\SendableChooserBase.h>
#include <SmartDashboard\SmartDashboard.h>
Reply With Quote
  #9   Spotlight this post!  
Unread 21-01-2017, 16:37
rakosi2 rakosi2 is offline
Registered User
FRC #4160
 
Join Date: Jan 2016
Location: San Diego
Posts: 15
rakosi2 is an unknown quantity at this point
Re: Muliple errors from getting started and past years code

Ok incase someone else has this error to fix it change
LiveWindow *lw = LiveWindow::GetInstance();
SendableChooser *chooser;
to:
frc::LiveWindow* lw = LiveWindow::GetInstance();
frc::SendableChooser<std::string> chooser;

and:
chooser = new SendableChooser();
chooser->AddDefault(autoNameDefault, (void*) &autoNameDefault);
chooser->AddObject(autoNameCustom, (void*) &autoNameCustom);
frc::SmartDashboard::PutData("Auto Modes", chooser);
to:
chooser.AddDefault(autoNameDefault, autoNameDefault);
chooser.AddObject(autoNameCustom, autoNameCustom);
frc::SmartDashboard::PutData("Auto Modes", &chooser);

Last edited by rakosi2 : 21-01-2017 at 16:41.
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 23: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