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 .gradle/6.0.1/executionHistory/executionHistory.bin
Binary file not shown.
Binary file modified .gradle/6.0.1/executionHistory/executionHistory.lock
Binary file not shown.
Binary file modified .gradle/6.0.1/fileHashes/fileHashes.bin
Binary file not shown.
Binary file modified .gradle/6.0.1/fileHashes/fileHashes.lock
Binary file not shown.
Binary file modified .gradle/6.0.1/javaCompile/javaCompile.lock
Binary file not shown.
Binary file modified .gradle/6.0.1/javaCompile/taskHistory.bin
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/buildOutputCleanup.lock
Binary file not shown.
Binary file modified .gradle/buildOutputCleanup/outputFiles.bin
Binary file not shown.
Binary file modified build/libs/2020Robot.jar
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.
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.
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.
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.
Binary file not shown.
Binary file not shown.
3 changes: 0 additions & 3 deletions build/tmp/jar/MANIFEST.MF

This file was deleted.

Binary file removed build/tmp/jniExtractDir/CTRE_PhoenixCCI.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/CTRE_PhoenixCanutils.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/CTRE_PhoenixCore.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/CTRE_PhoenixDiagnostics.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/CTRE_PhoenixPlatform.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/SparkMaxDriver.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/cscore.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/cscorejni.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/ntcore.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/ntcorejni.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_calib3d347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_core347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_features2d347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_flann347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_highgui347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_imgcodecs347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_imgproc347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_java347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_ml347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_objdetect347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_photo347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_shape347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_stitching347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_superres347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_video347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_videoio347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/opencv_videostab347.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/wpiHal.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/wpiHaljni.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/wpiutil.dll
Binary file not shown.
Binary file removed build/tmp/jniExtractDir/wpiutiljni.dll
Binary file not shown.
Empty file modified gradlew
100644 → 100755
Empty file.
3 changes: 2 additions & 1 deletion src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
import frc.robot.core751.subsystems.DifferentialDriveTrain;
import frc.robot.core751.subsystems.DifferentialDriveTrain.driveMotor;
import frc.robot.core751.subsystems.LightStrip.Orientation;
import frc.robot.core751.wrappers.OverrideableJoystick;

/**
* The Constants class provides a convenient place for teams to hold robot-wide
Expand Down Expand Up @@ -48,7 +49,7 @@ public int getButtonMapping() {

}

public static Joystick driverStick = new Joystick(Constants.driveStickPort);
public static OverrideableJoystick driverStick = new OverrideableJoystick(Constants.driveStickPort);

/*================================/
/===========Drive Train===========/
Expand Down
16 changes: 16 additions & 0 deletions src/main/java/frc/robot/Replay.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
/*----------------------------------------------------------------------------*/

package frc.robot;

/**
* Add your docs here.
*/
public class Replay {
public static Double[][] array = {{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.15748031437397003D},{0.4330708682537079D,0.15748031437397003D},{0.4330708682537079D,0.15748031437397003D},{0.4330708682537079D,0.15748031437397003D},{0.4330708682537079D,0.17322835326194763D},{0.4330708682537079D,0.18110236525535583D},{0.4330708682537079D,0.18110236525535583D},{0.4330708682537079D,0.18110236525535583D},{0.4330708682537079D,0.18110236525535583D},{0.4330708682537079D,0.18897637724876404D},{0.4330708682537079D,0.18897637724876404D},{0.4330708682537079D,0.18897637724876404D},{0.4330708682537079D,0.18110236525535583D},{0.4330708682537079D,0.18110236525535583D},{0.4330708682537079D,0.18110236525535583D},{0.4330708682537079D,0.16535432636737823D},{0.4330708682537079D,0.14960630238056183D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.14173229038715363D},{0.4330708682537079D,0.12598425149917603D},{0.4330708682537079D,0.12598425149917603D},{0.4330708682537079D,0.12598425149917603D},{0.4330708682537079D,0.12598425149917603D},{0.4330708682537079D,0.12598425149917603D},{0.4330708682537079D,0.12598425149917603D},{0.4330708682537079D,0.12598425149917603D},{0.4330708682537079D,0.12598425149917603D},{0.4330708682537079D,0.12598425149917603D},{0.4330708682537079D,0.12598425149917603D},{0.4330708682537079D,0.12598425149917603D},{0.4330708682537079D,0.12598425149917603D},{0.4330708682537079D,0.12598425149917603D},{0.4330708682537079D,0.12598425149917603D},{0.4330708682537079D,0.12598425149917603D},{0.4330708682537079D,0.11811023950576782D},{0.4330708682537079D,0.11811023950576782D},{0.4330708682537079D,0.11811023950576782D},{0.4330708682537079D,0.11811023950576782D},{0.4330708682537079D,0.11811023950576782D},{0.4330708682537079D,0.11811023950576782D},{0.4330708682537079D,0.11811023950576782D},{0.4330708682537079D,0.11811023950576782D},{0.4330708682537079D,0.11811023950576782D},{0.4330708682537079D,0.11811023950576782D},{0.4330708682537079D,0.11811023950576782D},{0.4330708682537079D,0.11811023950576782D},{0.4330708682537079D,0.11811023950576782D},{0.4330708682537079D,0.11811023950576782D},{0.4330708682537079D,0.11811023950576782D},{0.4330708682537079D,0.11023622006177902D},{0.4330708682537079D,0.11023622006177902D},{0.4330708682537079D,0.11023622006177902D},{0.4330708682537079D,0.09448818862438202D},{0.4251968562602997D,0.07086614519357681D},{0.4251968562602997D,0.06299212574958801D},{0.4251968562602997D,0.05511811003088951D},{0.4251968562602997D,0.05511811003088951D},{0.4251968562602997D,0.05511811003088951D},{0.4173228442668915D,0.05511811003088951D},{0.4173228442668915D,0.05511811003088951D},{0.4094488322734833D,0.05511811003088951D},{0.4094488322734833D,0.05511811003088951D},{0.4094488322734833D,0.05511811003088951D},{0.4094488322734833D,0.05511811003088951D},{0.4094488322734833D,0.05511811003088951D},{0.4094488322734833D,0.05511811003088951D},{0.4015747904777527D,0.07874015718698502D},{0.3937007784843445D,0.10236220806837082D},{0.3858267664909363D,0.11023622006177902D},{0.3779527544975281D,0.12598425149917603D},{0.3779527544975281D,0.12598425149917603D},{0.3779527544975281D,0.12598425149917603D},{0.3779527544975281D,0.12598425149917603D},{0.3779527544975281D,0.12598425149917603D},{0.3700787425041199D,0.14173229038715363D,1D},{0.3700787425041199D,0.14173229038715363D,1D},{0.3700787425041199D,0.14173229038715363D,1D},{0.3700787425041199D,0.14173229038715363D,1D},{0.3700787425041199D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3779527544975281D,0.14173229038715363D,1D},{0.3858267664909363D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3937007784843445D,0.14173229038715363D,1D},{0.3779527544975281D,0.11023622006177902D,1D},{0.3385826647281647D,0.08661417663097382D,1D},{0.3385826647281647D,0.08661417663097382D,1D},{0.10236220806837082D,0.0D,1D},{0.007874015718698502D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D},{-0.015625D,0.0D,1D}};

}
19 changes: 11 additions & 8 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
import frc.robot.core751.subsystems.LightStrip;
import frc.robot.subsystems.*;
import frc.robot.commands.SimpleAuton;
import frc.robot.core751.commands.JoystickPlayer;
import frc.robot.core751.commands.JoystickRecorder;

