mirror of
https://github.com/Team4388/2022NoWayHome.git
synced 2026-06-09 00:38:05 -06:00
JavaDocs
This commit is contained in:
@@ -23,29 +23,52 @@ public class Serializer extends SubsystemBase{
|
||||
m_serializerShooterBelt.set(0);
|
||||
|
||||
}
|
||||
/**
|
||||
* Gets The State Of The Beam
|
||||
* @return The State Of The Beam
|
||||
*/
|
||||
public boolean getBeam() {
|
||||
return m_serializerBeam.get();
|
||||
}
|
||||
public void setSerializerStateWithBeam(boolean ctrlbutter, boolean beambroken) {
|
||||
boolean total = ctrlbutter || beambroken;
|
||||
/**
|
||||
* Sets The Serializer State With The Beam
|
||||
* @param state Your State Of The Button
|
||||
* @param beambroken The State of the Beam Senser
|
||||
*/
|
||||
public void setSerializerStateWithBeam(boolean state, boolean beambroken) {
|
||||
boolean total = state || beambroken;
|
||||
setSerializerState(total);
|
||||
}
|
||||
/**
|
||||
* Sets The Serializer State With The Beam
|
||||
* @param state Your State Of The Button
|
||||
*/
|
||||
public void setSerializerState(boolean state) {
|
||||
setSerializerBeltState(state);
|
||||
setSerializerShooterBeltState(state);
|
||||
serializerState = state;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Serializer Belt State
|
||||
* @param state Your State Of The Button
|
||||
*/
|
||||
public void setSerializerBeltState(boolean state) {
|
||||
double serializerBeltSpeed = state ? Constants.SerializerConstants.SERIALIZER_BELT_SPEED : 0.d;
|
||||
m_serializerBelt.set(serializerBeltSpeed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the Shooter Belt State
|
||||
* @param state Your State Of The Button
|
||||
*/
|
||||
public void setSerializerShooterBeltState(boolean state) {
|
||||
double serializerShooterBeltSpeed = state ? Constants.SerializerConstants.SERIALIZER_SHOOTER_BELT_SPEED : 0.d;
|
||||
m_serializerShooterBelt.set(serializerShooterBeltSpeed);
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the Serializer State
|
||||
* @return The Serializer State
|
||||
*/
|
||||
public boolean getSerializerState() {
|
||||
return serializerState;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user