Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanjcoderman committed Oct 9, 2024
2 parents 04813c7 + 9de5976 commit ebdedec
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/main/java/frc/robot/arm/ArmSubsystem.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package frc.robot.arm;

import com.ctre.phoenix6.controls.MotionMagicVoltage;
import com.ctre.phoenix6.controls.PositionVoltage;
import com.ctre.phoenix6.hardware.TalonFX;
import dev.doglog.DogLog;
import edu.wpi.first.math.MathUtil;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ public LifecycleSubsystem(SubsystemPriority priority) {
LifecycleSubsystemManager.getInstance().registerSubsystem(this);

String name = this.getClass().getSimpleName();
subsystemName = name.substring(name.lastIndexOf('.') + 1);
name = name.substring(name.lastIndexOf('.') + 1);
if (name.endsWith("Subsystem")) {
name = name.substring(0, name.length() - "Subsystem".length());
}
subsystemName = name;
loggerName = "Scheduler/LifecycleSubsystem/" + subsystemName + ".periodic()";
}

Expand Down

0 comments on commit ebdedec

Please sign in to comment.