-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
13dcc46
commit dfd0789
Showing
6 changed files
with
98 additions
and
5 deletions.
There are no files selected for viewing
30 changes: 30 additions & 0 deletions
30
src/main/java/frc/robot/maps/subsystems/CoralManipMap.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package frc.robot.maps.subsystems; | ||
|
||
import com.chopshop166.chopshoplib.logging.DataWrapper; | ||
import com.chopshop166.chopshoplib.logging.LoggableMap; | ||
import com.chopshop166.chopshoplib.logging.data.MotorControllerData; | ||
import com.chopshop166.chopshoplib.motors.SmartMotorController; | ||
|
||
public class CoralManipMap implements LoggableMap<CoralManipMap.Data> { | ||
public SmartMotorController motor; | ||
|
||
public CoralManipMap() { | ||
this(new SmartMotorController()); | ||
} | ||
|
||
public CoralManipMap(SmartMotorController motor) { | ||
this.motor = motor; | ||
} | ||
|
||
// Will add data/logging stuff when we need it | ||
|
||
@Override | ||
public void updateData(Data data) { | ||
data.motor.updateData(motor); | ||
} | ||
|
||
public static class Data extends DataWrapper { | ||
public MotorControllerData motor = new MotorControllerData(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
package frc.robot.maps.subsystems; | ||
|
||
import com.chopshop166.chopshoplib.logging.DataWrapper; | ||
import com.chopshop166.chopshoplib.logging.LoggableMap; | ||
import com.chopshop166.chopshoplib.logging.data.MotorControllerData; | ||
import com.chopshop166.chopshoplib.motors.SmartMotorController; | ||
|
||
public class ElevatorMap implements LoggableMap<ElevatorMap.Data> { | ||
|
||
public SmartMotorController motor; | ||
|
||
public ElevatorMap() { | ||
this(new SmartMotorController()); | ||
} | ||
|
||
public ElevatorMap(SmartMotorController motor) { | ||
this.motor = motor; | ||
} | ||
|
||
// Will add data/logging stuff when we need it | ||
|
||
@Override | ||
public void updateData(Data data) { | ||
data.motor.updateData(motor); | ||
} | ||
|
||
public static class Data extends DataWrapper { | ||
public MotorControllerData motor = new MotorControllerData(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package frc.robot.subsystems; | ||
|
||
import com.chopshop166.chopshoplib.logging.LoggedSubsystem; | ||
|
||
import frc.robot.maps.subsystems.CoralManipMap; | ||
import frc.robot.maps.subsystems.CoralManipMap.Data; | ||
import edu.wpi.first.wpilibj2.command.Command; | ||
|
||
public class CoralManip extends LoggedSubsystem<Data, CoralManipMap> { | ||
|
||
public CoralManip(CoralManipMap coralManipMap) { | ||
super(new Data(), coralManipMap); | ||
} | ||
|
||
@Override | ||
public void safeState() { | ||
// TODO Auto-generated method stub | ||
throw new UnsupportedOperationException("Unimplemented method 'safeState'"); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters