* ClimbConstants.WHEEL_RADIUS / ClimbConstants.CLIMB_GEAR_RATIO);
}
updateInputs();
- if (!Constants.DISABLE_LOGGING) {
- Logger.processInputs("LinearClimb", inputs);
- }
+ Logger.processInputs("LinearClimb", inputs);
}
/**
}
updateInputs();
- if (!Constants.DISABLE_LOGGING) {
- Logger.processInputs("Intake", inputs);
- }
+ Logger.processInputs("Intake", inputs);
if (!Constants.DISABLE_SMART_DASHBOARD) {
SmartDashboard.putBoolean("Intake Calibrated", !calibrating);
public void periodic() {
odometryLock.lock(); // Prevents odometry updates while reading data
gyroIO.updateInputs(gyroInputs);
- if (!Constants.DISABLE_LOGGING) {
- Logger.processInputs("Drive/Gyro", gyroInputs);
- }
+ Logger.processInputs("Drive/Gyro", gyroInputs);
for (var module : modules) {
module.periodic();
}
state, state, state, state
}, false);
}
-}
\ No newline at end of file
+}
public void periodic() {
updateInputs();
- if (!Constants.DISABLE_LOGGING) {
- Logger.processInputs("Drive/Module" + Integer.toString(moduleConstants.ordinal()), inputs);
- }
+ Logger.processInputs("Drive/Module" + Integer.toString(moduleConstants.ordinal()), inputs);
// Calculate positions for odometry
int sampleCount = inputs.odometryTimestamps.length; // All signals are sampled together
return inputs.odometryTimestamps;
}
-}
\ No newline at end of file
+}
@Override
public void periodic() {
updateInputs();
- if (!Constants.DISABLE_LOGGING) {
- Logger.processInputs("Hood", inputs);
- }
+ Logger.processInputs("Hood", inputs);
// goalAngle = Rotation2d.fromDegrees(SmartDashboard.getNumber("Hood Setpoint", goalAngle.getDegrees()));
// SmartDashboard.putNumber("Hood Setpoint", goalAngle.getDegrees());
inputs.shooterCurrentRight = shooterMotorRight.getStatorCurrent().getValueAsDouble();
- if (!Constants.DISABLE_LOGGING) {
- Logger.processInputs("Shooter", inputs);
- }
+ Logger.processInputs("Shooter", inputs);
}
public void bumpUpShooterModifier() {
@Override
public void periodic() {
updateInputs();
- if (!Constants.DISABLE_LOGGING) {
- Logger.processInputs("Spindexer", inputs);
- }
+ Logger.processInputs("Spindexer", inputs);
if (resetPos == null) {
motor.setPosition(0.1 * gearRatio);
@Override
public void periodic() {
updateInputs();
- if (!Constants.DISABLE_LOGGING) {
- Logger.processInputs("Turret", inputs);
- }
+ Logger.processInputs("Turret", inputs);
// Position extrapolation
double lookAheadSeconds = TurretConstants.EXTRAPOLATION_TIME_CONSTANT;
ligament.setAngle(Units.radiansToDegrees(getPositionRad()));
updateInputs();
- if (!Constants.DISABLE_LOGGING) {
- Logger.processInputs("Turret", inputs);
- }
+ Logger.processInputs("Turret", inputs);
if (!Constants.DISABLE_SMART_DASHBOARD) {
SmartDashboard.putNumber("Turret position", Units.radiansToDegrees(getPositionRad()));
inputs.connected = camera.isConnected();
inputs.results = camera.getAllUnreadResults();
- if (!Constants.DISABLE_LOGGING) {
- Logger.processInputs("Vision/"+camera.getName(), inputs);
- }
+ Logger.processInputs("Vision/"+camera.getName(), inputs);
// Mechanical Advantage's vision logging
// // Read new camera observations