summaryrefslogtreecommitdiff
path: root/src/main/java/frc/robot/Robot.java
diff options
context:
space:
mode:
authorkartofen <mladenovnasko0@gmail.com>2024-03-03 23:20:11 +0200
committerkartofen <mladenovnasko0@gmail.com>2024-03-03 23:20:11 +0200
commit39f4c3f833ec119a0060cb833c7a1953bca76eef (patch)
treed943fd0f8d6f0e5edf423ee8ba24aabb671717c5 /src/main/java/frc/robot/Robot.java
parentb929a1d34690d3d7fed6686459ff803962ce907f (diff)
more subsystems
Diffstat (limited to 'src/main/java/frc/robot/Robot.java')
-rw-r--r--src/main/java/frc/robot/Robot.java26
1 files changed, 9 insertions, 17 deletions
diff --git a/src/main/java/frc/robot/Robot.java b/src/main/java/frc/robot/Robot.java
index bdaae21..0a5123a 100644
--- a/src/main/java/frc/robot/Robot.java
+++ b/src/main/java/frc/robot/Robot.java
@@ -4,17 +4,23 @@
package frc.robot;
-import edu.wpi.first.wpilibj.TimedRobot;
+import org.littletonrobotics.junction.LoggedRobot;
+import org.littletonrobotics.junction.Logger;
+import org.littletonrobotics.junction.networktables.NT4Publisher;
+
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.CommandScheduler;
-public class Robot extends TimedRobot {
+public class Robot extends LoggedRobot {
private Command m_autonomousCommand;
private RobotContainer m_robotContainer;
@Override
public void robotInit() {
+ Logger.addDataReceiver(new NT4Publisher());
+ Logger.start();
+
m_robotContainer = new RobotContainer();
}
@@ -54,22 +60,8 @@ public class Robot extends TimedRobot {
}
}
- // GenericHID controller = Constants.controller;
- // CANSparkMax shooter_top = new CANSparkMax(21, MotorType.kBrushless);
- // CANSparkMax shooter_bottom = new CANSparkMax(22, MotorType.kBrushless);
- // CANSparkMax intakeL = new CANSparkMax(31, MotorType.kBrushless);
- // CANSparkMax intakeR = new CANSparkMax(32, MotorType.kBrushless);
-
@Override
- public void teleopPeriodic()
- {
- // shooter_top.setInverted(true);
- // shooter_bottom.setInverted(true);
- // shooter_top.set(controller.getRawAxis(1));
- // shooter_bottom.set(controller.getRawAxis(3));
- // intakeL.set(controller.getRawAxis(1));
- // intakeR.set(controller.getRawAxis(3));
- }
+ public void teleopPeriodic() {}
@Override
public void teleopExit() {}