diff --git a/src/HHBase.cpp b/src/HHBase.cpp index 88f5c86..6d04a21 100644 --- a/src/HHBase.cpp +++ b/src/HHBase.cpp @@ -1,4 +1,8 @@ #include "HHBase.h" +#include +#include +#include +#include HHBase::HHBase(): hHBot(new HHRobot()){ printf("Done\n"); @@ -10,6 +14,16 @@ void HHBase::RobotInit(){ printf("***UNPLUG AND REPLUG THE JOYSTICKS***\n"); } } +//Config testing +void parse(std::ifstream & cfgfile){ +std::map options; + std::string id, eq, val; + while(cfgfile >> id >> eq >> val){ + if (id[0] == '#') continue; + if (eq != "=") throw std::runtime_error("Parse error"); + options[id] = val; + } +} void HHBase::DisabledInit(){} void HHBase::AutonomousInit(){} void HHBase::TeleopInit(){} diff --git a/src/HHBase.h b/src/HHBase.h index a9fbb77..11fd713 100644 --- a/src/HHBase.h +++ b/src/HHBase.h @@ -8,6 +8,7 @@ #include "Subsystems/Compressor.h" #include "Subsystems/Sonar.h" #include "Subsystems/Dashboard.h" +#include //Because this is the first header to be included, classes need to be declared here class HHRobot; class HHShooter;