-
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
fcc291d
commit 93f7b59
Showing
7 changed files
with
156 additions
and
2 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
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 DeepClimbMap implements LoggableMap<DeepClimbMap.Data> { | ||
|
||
public SmartMotorController motor; | ||
|
||
public DeepClimbMap() { | ||
this(new SmartMotorController()); | ||
} | ||
|
||
public DeepClimbMap(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,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
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.DeepClimbMap; | ||
import frc.robot.maps.subsystems.DeepClimbMap.Data; | ||
import edu.wpi.first.wpilibj2.command.Command; | ||
|
||
public class DeepClimb extends LoggedSubsystem<Data, DeepClimbMap> { | ||
|
||
public DeepClimb(DeepClimbMap deepClimbMap) { | ||
super(new Data(), deepClimbMap); | ||
} | ||
|
||
@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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package frc.robot.subsystems; | ||
|
||
import com.chopshop166.chopshoplib.logging.LoggedSubsystem; | ||
|
||
import frc.robot.maps.subsystems.ElevatorMap; | ||
import frc.robot.maps.subsystems.ElevatorMap.Data; | ||
|
||
import edu.wpi.first.wpilibj2.command.Command; | ||
|
||
public class Elevator extends LoggedSubsystem<Data, ElevatorMap> { | ||
|
||
public Elevator(ElevatorMap elevatorMap) { | ||
super(new Data(), elevatorMap); | ||
} | ||
|
||
@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