Quasics2017Code/Nike-2018/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() {
	const int kLeftFrontPort = 0;		
	const int kLeftRearPort = 1;		
	const int kRightFrontPort = 2;		
	const int kRightRearPort = 3;		
    driveBaseleftFront.reset(new Talon(kLeftFrontPort));
    driveBaseleftFront->SetInverted(true);
    driveBaseleftRear.reset(new Talon(kLeftRearPort));
    driveBaseleftRear->SetInverted(true);
    driveBaserightFront.reset(new Talon(kRightFrontPort));
    driveBaserightRear.reset(new Talon(kRightRearPort));
    driveBaseleftEncoder.reset(new Encoder(0, 1, true));
    driveBaseleftEncoder->SetDistancePerPulse(InchesPerTick);
    driveBaseleftEncoder->SetPIDSourceType(PIDSourceType::kRate);
    driveBaserightEncoder.reset(new Encoder(2, 3, false));
    driveBaserightEncoder->SetDistancePerPulse(InchesPerTick);
    driveBaserightEncoder->SetPIDSourceType(PIDSourceType::kRate);
}
void RobotMap :: init ( ) { const int kLeftFrontPort = 0 ; const int kLeftRearPort = 1 ; const int kRightFrontPort = 2 ; const int kRightRearPort = 3 ; driveBaseleftFront . reset ( new Talon ( kLeftFrontPort ) ) ; driveBaseleftFront -> SetInverted ( true ) ; driveBaseleftRear . reset ( new Talon ( kLeftRearPort ) ) ; driveBaseleftRear -> SetInverted ( true ) ; driveBaserightFront . reset ( new Talon ( kRightFrontPort ) ) ; driveBaserightRear . reset ( new Talon ( kRightRearPort ) ) ; driveBaseleftEncoder . reset ( new Encoder ( 0 , 1 , true ) ) ; driveBaseleftEncoder -> SetDistancePerPulse ( InchesPerTick ) ; driveBaseleftEncoder -> SetPIDSourceType ( PIDSourceType :: kRate ) ; driveBaserightEncoder . reset ( new Encoder ( 2 , 3 , false ) ) ; driveBaserightEncoder -> SetDistancePerPulse ( InchesPerTick ) ; driveBaserightEncoder -> SetPIDSourceType ( PIDSourceType :: kRate ) ; }
END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION
END AUTOGENERATED CODE SOURCE = ROBOTBUILDER ID = ALLOCATION
// 0 // 1 // 0 // 1