/**
* This class is where the bulk of the robot should be declared. Since Command-based is a
Expand All @@ -40,7 +42,7 @@ public class RobotContainer {

private final DifferentialDriveTrain differentialDriveTrain = new DifferentialDriveTrain(Constants.leftDrivetrainIDs, Constants.rightDrivetrainIDs, Constants.driveTrainMotorType, Constants.driveMotorProfile, Constants.driveInvertLeft, Constants.driveInvertRight);
private final ReversableArcadeDrive reversableArcadeDrive = new ReversableArcadeDrive(Constants.driverStick, differentialDriveTrain);
private final SwitchDriveDirection switchDriveDirection = new SwitchDriveDirection(differentialDriveTrain);
private final SwitchDriveDirection switchDriveDirection = new SwitchDriveDirection(differentialDriveTrain, 0, 1);

private final LightStrip[] lightStrips = new LightStrip[] {
new LightStrip(Constants.FTLEDstart, Constants.FTLEDLength, Constants.FTLEDOrientation),
Expand All @@ -55,22 +57,21 @@ public class RobotContainer {
private final RotateThenSelect rotateThenSelect = new RotateThenSelect(panel, lightStrips);
private final TogglePanelPosition togglePanelPosition = new TogglePanelPosition(panel);

private Camera camera;
private final Camera camera0 = new Camera(0);
private final Camera camera1 = new Camera(1);

private final Ball ball = new Ball(Constants.ballIntakeMotorID, Constants.ballPolycordMotorID, Constants.ballOutakeMotorID);
private final DefaultBall defaultBall = new DefaultBall(ball, Constants.driverStick, Constants.ballLBumper, Constants.ballRBumper, Constants.ballOutButton, Constants.ballReverseOutButton);

private final PowerDistributionPanel pdp = new PowerDistributionPanel();

private final JoystickRecorder joystickRecorder = new JoystickRecorder(Constants.driverStick);
private final JoystickPlayer joystickPlayer = new JoystickPlayer(Replay.array, Constants.driverStick);

/**
* The container for the robot. Contains subsystems, OI devices, and commands.
*/
public RobotContainer() {
try {
this.camera = new Camera(0);
} catch (Exception e) {
System.out.println(e);
}
//Configure the button bindings
configureButtonBindings();
}
Expand Down Expand Up @@ -101,6 +102,8 @@ private void configureButtonBindings() {
SmartDashboard.putData(goToColor);
SmartDashboard.putData(rotateWheel);
SmartDashboard.putData(rotateThenSelect);
SmartDashboard.putData(joystickRecorder);
SmartDashboard.putData(joystickPlayer);
}


Expand All @@ -114,4 +117,4 @@ public Command getAutonomousCommand() {
//TODO: Add auto command
return new SimpleAuton(differentialDriveTrain, ball);
}
}
}