2
0
mirror of https://github.com/team2059/Zaphod synced 2025-01-07 22:14:14 -05:00

Fixed potential startup crash

This commit is contained in:
Adam Long 2014-10-25 16:56:58 +00:00
parent ffd89bb0b8
commit 30cb0a224d

View File

@ -8,21 +8,6 @@ HHBase::HHBase():
printf("Done\n"); printf("Done\n");
} }
void HHBase::RobotInit(){ void HHBase::RobotInit(){
//Checks the state of the drive joystick to make sure it was not moved
//while plugged in, giving inaccurate readings
if(!hHBot->CheckJoystickValues()){
printf("***UNPLUG AND REPLUG THE JOYSTICKS***\n");
}
}
//Config testing
std::map<std::string, std::string> options;
void parse(std::ifstream & cfgfile){
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::DisabledInit(){}
void HHBase::AutonomousInit(){} void HHBase::AutonomousInit(){}