Skip to content

Commit

Permalink
Got rid of outdated and unneeded auto
Browse files Browse the repository at this point in the history
  • Loading branch information
theKnightedBird committed Jan 23, 2024
1 parent d310d56 commit c68d3ec
Show file tree
Hide file tree
Showing 17 changed files with 13 additions and 503 deletions.
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
gradlew linguist-generated=true
gradlew.bat linguist-generated=true
gradle/ linguist-generated=true
todolist.txt linguist-generated=true
src/main/deploy/pathplanner/ linguist-generated=true
todolist.txt linguist-generated=true
17 changes: 1 addition & 16 deletions src/main/kotlin/frc/team449/RobotLoop.kt
Original file line number Diff line number Diff line change
@@ -1,44 +1,35 @@
package frc.team449

import com.pathplanner.lib.server.PathPlannerServer
import edu.wpi.first.wpilibj.DriverStation
import edu.wpi.first.wpilibj.RobotBase
import edu.wpi.first.wpilibj.TimedRobot
import edu.wpi.first.wpilibj.smartdashboard.SmartDashboard
import edu.wpi.first.wpilibj2.command.Command
import edu.wpi.first.wpilibj2.command.CommandScheduler
import frc.team449.control.DriveCommand
import frc.team449.robot2023.Robot
import frc.team449.robot2023.auto.AutoChooser
import frc.team449.robot2023.auto.Paths
import frc.team449.robot2023.subsystems.ControllerBindings
import io.github.oblarg.oblog.Logger

/** The main class of the robot, constructs all the subsystems and initializes default commands. */
class RobotLoop : TimedRobot() {

private val robot = Robot()
private var autoChooser: AutoChooser = AutoChooser(robot)
private var autoCommand: Command? = null

override fun robotInit() {
// Yes this should be a print statement, it's useful to know that robotInit started.
println("Started robotInit.")

if (RobotBase.isSimulation()) {
if (isSimulation()) {
// Don't complain about joysticks if there aren't going to be any
DriverStation.silenceJoystickConnectionWarning(true)
// val instance = NetworkTableInstance.getDefault()
// instance.stopServer()
// instance.startClient4("localhost")
}

PathPlannerServer.startServer(5811)

Logger.configureLoggingAndConfig(robot, false)
Logger.configureLoggingAndConfig(Paths, false)
SmartDashboard.putData("Field", robot.field)
SmartDashboard.putData("Auto Chooser", autoChooser)

ControllerBindings(robot.driveController, robot).bindButtons()
}
Expand All @@ -52,12 +43,6 @@ class RobotLoop : TimedRobot() {
}

override fun autonomousInit() {
/** Every time auto starts, we update the chosen auto command */
val cmd = autoChooser.selected
if (cmd != null) {
this.autoCommand = cmd
CommandScheduler.getInstance().schedule(this.autoCommand)
}
}

override fun autonomousPeriodic() {}
Expand Down
87 changes: 0 additions & 87 deletions src/main/kotlin/frc/team449/control/auto/DifferentialFollower.kt

This file was deleted.

37 changes: 0 additions & 37 deletions src/main/kotlin/frc/team449/control/auto/DifferentialRoutine.kt

This file was deleted.

116 changes: 0 additions & 116 deletions src/main/kotlin/frc/team449/control/auto/HolonomicFollower.kt

This file was deleted.

55 changes: 0 additions & 55 deletions src/main/kotlin/frc/team449/control/auto/HolonomicRoutine.kt

This file was deleted.

8 changes: 0 additions & 8 deletions src/main/kotlin/frc/team449/robot2023/Robot.kt
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,11 @@ import edu.wpi.first.wpilibj.XboxController
import frc.team449.RobotBase
import frc.team449.control.holonomic.MecanumDrive.Companion.createMecanum
import frc.team449.control.holonomic.OIHolonomic.Companion.createHolonomicOI
import frc.team449.robot2023.subsystems.outreach.indexer.Indexer
import frc.team449.robot2022.indexer.IndexerConstants
import frc.team449.robot2023.constants.RobotConstants
import frc.team449.robot2023.subsystems.outreach.indexer.Indexer.Companion.createIndexer
import frc.team449.robot2023.subsystems.outreach.intake.Intake
import frc.team449.robot2023.subsystems.outreach.intake.Intake.Companion.createIntake
import frc.team449.robot2023.subsystems.outreach.intake.IntakeConstants
import frc.team449.robot2023.subsystems.outreach.shooter.Shooter
import frc.team449.robot2023.subsystems.outreach.shooter.Shooter.Companion.createShooter
import frc.team449.robot2023.subsystems.outreach.shooter.ShooterConstants
import frc.team449.system.AHRS
import frc.team449.system.encoder.NEOEncoder
import frc.team449.system.motor.createSparkMax
import io.github.oblarg.oblog.annotations.Log

class Robot : RobotBase() {
Expand Down
12 changes: 0 additions & 12 deletions src/main/kotlin/frc/team449/robot2023/auto/AutoChooser.kt

This file was deleted.

Loading

0 comments on commit c68d3ec

Please sign in to comment.