Skip to content

Commit

Permalink
saving
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Duckett committed Dec 31, 2023
1 parent c040654 commit ed50564
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 7 deletions.
20 changes: 14 additions & 6 deletions src/main/java/frc/robot/Subsytems/Intake/IntakeHardware.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package frc.robot.Subsytems.Intake;

import edu.wpi.first.util.sendable.SendableBuilder;
import edu.wpi.first.wpilibj.Preferences;
import frc.lib.hardware.Motors.*;
import frc.lib.hardware.sensor.proximitySwitch.*;
Expand Down Expand Up @@ -51,12 +52,6 @@ public void disable() {
}

// Loging ------------------------------------
@Override
public void toLog(LogTable table) {
table.put("setPercentOut", setPercentOut);
mIntake.toLog(table);
switch1.toLog(table, "ProximitySwitch" + switch1.getDIOChannel());
}

public void setSimpleName(String SimpleName) {
this.SimpleName = SimpleName;
Expand All @@ -76,4 +71,17 @@ private void initPrefrences() {
public void loadPreferences() {
setPercentOut = Preferences.getDouble(SimpleName + "/maxVolts", setPercentOut);
}

@Override
public void initSendable(SendableBuilder builder) {
// TODO Auto-generated method stub
throw new UnsupportedOperationException("Unimplemented method 'initSendable'");
}

@Override
public void toLog(LogTable table) {
table.put("setPercentOut", setPercentOut);
mIntake.toLog(table);
switch1.toLog(table, "ProximitySwitch" + switch1.getDIOChannel());
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
package frc.robot.Subsytems.Intake;

import edu.wpi.first.util.sendable.Sendable;
import frc.robot.Subsytems.SubsytemRequirments;

public interface IntakeRequirments extends SubsytemRequirments {
public interface IntakeRequirments extends SubsytemRequirments, Sendable {

// Controling the hardware
void setOutakeSpeed();
Expand Down

0 comments on commit ed50564

Please sign in to comment.