Skip to content
This repository was archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
End of worlds! ~ Arya Shajpaul, Good job team! Go MOE!
Browse files Browse the repository at this point in the history
  • Loading branch information
Louminator authored and Louminator committed Apr 28, 2018
1 parent da0a69f commit 37f7944
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
19 changes: 14 additions & 5 deletions src/org/usfirst/frc/team365/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/

//Ahhh, it was fun time! 10 out of 10 would do again! - Arya
package org.usfirst.frc.team365.robot;

import com.ctre.phoenix.motorcontrol.ControlMode;
Expand Down Expand Up @@ -425,14 +425,23 @@ public void teleopInit() {
public void teleopPeriodic() {
lightsR.setPulseDuration(.5);
lightsL.setPulseDuration(0.5);
if(driveStick.getRawButtonReleased(5)){
lightsR.startPulse();
lightsL.startPulse();
if(functionStick.getX(Hand.kLeft) < -0.2){
lightsL.set(true);
}
else if(functionStick.getX(Hand.kLeft) > 0.2){
lightsR.set(true);
}
if(driveStick.getRawButton(7)){
else{
lightsR.set(false);
lightsL.set(false);
}

if(functionStick.getY(Hand.kLeft) > .7){
if(autoTimer.hasPeriodPassed(.3)){
lightsR.set(!lightsR.get());
lightsL.set(!lightsL.get());
}
}
double yJoy = -driveStick.getY();
double xJoy = driveStick.getX();
if (shifter.get()) {
Expand Down
4 changes: 2 additions & 2 deletions src/org/usfirst/frc/team365/robot/ScaleScaleCombo.java
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public static void leftStart(Robot robot) {
case 7:
AutoSimplify.lowerElevator(robot, robot.HEIGHT_ABOVE_CUBE);
//AutoSimplify.openGrabber(robot);
AutoSimplify.goStraight(robot, 2.9*FEET, 90, 0.4);
AutoSimplify.goStraight(robot, 2.5*FEET, 90, 0.4);
//ROBOT GOES STRAIGHT
break;
case 8:
Expand Down Expand Up @@ -138,7 +138,7 @@ public static void rightStart(Robot robot) {
case 7:
AutoSimplify.lowerElevator(robot, robot.HEIGHT_ABOVE_CUBE);
//AutoSimplify.openGrabber(robot);
AutoSimplify.goStraight(robot, 2.9*FEET, -90, 0.4);
AutoSimplify.goStraight(robot, 2.5*FEET, -90, 0.4);
//ROBOT GOES STRAIGHT
break;
case 8:
Expand Down

0 comments on commit 37f7944

Please sign in to comment.