Turret WIP

This commit is contained in:
neil92150
2022-01-21 20:56:25 -07:00
parent 445cce2ca6
commit 2b49f8ed8d
4 changed files with 38 additions and 11 deletions
@@ -8,11 +8,10 @@ import edu.wpi.first.wpilibj2.command.SubsystemBase;
public class Turret extends SubsystemBase {
/** Creates a new Turret. */
//Motor object
public CANSparkMax m_turretMotor;
//Variables
public Turret(/*Motor argument*/ */) {
//Motor object = motor argument
//Config motor
public Turret() {
m_turretMotor = turretMotor;
}
@Override
@@ -20,16 +19,19 @@ public class Turret extends SubsystemBase {
// This method will be called once per scheduler run
}
public void turnWithJoystick (double input)
{
m_turretMotor.set(input);
}
//function turnWithJoystick(double input)
// motor.set(input)
}
/** TODO
* Constants ID
* RobotMap configs
* RobotContainer defaultCommand and Instantiation
* turnWithJoystick function
* setPosition function
* Limit switches
**/