View Single Post
  #2   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