Quasics2016Code/SimpleRobot/src/RobotMap.cpp
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION

END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION
END AUTOGENERATED CODE SOURCE = ROBOTBUILDER ID = ALLOCATION
void RobotMap::init() {
    LiveWindow *lw = LiveWindow::GetInstance();
    driveSystemLeftFront.reset(new Talon(0));
    lw->AddActuator("DriveSystem", "LeftFront", (Talon&) driveSystemLeftFront);
    driveSystemLeftRear.reset(new Talon(1));
    lw->AddActuator("DriveSystem", "LeftRear", (Talon&) driveSystemLeftRear);
    driveSystemRightFront.reset(new Talon(2));
    lw->AddActuator("DriveSystem", "RightFront", (Talon&) driveSystemRightFront);
    driveSystemRightRear.reset(new Talon(3));
    lw->AddActuator("DriveSystem", "RightRear", (Talon&) driveSystemRightRear);
    driveSystemLeftEncoder.reset(new Encoder(0, 1, true, Encoder::k4X));
    lw->AddSensor("DriveSystem", "Left Encoder", driveSystemLeftEncoder);
    driveSystemLeftEncoder->SetDistancePerPulse(4.318E-4);
    driveSystemLeftEncoder->SetPIDSourceType(PIDSourceType::kRate);
    driveSystemRightEncoder.reset(new Encoder(2, 3, false, Encoder::k4X));
    lw->AddSensor("DriveSystem", "RightEncoder", driveSystemRightEncoder);
    driveSystemRightEncoder->SetDistancePerPulse(4.318E-4);
    driveSystemRightEncoder->SetPIDSourceType(PIDSourceType::kRate);
    intakeLeftIntakeWheel.reset(new Victor(4));
    lw->AddActuator("Intake", "LeftIntakeWheel", (Victor&) intakeLeftIntakeWheel);
    intakeRightIntakeWheel.reset(new Victor(5));
    lw->AddActuator("Intake", "RightIntakeWheel", (Victor&) intakeRightIntakeWheel);
    intakePusher.reset(new DoubleSolenoid(1, 0, 1));
    intakeArmLeftArm.reset(new Spark(6));
    lw->AddActuator("IntakeArm", "LeftArm", (Spark&) intakeArmLeftArm);
    intakeArmRightArm.reset(new Spark(7));
    lw->AddActuator("IntakeArm", "RightArm", (Spark&) intakeArmRightArm);
    intakeArmLeftArmEncoder.reset(new Encoder(4, 5, false, Encoder::k4X));
    lw->AddSensor("IntakeArm", "LeftArmEncoder", intakeArmLeftArmEncoder);
    intakeArmLeftArmEncoder->SetDistancePerPulse(1.0);
    intakeArmLeftArmEncoder->SetPIDSourceType(PIDSourceType::kRate);
    intakeArmRightArmEncoder.reset(new Encoder(6, 7, true, Encoder::k4X));
    lw->AddSensor("IntakeArm", "RightArmEncoder", intakeArmRightArmEncoder);
    intakeArmRightArmEncoder->SetDistancePerPulse(1.0);
    intakeArmRightArmEncoder->SetPIDSourceType(PIDSourceType::kRate);
}
void RobotMap :: init ( ) { LiveWindow * lw = LiveWindow :: GetInstance ( ) ; driveSystemLeftFront . reset ( new Talon ( 0 ) ) ; lw -> AddActuator ( " " , " " , ( Talon & ) driveSystemLeftFront ) ; driveSystemLeftRear . reset ( new Talon ( 1 ) ) ; lw -> AddActuator ( " " , " " , ( Talon & ) driveSystemLeftRear ) ; driveSystemRightFront . reset ( new Talon ( 2 ) ) ; lw -> AddActuator ( " " , " " , ( Talon & ) driveSystemRightFront ) ; driveSystemRightRear . reset ( new Talon ( 3 ) ) ; lw -> AddActuator ( " " , " " , ( Talon & ) driveSystemRightRear ) ; driveSystemLeftEncoder . reset ( new Encoder ( 0 , 1 , true , Encoder :: k4X ) ) ; lw -> AddSensor ( " " , " " , driveSystemLeftEncoder ) ; driveSystemLeftEncoder -> SetDistancePerPulse ( 4.318E-4 ) ; driveSystemLeftEncoder -> SetPIDSourceType ( PIDSourceType :: kRate ) ; driveSystemRightEncoder . reset ( new Encoder ( 2 , 3 , false , Encoder :: k4X ) ) ; lw -> AddSensor ( " " , " " , driveSystemRightEncoder ) ; driveSystemRightEncoder -> SetDistancePerPulse ( 4.318E-4 ) ; driveSystemRightEncoder -> SetPIDSourceType ( PIDSourceType :: kRate ) ; intakeLeftIntakeWheel . reset ( new Victor ( 4 ) ) ; lw -> AddActuator ( " " , " " , ( Victor & ) intakeLeftIntakeWheel ) ; intakeRightIntakeWheel . reset ( new Victor ( 5 ) ) ; lw -> AddActuator ( " " , " " , ( Victor & ) intakeRightIntakeWheel ) ; intakePusher . reset ( new DoubleSolenoid ( 1 , 0 , 1 ) ) ; intakeArmLeftArm . reset ( new Spark ( 6 ) ) ; lw -> AddActuator ( " " , " " , ( Spark & ) intakeArmLeftArm ) ; intakeArmRightArm . reset ( new Spark ( 7 ) ) ; lw -> AddActuator ( " " , " " , ( Spark & ) intakeArmRightArm ) ; intakeArmLeftArmEncoder . reset ( new Encoder ( 4 , 5 , false , Encoder :: k4X ) ) ; lw -> AddSensor ( " " , " " , intakeArmLeftArmEncoder ) ; intakeArmLeftArmEncoder -> SetDistancePerPulse ( 1.0 ) ; intakeArmLeftArmEncoder -> SetPIDSourceType ( PIDSourceType :: kRate ) ; intakeArmRightArmEncoder . reset ( new Encoder ( 6 , 7 , true , Encoder :: k4X ) ) ; lw -> AddSensor ( " " , " " , intakeArmRightArmEncoder ) ; intakeArmRightArmEncoder -> SetDistancePerPulse ( 1.0 ) ; intakeArmRightArmEncoder -> SetPIDSourceType ( PIDSourceType :: kRate ) ; }
END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION
END AUTOGENERATED CODE SOURCE = ROBOTBUILDER ID = ALLOCATION
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
 // END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
