2
0
mirror of https://github.com/team2059/Dent synced 2024-12-18 20:52:29 -05:00

set elevator arm to be open by default

This commit is contained in:
Adam Long 2015-10-09 23:36:37 +00:00
parent a3cb0878f8
commit 47408ccf69
2 changed files with 4 additions and 2 deletions

View File

@ -50,6 +50,7 @@ void DentRobot::RobotInit() {
SmartDashboard::PutNumber("Gyro kP", -0.02);
printf("Starting compressor\n");
pneumatics->SetCompressorEnabled(true);
pneumatics->SetElevatorArmOpen(true);
}
void DentRobot::DisabledPeriodic() {
Scheduler::GetInstance()->Run();

5
OI.cpp
View File

@ -44,14 +44,15 @@ OI::OI() {
JoystickButton *right6 = new JoystickButton(rightStick, 6);
JoystickButton *right11 = new JoystickButton(rightStick, 11);
JoystickButton *right12 = new JoystickButton(rightStick, 12);
right11->WhenPressed(new OpenArm(2));
right12->WhenPressed(new CloseArm(2));
//Full speed lift
right3->WhileHeld(new Lower(3.5,false,0.5));
right5->WhileHeld(new Lower(3.5,false,1));
right4->WhileHeld(new Raise(3.4,false,-0.5));
right6->WhileHeld(new Raise(3.5,false,-1));
right11->WhenPressed(new OpenArm(2));
right12->WhenPressed(new CloseArm(2));
}
Joystick* OI::GetRightStick() {
return rightStick;