mirror of
https://github.com/trc492/FtcTemplate.git
synced 2025-07-19 05:36:26 -07:00
Added Turret subsystem sample code.
This commit is contained in:
@ -39,6 +39,7 @@ import teamcode.subsystems.RobotBase;
|
||||
import teamcode.subsystems.RumbleIndicator;
|
||||
import teamcode.subsystems.ServoWrist;
|
||||
import teamcode.subsystems.Shooter;
|
||||
import teamcode.subsystems.Turret;
|
||||
import teamcode.vision.Vision;
|
||||
import trclib.dataprocessor.TrcDiscreteValue;
|
||||
import trclib.motor.TrcMotor;
|
||||
@ -80,6 +81,7 @@ public class Robot
|
||||
// Subsystems.
|
||||
public TrcMotor elevator;
|
||||
public TrcMotor arm;
|
||||
public TrcMotor turret;
|
||||
public TrcShooter shooter;
|
||||
public TrcDiscreteValue shooterVelocity;
|
||||
public TrcIntake intake;
|
||||
@ -144,6 +146,11 @@ public class Robot
|
||||
arm = new Arm().getMotor();
|
||||
}
|
||||
|
||||
if (RobotParams.Preferences.useTurret)
|
||||
{
|
||||
turret = new Turret().getMotor();
|
||||
}
|
||||
|
||||
if (RobotParams.Preferences.useShooter)
|
||||
{
|
||||
shooter = new Shooter().getShooter();
|
||||
|
Reference in New Issue
Block a user