|
Declaration issues
Having syntax issues (bottom code). The declarations look correct to me, but I cannot determine what's wrong. Please provide feedback:
#include "GearCatcher.h"
#include "../RobotMap.h"
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=INCLUDES
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=INCLUDES
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTANTS
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTANTS
GearCatcher::GearCatcher() : Subsystem("GearCatcher") {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
doubleSolenoid = RobotMap::gearCatcherDoubleSolenoid;
compressor1 = RobotMap::gearCatcherCompressor1;
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DECLARATIONS
}
void GearCatcher::InitDefaultCommand() {
// Set the default command for a subsystem here.
// SetDefaultCommand(new MySpecialCommand());
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=DEFAULT_COMMAND
}
void GearCatcher::Open() {
doubleSolenoid->Set(1);
}
void GearCatcher::Close() {
doubleSolenoid->Set(-1);
}
void GearCatcher::Stop() {
doubleSolenoid->Set(0);
}
|