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
// Copyright (c) FIRST and other WPILib contributors. | |
// Open Source Software; you can modify and/or share it under the terms of | |
// the WPILib BSD license file in the root directory of this 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. |
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
// Copyright (c) FIRST and other WPILib contributors. | |
// Open Source Software; you can modify and/or share it under the terms of | |
// the WPILib BSD license file in the root directory of this 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 |
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
// Copyright (c) FIRST and other WPILib contributors. | |
// Open Source Software; you can modify and/or share it under the terms of | |
// the WPILib BSD license file in the root directory of this project. | |
package frc.robot.commands; | |
import edu.wpi.first.wpilibj.command.Command; | |
/** Add your docs here. */ | |
public class TankDrive extends Command { |
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
package frc.robot; | |
import com.ctre.phoenix.motorcontrol.ControlMode; | |
import com.ctre.phoenix.motorcontrol.can.TalonSRX; | |
import edu.wpi.first.wpilibj.command.Subsystem; | |
public class Drivetrain extends Subsystem { | |
private TalonSRX motorLeft1 = new TalonSRX(RobotMap.MOTOR_LEFT_1_ID); | |
private TalonSRX motorLeft2 = new TalonSRX(RobotMap.MOTOR_LEFT_2_ID); |