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

This isn’t a Dean’s List interview :rolleyes:

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

Replace
https://github.com/PenguinEmpire/FRC2017/blob/master/FRC2017Workspace/src/PenguinEmpire.h#L23


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/FRC2017/blob/master/FRC2017Workspace/src/PenguinEmpire.h#L11-L14
with


#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?