mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 08:48:07 -06:00
Fished initializing
This commit is contained in:
@@ -40,7 +40,7 @@ public class RobotContainer {
|
|||||||
m_robotMap.rightBackEncoder
|
m_robotMap.rightBackEncoder
|
||||||
);
|
);
|
||||||
|
|
||||||
private final Serializer m_robotSerializer = new Serializer();
|
private final Serializer m_robotSerializer = new Serializer(m_robotMap.serializerBelt, m_robotMap.serializerShooterBelt);
|
||||||
|
|
||||||
private final LED m_robotLED = new LED(m_robotMap.LEDController);
|
private final LED m_robotLED = new LED(m_robotMap.LEDController);
|
||||||
|
|
||||||
|
|||||||
@@ -9,6 +9,7 @@ import com.ctre.phoenix.sensors.CANCoder;
|
|||||||
|
|
||||||
import edu.wpi.first.wpilibj.motorcontrol.Spark;
|
import edu.wpi.first.wpilibj.motorcontrol.Spark;
|
||||||
import frc4388.robot.Constants.LEDConstants;
|
import frc4388.robot.Constants.LEDConstants;
|
||||||
|
import frc4388.robot.Constants.SerializerConstants;
|
||||||
import frc4388.robot.Constants.SwerveDriveConstants;
|
import frc4388.robot.Constants.SwerveDriveConstants;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -92,4 +93,8 @@ public class RobotMap {
|
|||||||
//rightBackSteerMotor.configRemoteFeedbackFilter(rightBackEncoder.getDeviceID(), RemoteSensorSource.CANCoder, SwerveDriveConstants.REMOTE_0, SwerveDriveConstants.SWERVE_TIMEOUT_MS);
|
//rightBackSteerMotor.configRemoteFeedbackFilter(rightBackEncoder.getDeviceID(), RemoteSensorSource.CANCoder, SwerveDriveConstants.REMOTE_0, SwerveDriveConstants.SWERVE_TIMEOUT_MS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Serializer Subsystem */
|
||||||
|
|
||||||
|
public final Spark serializerBelt = new Spark(SerializerConstants.SERIALIZER_BELT);
|
||||||
|
public final Spark serializerShooterBelt = new Spark(SerializerConstants.SERIALIZER_SHOOTER_BELT);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user