diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 80aba29..2c8e3fc 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -38,7 +38,7 @@ public RobotContainer() { //This causes the xrp to drive based on the left joystick y and right joystick x of the controller by default. //It uses lambdas to make the parameters suppliers, which means that instead of them being constant, they rerun each time the command is scheduled. //The values are negated because the axes are flipped for some reason. - //m_xrpDrivetrain.setDefaultCommand(DriveCommands.arcadeDriveCommand(()-> -m_controller.getLeftY(), () -> -m_controller.getRightX())); + m_xrpDrivetrain.setDefaultCommand(DriveCommands.arcadeDriveCommand(()-> -m_controller.getLeftY(), () -> -m_controller.getRightX())); //TODO: Task 4-Comment out the above line by adding // to the left of it. Then, set the default command to be your tankDriveCommand. //HINT: In tank drive, the left wheel is controlled by the y axis of the left joystick and the y axis of the right joystick. //Priyanshu Kanhere diff --git a/src/main/java/frc/robot/subsystems/Servo.java b/src/main/java/frc/robot/subsystems/Servo.java index 7c7e35e..7975902 100644 --- a/src/main/java/frc/robot/subsystems/Servo.java +++ b/src/main/java/frc/robot/subsystems/Servo.java @@ -9,9 +9,9 @@ public class Servo extends SubsystemBase { public Servo(){ // Device number 4 maps to the physical Servo 1 port on the XRP m_armServo = new XRPServo(4); - + } //TODO: Task 5-Write functions to control the arm. You should be able to set the arm's angle and get the angle //it is at. - //HINT: Type 'm_armServo.' (without quotes) in a method body to see all of the different methods the servo has. -} + //HINT: Type 'm_armServo.' (without quotes) in a method body to see all of the different methods the servo has +} \ No newline at end of file