From 39f4c3f833ec119a0060cb833c7a1953bca76eef Mon Sep 17 00:00:00 2001 From: kartofen Date: Sun, 3 Mar 2024 23:20:11 +0200 Subject: more subsystems --- src/main/java/frc/robot/Robot.java | 26 +++++++++----------------- 1 file changed, 9 insertions(+), 17 deletions(-) (limited to 'src/main/java/frc/robot/Robot.java') 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() {} -- cgit v1.2.3