Go to Post Does that mean that the Ultimate Question of Life, the Universe, and Everything is, "How many total tubes will be available to score for the FRC 2011 game, LogoMotion? - EricH [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 21-01-2017, 16:22
RaskorTheWise RaskorTheWise is offline
Registered User
AKA: Noah Gersh
FRC #2551 (Penguin Empire)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Novato, CA
Posts: 8
RaskorTheWise is an unknown quantity at this point
Exclamation WPILib Spark and Encoder classes not working?

Hello all,

I'm the lead programmer on my team and have been programming for the team for three years. Today, while trying to deploy code to the robot, I encountered something I have never seen before. Cleaning the project works, but building the project produces an error claiming that IterativeRobot is not an accessible base of Robot (our robot class). Additionally, when trying to deploy, the 4 errors increase to 43, because the code refuses to recognize the Encoder or Spark classes either. What's going on, and how can I fix it?

You can find the code on our GitHub here: https://www.github.com/PenguinEmpire/FRC2017

Thanks for any help you can provide,
Noah Gersh
Team 2551
Reply With Quote
  #2   Spotlight this post!  
Unread 21-01-2017, 23:37
euhlmann's Avatar
euhlmann euhlmann is offline
CTO, Programmer
AKA: Erik Uhlmann
FRC #2877 (LigerBots)
Team Role: Leadership
 
Join Date: Dec 2015
Rookie Year: 2015
Location: United States
Posts: 377
euhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud ofeuhlmann has much to be proud of
Re: WPILib Spark and Encoder classes not working?

Quote:
Originally Posted by RaskorTheWise View Post
I'm the lead programmer on my team and have been programming for the team for three years.
This isn't a Dean's List interview

Quote:
Originally Posted by RaskorTheWise View Post
Cleaning the project works
Unless your disk suddenly explodes, there's no reason cleaning shouldn't work

Quote:
Originally Posted by RaskorTheWise View Post
building the project produces an error claiming that IterativeRobot is not an accessible base of Robot
Replace
https://github.com/PenguinEmpire/FRC...inEmpire.h#L23
Code:
class Robot : public IterativeRobot
"public" here means "make public members of IterativeRobot also public in Robot". Leaving it out means "make public members of IterativeRobot private in Robot" hence your access error.

and
https://github.com/PenguinEmpire/FRC...pire.h#L11-L14
with
Code:
#include <WPILib.h>
#include "MyJoystick.h"
#include <Joystick.h>
#include <Math.h>
<thing.h> means use include path and "thing.h" means include relative to the current file.
__________________
Creator of SmartDashboard.js, an extensible nodejs/webkit replacement for SmartDashboard


https://ligerbots.org
Reply With Quote
  #3   Spotlight this post!  
Unread 22-01-2017, 17:10
RaskorTheWise RaskorTheWise is offline
Registered User
AKA: Noah Gersh
FRC #2551 (Penguin Empire)
Team Role: Programmer
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Novato, CA
Posts: 8
RaskorTheWise is an unknown quantity at this point
Re: WPILib Spark and Encoder classes not working?

Quote:
Originally Posted by euhlmann View Post
This isn't a Dean's List interview


Unless your disk suddenly explodes, there's no reason cleaning shouldn't work



Replace
https://github.com/PenguinEmpire/FRC...inEmpire.h#L23
Code:
class Robot : public IterativeRobot
"public" here means "make public members of IterativeRobot also public in Robot". Leaving it out means "make public members of IterativeRobot private in Robot" hence your access error.

and
https://github.com/PenguinEmpire/FRC...pire.h#L11-L14
with
Code:
#include <WPILib.h>
#include "MyJoystick.h"
#include <Joystick.h>
#include <Math.h>
<thing.h> means use include path and "thing.h" means include relative to the current file.
I've made the necessary changes but I'm still seeing similar errors (everything excluding the IterativeRobot accessibility.) What are your thoughts?
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 13:37.

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