Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified 2018Robot1/build/org/usfirst/frc/team696/robot/Robot.class
Binary file not shown.
Binary file modified 2018Robot1/build/org/usfirst/frc/team696/robot/RobotMap.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified 2018Robot1/dist/FRCUserProgram.jar
Binary file not shown.
434 changes: 429 additions & 5 deletions 2018Robot1/src/org/usfirst/frc/team696/robot/Robot.java

Large diffs are not rendered by default.

44 changes: 22 additions & 22 deletions 2018Robot1/src/org/usfirst/frc/team696/robot/RobotMap.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,40 +36,40 @@ public class RobotMap {
/*
Drive Base
*/
public static int leftFront;
public static int leftMid;
public static int leftRear;
public static int rightFront;
public static int rightMid;
public static int rightRear;
public static int leftFront = 14;
public static int leftMid = 15;
public static int leftRear = 16;
public static int rightFront = 3;
public static int rightMid = 2;
public static int rightRear = 1;

public static int leftRearCurrent;
public static int leftMidCurrent;
public static int leftFrontCurrent;
public static int rightRearCurrent;
public static int rightMidCurrent;
public static int rightFrontCurrent;
public static int leftRearCurrent = 13;
public static int leftMidCurrent = 14;
public static int leftFrontCurrent = 15;
public static int rightRearCurrent = 0;
public static int rightMidCurrent = 1;
public static int rightFrontCurrent = 2;

/*
Elevator
*/

public static int leftIntake = 1;
public static int rightIntake = 2;
public static int leftElevator = 3;
public static int rightElevator = 4;
public static int leftIntake = 4;
public static int rightIntake = 5;
public static int leftElevator = 6;
public static int rightElevator = 8;

public static int leftIntakeCurrent = 1;
public static int rightIntakeCurrent = 2;
public static int leftIntakeCurrent = 3;
public static int rightIntakeCurrent = 4;

/*
Climber
*/

public static int leftClimber = 1;
public static int rightClimber = 3;
public static int hookDeploy = 2;
public static int greenLED = 0;
public static int leftClimber = 9;
public static int rightClimber = 10;
public static int hookDeploy = 1;
public static int greenLED = 12;


}
Expand Down
729 changes: 396 additions & 333 deletions 2018Robot1/src/org/usfirst/frc/team696/robot/RobotTesting.java

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ public DriveCommand(double distance, double direction, double maxSpeed, double r
*/
@Override
protected void initialize() {
Robot.leftDriveEncoder.reset();
Robot.rightDriveEncoder.reset();
// Robot.leftDriveEncoder.reset();
// Robot.rightDriveEncoder.reset();
tempTargetDirection = Robot.targetDirection + Robot.navX.getYaw();


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@

// Put methods for controlling this subsystem
// here. Call these from Commands.
DigitalOutput greenLED;
// DigitalOutput greenLED;

public GreenLEDClimber(int greenLED) {
this.greenLED = new DigitalOutput(greenLED);
// this.greenLED = new DigitalOutput(greenLED);
}


Expand All @@ -22,11 +22,14 @@ public void initDefaultCommand() {
// setDefaultCommand(new MySpecialCommand());
}
public void set(boolean state) {
greenLED.set(state);
// greenLED.set(state);


}

public boolean get() { return greenLED.get(); }
public boolean get() {
// return greenLED.get();
return true;
}
}

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Constants {
public int buttonY = 4;
public int leftXAxis = 0;
public int leftYAxis = 1;
public int rightXAxis = 4;
public int rightXAxis = 2;
public int rightYAxis = 5;
public int leftBumper = 5;
public int rightBumper = 6;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,39 @@
<<<<<<< HEAD
//package org.usfirst.frc.team696.robot.utilities;
//
//import edu.wpi.first.wpilibj.I2C;
//
//public class RGBSensor {
//
// static double seconds;
// public static Timer timer = new Timer(seconds);
//
// I2C rgbSensor;
// byte sensorAddress = 0x29;
// byte sensorEnableAddress = 0x00;
// byte sensorEnable_PON = 0x01;
// byte sensorEnable_AEN = 0x02;
// byte sensorCommand_Bit = (byte) 0x80;
// public byte sensorClearL = 0x14;
// public byte sensorRedL = 0x16;
// public byte sensorGreenL = 0x18;
// public byte sensorBlueL = 0x1A;
// byte[] buffer1 = new byte[1];
// byte[] buffer2 = new byte[2];
// int[] RGBC = new int[4];
//
// public RGBSensor(I2C rgbSensor) {
// this.rgbSensor = rgbSensor;
//
// RGBC[0] = read16(sensorClearL);
// RGBC[1] = read16(sensorRedL);
// RGBC[2] = read16(sensorGreenL);
// RGBC[3] = read16(sensorBlueL);
// }
//
// public void enable() {
// rgbSensor.write(sensorEnableAddress, sensorEnable_PON);
=======
package org.usfirst.frc.team696.robot.utilities;

import edu.wpi.first.wpilibj.I2C;
Expand Down Expand Up @@ -51,18 +87,38 @@ public int read16(int reg){
int x;

// rgbSensor.write(sensorCommand_Bit | reg, 2);
>>>>>>> Testing_RGBSensor
// timer.runTimer(3);
rgbSensor.read(sensorCommand_Bit | reg, 2, buffer2);

t = buffer2[0];
x = buffer2[1];

x <<=8;
x |= t;

return x;


}

}
// rgbSensor.write(sensorEnableAddress, sensorEnable_PON | sensorEnable_AEN);
//
// }
//
// public byte read8(byte reg) {
//// rgbSensor.write(sensorCommand_Bit, reg);
// timer.runTimer(3);
// rgbSensor.read(sensorCommand_Bit | reg, 1, buffer1);
//
// return reg;
// }
//
// public int read16(int reg){
//
// int t;
// int x;
//
//// rgbSensor.write(sensorCommand_Bit | reg, 2);
//// timer.runTimer(3);
// rgbSensor.read(sensorCommand_Bit | reg, 2, buffer2);
//
// t = buffer2[0];
// x = buffer2[1];
//
// x <<=8;
// x |= t;
//
// return x;
//
//
// }
//
//}
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added 2018Robot2/bin/com/kauailabs/nav6/frc/IMU.class
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
4 changes: 4 additions & 0 deletions ScorpiusCustom/.idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading