summaryrefslogtreecommitdiff
path: root/src/main/java/frc/robot/subsystems/Hooks.java
blob: b6c26c54e57b374137e3adda26b7df875c496f20 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package frc.robot.subsystems;

import java.lang.constant.Constable;

import com.revrobotics.CANSparkMax;
import com.revrobotics.CANSparkLowLevel.MotorType;

import frc.robot.Constants;


import edu.wpi.first.wpilibj2.command.SubsystemBase;

public class Hooks extends SubsystemBase 
{
    private final CANSparkMax m_hookL = new CANSparkMax(Constants.hookL_ID, MotorType.kBrushed);
    private final CANSparkMax m_hookR = new CANSparkMax(Constants.hookR_ID, MotorType.kBrushed);

    public Hooks() 
    { 
        // TODO: possibly invert to move forward upon positive votage
        // TODO: invert one hook
        m_hookL.setInverted(true);
    }

    public void atPercentage(double percL, double percR)
    {
        m_hookL.set(percL);
        m_hookR.set(percR);
    }

}