本文整理汇总了C++中LiveWindow::AddActuator方法的典型用法代码示例。如果您正苦于以下问题:C++ LiveWindow::AddActuator方法的具体用法?C++ LiveWindow::AddActuator怎么用?C++ LiveWindow::AddActuator使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类LiveWindow
的用法示例。
在下文中一共展示了LiveWindow::AddActuator方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: init
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION
void RobotMap::init() {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
LiveWindow* lw = LiveWindow::GetInstance();
drivetrainLeftside = new Victor(1, 1);
lw->AddActuator("Drivetrain", "Left side", (Victor*) drivetrainLeftside);
drivetrainRightside = new Victor(1, 2);
lw->AddActuator("Drivetrain", "Right side", (Victor*) drivetrainRightside);
drivetrainRobotDrive = new RobotDrive(drivetrainLeftside, drivetrainRightside);
drivetrainRobotDrive->SetSafetyEnabled(false);
drivetrainRobotDrive->SetExpiration(0.1);
drivetrainRobotDrive->SetSensitivity(0.5);
drivetrainRobotDrive->SetMaxOutput(1.0);
drivetrainDrivetrainGyro = new Gyro(1, 1);
lw->AddSensor("Drivetrain", "Drivetrain Gyro", drivetrainDrivetrainGyro);
drivetrainDrivetrainGyro->SetSensitivity(1.25);
drivetrainOpticalsensor = new DigitalInput(1, 1);
lw->AddSensor("Drivetrain", "Optical sensor", drivetrainOpticalsensor);
drivetrainRangeFinder = new AnalogChannel(1, 2);
lw->AddSensor("Drivetrain", "RangeFinder", drivetrainRangeFinder);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
}
示例2: init
void RobotMap::init() {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
LiveWindow *lw = LiveWindow::GetInstance();
controlSSsolenoid1.reset(new Solenoid(1));
lw->AddActuator("ControlSS", "solenoid1", controlSSsolenoid1);
controlSSsolenoid1.reset(new Solenoid(2));
lw->AddActuator("ControlSS", "solenoid2", controlSSsolenoid2);
controlSSsolenoid1.reset(new Solenoid(3));
lw->AddActuator("ControlSS", "solenoid3", controlSSsolenoid3);
controlSSsolenoid1.reset(new Solenoid(4));
lw->AddActuator("ControlSS", "solenoid4", controlSSsolenoid4);
controlSSfrontLS.reset(new DigitalInput(0));
lw->AddSensor("ControlSS", "frontLS", controlSSfrontLS);
controlSSbackLS.reset(new DigitalInput(1));
lw->AddSensor("ControlSS", "backLS", controlSSbackLS);
controlSSsideLS.reset(new DigitalInput(2));
lw->AddSensor("ControlSS", "sideLS", controlSSsideLS);
controlSSpressureGauge.reset(new AnalogInput(1));
lw->AddSensor("ControlSS", "pressureGauge", controlSSpressureGauge);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
}
示例3: RobotInit
/**
* Called when the robot starts up and the robot control software comes online
* Much (if possible, all) of the initialization required for your robot should happen here
*/
void RobotInit()
{
//Get the instance of the LiveWindow system
lw = LiveWindow::GetInstance();
//Create Drivetrain Left Instance and add to LiveWindow
left = new Victor(LEFT_PWM);
lw->AddActuator("Victor", LEFT_PWM, left);
//Create Drivetrain Right Instance and add to LiveWindow
right = new Victor(RIGHT_PWM);
lw->AddActuator("Victor", RIGHT_PWM, right);
//Create RobotDrive Instance
rd = new RobotDrive(left, right);
//Create Primary Shooter Instance and add to LiveWindow
shoot1 = new Victor(SHOOT1_PWM);
lw->AddActuator("Victor", SHOOT1_PWM, shoot1);
//Create Secondary Shooter Instance and add to LiveWindow
shoot2 = new Victor(SHOOT2_PWM);
lw->AddActuator("Victor", SHOOT2_PWM, shoot2);
//Create Kicker Instance and add to LiveWindow
kicker = new Victor(KICKER_PWM);
lw->AddActuator("Victor", KICKER_PWM, kicker);
//Create Kicker Switch Instance and add to LiveWindow
kickerSwitch = new DigitalInput(KICKER_DIO);
lw->AddSensor("Digital Input", KICKER_DIO, kickerSwitch);
//Create Joystick Instance
j1 = new Joystick(JOYSTICK_USB);
}
示例4: init
void RobotMap::init() {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
LiveWindow *lw = LiveWindow::GetInstance();
chassisLeftFrontMotor.reset(new Talon(0));
lw->AddActuator("Chassis", "LeftFrontMotor", (Talon&) chassisLeftFrontMotor);
chassisrightFrontMotor.reset(new Talon(1));
lw->AddActuator("Chassis", "rightFrontMotor", (Talon&) chassisrightFrontMotor);
chassisleftRearMotor.reset(new Talon(2));
lw->AddActuator("Chassis", "leftRearMotor", (Talon&) chassisleftRearMotor);
chassisrightRearMotor.reset(new Talon(3));
lw->AddActuator("Chassis", "rightRearMotor", (Talon&) chassisrightRearMotor);
chassisRobotDrive41.reset(new RobotDrive(chassisLeftFrontMotor, chassisleftRearMotor,
chassisrightFrontMotor, chassisrightRearMotor));
chassisRobotDrive41->SetSafetyEnabled(true);
chassisRobotDrive41->SetExpiration(0.1);
chassisRobotDrive41->SetSensitivity(0.5);
chassisRobotDrive41->SetMaxOutput(1.0);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
}
示例5: init
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION
void RobotMap::init() {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
LiveWindow* lw = LiveWindow::GetInstance();
drivetrainFrontRight = new Victor(1, 1);
lw->AddActuator("Drivetrain", "FrontRight", (Victor*) drivetrainFrontRight);
drivetrainRearRight = new Victor(1, 2);
lw->AddActuator("Drivetrain", "RearRight", (Victor*) drivetrainRearRight);
drivetrainFrontLeft = new Victor(1, 3);
lw->AddActuator("Drivetrain", "FrontLeft", (Victor*) drivetrainFrontLeft);
drivetrainRearLeft = new Victor(1, 4);
lw->AddActuator("Drivetrain", "RearLeft", (Victor*) drivetrainRearLeft);
drivetrainHolonomic = new RobotDrive(drivetrainFrontLeft, drivetrainRearLeft,
drivetrainFrontRight, drivetrainRearRight);
drivetrainHolonomic->SetSafetyEnabled(true);
drivetrainHolonomic->SetExpiration(0.1);
drivetrainHolonomic->SetSensitivity(0.5);
drivetrainHolonomic->SetMaxOutput(1.0);
drivetrainHolonomic->SetInvertedMotor(RobotDrive::kFrontLeftMotor, true);
drivetrainHolonomic->SetInvertedMotor(RobotDrive::kRearLeftMotor, true);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
}
示例6: init
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION
void RobotMap::init() {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
LiveWindow* lw = LiveWindow::GetInstance();
driveTrainRightMotor = new Jaguar(1, 2);
lw->AddActuator("DriveTrain", "RightMotor", (Jaguar*) driveTrainRightMotor);
driveTrainLeftMotor = new Jaguar(1, 1);
lw->AddActuator("DriveTrain", "LeftMotor", (Jaguar*) driveTrainLeftMotor);
driveTrainRobotDrive21 = new RobotDrive(driveTrainLeftMotor, driveTrainRightMotor);
driveTrainRobotDrive21->SetSafetyEnabled(true);
driveTrainRobotDrive21->SetExpiration(0.1);
driveTrainRobotDrive21->SetSensitivity(0.5);
driveTrainRobotDrive21->SetMaxOutput(1.0);
driveTrainRobotDrive21->SetInvertedMotor(RobotDrive::kRearLeftMotor, true);
driveTrainRobotDrive21->SetInvertedMotor(RobotDrive::kRearRightMotor, true);
shootingWheelShootingWheelController = new Talon(1, 3);
lw->AddActuator("ShootingWheel", "ShootingWheelController", (Talon*) shootingWheelShootingWheelController);
loaderLoaderController = new Talon(1, 4);
lw->AddActuator("Loader", "LoaderController", (Talon*) loaderLoaderController);
loaderReadySwitch = new DigitalInput(1, 1);
lw->AddSensor("Loader", "ReadySwitch", loaderReadySwitch);
loaderEndSwitch = new DigitalInput(1, 2);
lw->AddSensor("Loader", "EndSwitch", loaderEndSwitch);
trackLifterTrackLifterController = new Talon(1, 5);
lw->AddActuator("TrackLifter", "TrackLifterController", (Talon*) trackLifterTrackLifterController);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
}
示例7: init
void RobotMap::init() {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
LiveWindow* lw = LiveWindow::GetInstance();
drivefrontRightMotor = new Talon(2);
lw->AddActuator("Drive", "frontRightMotor", (Talon*) drivefrontRightMotor);
drivefrontLeftMotor = new Talon(1);
lw->AddActuator("Drive", "frontLeftMotor", (Talon*) drivefrontLeftMotor);
drivebackRightMotor = new Talon(3);
lw->AddActuator("Drive", "backRightMotor", (Talon*) drivebackRightMotor);
drivebackLeftMotor = new Talon(4);
lw->AddActuator("Drive", "backLeftMotor", (Talon*) drivebackLeftMotor);
drivemecDrive = new RobotDrive(drivefrontLeftMotor, drivebackLeftMotor,
drivefrontRightMotor, drivebackRightMotor);
drivemecDrive->SetSafetyEnabled(true);
drivemecDrive->SetExpiration(0.1);
drivemecDrive->SetSensitivity(0.5);
drivemecDrive->SetMaxOutput(1.0);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
}
示例8: init
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION
void RobotMap::init() {
LiveWindow* lw = LiveWindow::GetInstance();
driveLSpeed = new Talon(1, 2);
lw->AddActuator("Drive", "LSpeed", (Talon*) driveLSpeed);
driveRSpeed = new Talon(1, 1);
lw->AddActuator("Drive", "RSpeed", (Talon*) driveRSpeed);
driveControl = new RobotDrive(driveLSpeed, driveRSpeed);
driveControl->SetSafetyEnabled(true);
driveControl->SetExpiration(0.1);
driveControl->SetSensitivity(0.5);
driveControl->SetMaxOutput(1.0);
driveGyro = new Gyro(1, 1);
lw->AddSensor("Drive", "Gyro", driveGyro);
driveGyro->SetSensitivity(0.007);
driveTurn = new Victor(1, 4);
//lw->AddActuator("Drive", "Turn", (Victor*) driveTurn);
driveGyroPID = new PIDController(0.03, 0.0, 0.0,/* F: 0.0, */ driveGyro, driveTurn, 0.02);
lw->AddActuator("Drive", "GyroPID", driveGyroPID);
driveGyroPID->SetContinuous(false); driveGyroPID->SetAbsoluteTolerance(0.2);
driveGyroPID->SetOutputRange(-1.0, 1.0);
driveLEncoder = new Encoder(1, 2, 1, 3, false, Encoder::k1X);
lw->AddSensor("Drive", "LEncoder", driveLEncoder);
driveLEncoder->SetDistancePerPulse(1.0);
driveLEncoder->SetPIDSourceParameter(Encoder::kDistance);
driveLEncoder->Start();
driveREncoder = new Encoder(1, 9, 1, 10, true, Encoder::k1X);
lw->AddSensor("Drive", "REncoder", driveREncoder);
driveREncoder->SetDistancePerPulse(1.0);
driveREncoder->SetPIDSourceParameter(Encoder::kDistance);
driveREncoder->Start();
pincerPinch = new Relay(1,2);
tiltTilt = new Relay(1,3);
lw->AddSensor("El Pincho", "Pinch", pincerPinch);
lw->AddSensor("El Pincho", "Tilt", tiltTilt);
compressorSysComp = new Compressor(1, 1, 1, 4);
catapultEncoder = new Encoder(1, 6, 1, 7, false, Encoder::k4X);
lw->AddSensor("Catapult", "Encoder", catapultEncoder);
catapultEncoder->SetDistancePerPulse(1.0);
catapultEncoder->SetPIDSourceParameter(Encoder::kDistance);
catapultEncoder->Start();
catapultJag2 = new CANJaguar(2);
catapultJag3 = new CANJaguar(3);
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
}
示例9: init
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION
void RobotMap::init() {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
LiveWindow* lw = LiveWindow::GetInstance();
shooterShooterMotor = new Jaguar(1, 1);
lw->AddActuator("Shooter", "ShooterMotor", (Jaguar*) shooterShooterMotor);
feederFeederMotor = new Jaguar(1, 2);
lw->AddActuator("Feeder", "FeederMotor", (Jaguar*) feederFeederMotor);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
}
示例10: init
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION
void RobotMap::init() {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
LiveWindow* lw = LiveWindow::GetInstance();
driveTrainFrontLeftMotor = new CANJaguar(2);
driveTrainCenterLeftMotor = new CANJaguar(3);
driveTrainRearLeftMotor = new CANJaguar(9);
driveTrainFrontRightMotor = new CANJaguar(10);
driveTrainCenterRightMotor = new CANJaguar(6);
driveTrainRearRightMotor = new CANJaguar(16);
shifterShifterLeftSolenoid = new DoubleSolenoid(1, 3, 4);
shifterShifterRightSolenoid = new DoubleSolenoid(1, 1, 2);
airCompressorCompressorSpike = new Relay(1, 3);
lw->AddActuator("AirCompressor", "CompressorSpike", airCompressorCompressorSpike);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
}
示例11: init
void RobotMap::init() {
// The following variables are automatically assigned by
// robotbuilder and will be updated the next time you export to
// Java from robot builder. Do not put any code or make any change
// in the following block or it will be lost on an update. To
// prevent this subsystem from being automatically updated, delete
// the following line.
LiveWindow* lw = LiveWindow::GetInstance();
DRIVE_LJAGA = new CANJaguar(6);
DRIVE_LJAGB = new CANJaguar(7);
DRIVE_RJAGA = new CANJaguar(8);
DRIVE_RJAGB = new CANJaguar(9);
DRIVE_LENC = new Encoder(1, 2, 1, 3, false, Encoder::k4X);
lw->AddSensor("Drive", "lEnc", DRIVE_LENC);
DRIVE_LENC->SetDistancePerPulse(1.0);
DRIVE_LENC->SetPIDSourceParameter(Encoder::kRate);
DRIVE_RENC = new Encoder(1, 4, 1, 5, false, Encoder::k4X);
lw->AddSensor("Drive", "rEnc", DRIVE_RENC);
DRIVE_RENC->SetDistancePerPulse(1.0);
DRIVE_RENC->SetPIDSourceParameter(Encoder::kRate);
DRIVE_SHIFTER = new LiveSolenoid(1, 1);
lw->AddActuator("Drive", "shifter", DRIVE_SHIFTER);
}
示例12: init
void RobotMap::init() {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
LiveWindow* lw = LiveWindow::GetInstance();
moverRightMotor0 = new Jaguar(0);
lw->AddActuator("Mover", "RightMotor0", (Jaguar*) moverRightMotor0);
moverRightMotor1 = new Jaguar(1);
lw->AddActuator("Mover", "RightMotor1", (Jaguar*) moverRightMotor1);
moverLeftMotor2 = new Jaguar(2);
lw->AddActuator("Mover", "LeftMotor2", (Jaguar*) moverLeftMotor2);
moverLeftMotor3 = new Jaguar(3);
lw->AddActuator("Mover", "LeftMotor3", (Jaguar*) moverLeftMotor3);
moverSpeedSwitch = new DigitalInput(8);
lw->AddSensor("Mover", "SpeedSwitch", moverSpeedSwitch);
airCannonLeftCannon = new Solenoid(0, 2);
lw->AddActuator("AirCannon", "LeftCannon", airCannonLeftCannon);
airCannonMiddleCannon = new Solenoid(0, 1);
lw->AddActuator("AirCannon", "MiddleCannon", airCannonMiddleCannon);
airCannonRightCannon = new Solenoid(0, 0);
lw->AddActuator("AirCannon", "RightCannon", airCannonRightCannon);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
}
示例13: init
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION
void RobotMap::init() {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
LiveWindow* lw = LiveWindow::GetInstance();
drivetrainleftfront = new CANJaguar(6);
drivetrainleftrear = new CANJaguar(18);
drivetrainrightfront = new CANJaguar(11);
drivetrainrightrear = new CANJaguar(5);
elevatorLeft = new CANJaguar(8);
elevatorRight = new CANJaguar(4);
elevatorPot = new AnalogChannel(1, 1);
lw->AddSensor("Elevator", "Pot", elevatorPot);
shooterFront = new CANJaguar(3);
shooterRear = new CANJaguar(7);
shifterLeft = new Servo(1, 1);
lw->AddActuator("Shifter", "Left", shifterLeft);
shifterRight = new Servo(1, 2);
lw->AddActuator("Shifter", "Right", shifterRight);
flopperFlopperSpike = new Relay(1, 1);
lw->AddActuator("Flopper", "FlopperSpike", flopperFlopperSpike);
flopperIRSensor = new DigitalInput(1, 1);
lw->AddSensor("Flopper", "IRSensor", flopperIRSensor);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
}
示例14: init
void RobotMap::init() {
// /home/lvuser/wpilib-preferences.ini
std::string robotType = Preferences::GetInstance()->GetString("RobotType");
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
LiveWindow* lw = LiveWindow::GetInstance();
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
forwardDriveForwardLeftTalon = new CANTalon(Preferences::GetInstance()->GetInt("ForwardDrive::LeftTalon::CANID"));
forwardDriveForwardRightTalon = new CANTalon(Preferences::GetInstance()->GetInt("ForwardDrive::RightTalon::CANID"));
strafingDriveStrafeRightTalon = new CANTalon(Preferences::GetInstance()->GetInt("StrafingDrive::RightTalon::CANID"));
strafingDriveStrafeLeftTalon = new CANTalon(Preferences::GetInstance()->GetInt("StrafingDrive::LeftTalon::CANID"));
elevatorLiftLiftTalon = new CANTalon(Preferences::GetInstance()->GetInt("ElevatorLift::LiftTalon::CANID"));
forwardDriveForwardLeftTalon->SetPosition(0);
forwardDriveForwardRightTalon->SetPosition(0);
strafingDriveStrafeRightTalon->SetPosition(0);
strafingDriveStrafeLeftTalon->SetPosition(0);
liftGrabberLiftGrabberSolenoid = new Solenoid(Preferences::GetInstance()->GetInt("LiftGrabber::PCMID"),
Preferences::GetInstance()->GetInt("LiftGrabber::Solenoid"));
lw->AddActuator("LiftGrabber", "LiftGrabberSolenoid", liftGrabberLiftGrabberSolenoid);
spinnersSpinnerRightTalon = new CANTalon(Preferences::GetInstance()->GetInt("Spinners::RightTalon::CANID"));
spinnersSpinnerLeftTalon = new CANTalon(Preferences::GetInstance()->GetInt("Spinners::LeftTalon::CANID"));
brakeBrakeSolenoid = new Solenoid(Preferences::GetInstance()->GetInt("Brake::PCMID"),
Preferences::GetInstance()->GetInt("Brake::BrakeSolenoid"));
lw->AddActuator("Brake", "BrakeSolenoid", brakeBrakeSolenoid);
canBurglerCanBurglerRightSolenoid = new DoubleSolenoid(Preferences::GetInstance()->GetInt("RightCanBurgler::PCMID"),
Preferences::GetInstance()->GetInt("RightCanBurgler::CanBurglerForwardSolenoid"),
Preferences::GetInstance()->GetInt("RightCanBurgler::CanBurglerReverseSolenoid"));
lw->AddActuator("CanBurgler", "CanBurglerRightSolenoid", canBurglerCanBurglerRightSolenoid);
canBurglerCanBurglerLeftSolenoid = new DoubleSolenoid(Preferences::GetInstance()->GetInt("LeftCanBurgler::PCMID"),
Preferences::GetInstance()->GetInt("LeftCanBurgler::CanBurglerForwardSolenoid"),
Preferences::GetInstance()->GetInt("LeftCanBurgler::CanBurglerReverseSolenoid"));
lw->AddActuator("CanBurgler", "CanBurglerLeftSolenoid", canBurglerCanBurglerLeftSolenoid);
pneumaticsCompressor = new Compressor(Preferences::GetInstance()->GetInt("Compressor::PCMID"));
}
示例15: init
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=ALLOCATION
void RobotMap::init() {
// BEGIN AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
LiveWindow* lw = LiveWindow::GetInstance();
driveTrainLeftDrive = new CANJaguar(1);
driveTrainRightDrive = new CANJaguar(2);
driveTrainRight0Drive = new CANJaguar(3);
driveTrainLeft0Drive = new CANJaguar(4);
driveTrainRobotDrive = new RobotDrive(driveTrainLeftDrive, driveTrainRightDrive, driveTrainRight0Drive, driveTrainLeft0Drive);
driveTrainRobotDrive->SetSafetyEnabled(false);
driveTrainRobotDrive->SetExpiration(0.1);
driveTrainRobotDrive->SetSensitivity(0.5);
driveTrainRobotDrive->SetMaxOutput(1.0);
collectorPacManIR = new DigitalInput(1, 4);
lw->AddSensor("Collector", "PacManIR", collectorPacManIR);
collectorPacManFeeder = new Victor(1, 3);
lw->AddActuator("Collector", "PacManFeeder", (Victor*) collectorPacManFeeder);
shootermainShooter = new CANJaguar(7);
shooterTurret = new CANJaguar(5);
shooteroneBitIREncoder = new DigitalInput(1, 6);
lw->AddSensor("Shooter", "oneBitIREncoder", shooteroneBitIREncoder);
shooterAngleEncoder = new AnalogChannel(1, 2);
lw->AddSensor("Shooter", "AngleEncoder", shooterAngleEncoder);
shooterAngleVictor = new Victor(1, 4);
lw->AddActuator("Shooter", "AngleVictor", (Victor*) shooterAngleVictor);
angleCheckWithGyroGyro1 = new Gyro(1, 1);
lw->AddSensor("AngleCheckWithGyro", "Gyro 1", angleCheckWithGyroGyro1);
//angleCheckWithGyroGyro1->SetSensitivity(0.007);
// END AUTOGENERATED CODE, SOURCE=ROBOTBUILDER ID=CONSTRUCTORS
angleCheckWithGyroGyro1->Reset();
}