Files
2022NoWayHome/src/main/java/frc4388/robot/subsystems/Turret.java
T

37 lines
783 B
Java
Raw Normal View History

2022-01-20 18:08:05 -07:00
// 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 frc4388.robot.subsystems;
import edu.wpi.first.wpilibj2.command.SubsystemBase;
public class Turret extends SubsystemBase {
/** Creates a new Turret. */
2022-01-21 20:56:25 -07:00
public CANSparkMax m_turretMotor;
2022-01-21 17:59:12 -07:00
//Variables
2022-01-21 20:56:25 -07:00
public Turret() {
m_turretMotor = turretMotor;
2022-01-21 17:59:12 -07:00
}
2022-01-20 18:08:05 -07:00
@Override
public void periodic() {
// This method will be called once per scheduler run
}
2022-01-21 17:59:12 -07:00
2022-01-21 20:56:25 -07:00
public void turnWithJoystick (double input)
{
m_turretMotor.set(input);
}
2022-01-21 17:59:12 -07:00
//function turnWithJoystick(double input)
// motor.set(input)
2022-01-20 18:08:05 -07:00
}
2022-01-21 17:59:12 -07:00
2022-01-21 20:56:25 -07:00
2022-01-21 17:59:12 -07:00
/** TODO
* setPosition function
* Limit switches
**/