-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from BTK203/master
1.2.5 master pull
- Loading branch information
Showing
103 changed files
with
5,144 additions
and
5,398 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
... Rio Code/.wpilib/wpilib_preferences.json → ...ampleCode/.wpilib/wpilib_preferences.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"enableCppIntellisense": false, | ||
"currentLanguage": "java", | ||
"projectYear": "2019", | ||
"projectYear": "2020", | ||
"teamNumber": 3695 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+57.3 KB
KiwiLight - Rio Code/KiwiLightSampleCode/gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion
2
.../gradle/wrapper/gradle-wrapper.properties → .../gradle/wrapper/gradle-wrapper.properties
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=permwrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-5.0-bin.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-6.0.1-bin.zip | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=permwrapper/dists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
42 changes: 42 additions & 0 deletions
42
KiwiLight - Rio Code/KiwiLightSampleCode/src/main/java/frc/robot/Constants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/*----------------------------------------------------------------------------*/ | ||
/* 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; | ||
|
||
/** | ||
* The Constants class provides a convenient place for teams to hold robot-wide numerical or boolean | ||
* constants. This class should not be used for any other purpose. All constants should be | ||
* declared globally (i.e. public static). Do not put anything functional in this class. | ||
* | ||
* <p>It is advised to statically import this class (or one of its inner classes) wherever the | ||
* constants are needed, to reduce verbosity. | ||
*/ | ||
public final class Constants { | ||
/** | ||
* Motor IDs | ||
*/ | ||
public static final int | ||
DRIVE_RIGHT_MASTER_ID = 1, | ||
DRIVE_RIGHT_SLAVE_ID = 2, | ||
DRIVE_LEFT_MASTER_ID = 3, | ||
DRIVE_LEFT_SLAVE_ID = 4; | ||
|
||
/** | ||
* KiwiLight port | ||
*/ | ||
public static final int | ||
KIWILIGHT_PORT = 3695; | ||
|
||
/** | ||
* Motor inverts | ||
*/ | ||
public static final boolean | ||
DRIVE_RIGHT_MASTER_INVERT = false, | ||
DRIVE_RIGHT_SLAVE_INVERT = false, | ||
DRIVE_LEFT_MASTER_INVERT = true, | ||
DRIVE_LEFT_SLAVE_INVERT = true; | ||
} |
29 changes: 29 additions & 0 deletions
29
KiwiLight - Rio Code/KiwiLightSampleCode/src/main/java/frc/robot/Main.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/*----------------------------------------------------------------------------*/ | ||
/* 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; | ||
|
||
import edu.wpi.first.wpilibj.RobotBase; | ||
|
||
/** | ||
* Do NOT add any static variables to this class, or any initialization at all. Unless you know what | ||
* you are doing, do not modify this file except to change the parameter class to the startRobot | ||
* call. | ||
*/ | ||
public final class Main { | ||
private Main() { | ||
} | ||
|
||
/** | ||
* Main initialization function. Do not perform any initialization here. | ||
* | ||
* <p>If you change your main robot class, change the parameter type. | ||
*/ | ||
public static void main(String... args) { | ||
RobotBase.startRobot(Robot::new); | ||
} | ||
} |
96 changes: 96 additions & 0 deletions
96
KiwiLight - Rio Code/KiwiLightSampleCode/src/main/java/frc/robot/Robot.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
/*----------------------------------------------------------------------------*/ | ||
/* Copyright (c) 2017-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; | ||
|
||
import edu.wpi.first.wpilibj.DriverStation; | ||
import edu.wpi.first.wpilibj.TimedRobot; | ||
import edu.wpi.first.wpilibj2.command.Command; | ||
import edu.wpi.first.wpilibj2.command.CommandScheduler; | ||
|
||
/** | ||
* The VM is configured to automatically run this class, and to call the functions corresponding to | ||
* each mode, as described in the TimedRobot documentation. If you change the name of this class or | ||
* the package after creating this project, you must also update the build.gradle file in the | ||
* project. | ||
*/ | ||
public class Robot extends TimedRobot { | ||
private RobotContainer robotContainer; | ||
|
||
/** | ||
* This function is run when the robot is first started up and should be used for any | ||
* initialization code. | ||
*/ | ||
@Override | ||
public void robotInit() { | ||
// Instantiate our RobotContainer. This will perform all our button bindings, and put our | ||
// autonomous chooser on the dashboard. | ||
robotContainer = new RobotContainer(); | ||
} | ||
|
||
/** | ||
* This function is called every robot packet, no matter the mode. Use this for items like | ||
* diagnostics that you want ran during disabled, autonomous, teleoperated and test. | ||
* | ||
* <p>This runs after the mode specific periodic functions, but before | ||
* LiveWindow and SmartDashboard integrated updating. | ||
*/ | ||
@Override | ||
public void robotPeriodic() { | ||
CommandScheduler.getInstance().run(); | ||
} | ||
|
||
/** | ||
* This function is called once each time the robot enters Disabled mode. | ||
*/ | ||
@Override | ||
public void disabledInit() { | ||
} | ||
|
||
@Override | ||
public void disabledPeriodic() { | ||
} | ||
|
||
/** | ||
* This autonomous runs the autonomous command selected by your {@link RobotContainer} class. | ||
*/ | ||
@Override | ||
public void autonomousInit() { | ||
DriverStation.reportError("No Auto to run here!", false); | ||
} | ||
|
||
/** | ||
* This function is called periodically during autonomous. | ||
*/ | ||
@Override | ||
public void autonomousPeriodic() { | ||
} | ||
|
||
@Override | ||
public void teleopInit() { | ||
} | ||
|
||
/** | ||
* This function is called periodically during operator control. | ||
*/ | ||
@Override | ||
public void teleopPeriodic() { | ||
} | ||
|
||
@Override | ||
public void testInit() { | ||
// Cancels all running commands at the start of test mode. | ||
CommandScheduler.getInstance().cancelAll(); | ||
} | ||
|
||
/** | ||
* This function is called periodically during test mode. | ||
*/ | ||
@Override | ||
public void testPeriodic() { | ||
} | ||
} |
Oops, something went wrong.