Skip to content

Commit

Permalink
rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewChoulas committed Jan 20, 2024
1 parent 74cbc93 commit af159c1
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 63 deletions.

This file was deleted.

Empty file.
Empty file.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -17,52 +17,6 @@ import org.team4099.lib.units.perSecond

sealed interface Request {

sealed interface SuperstructureRequest : Request {
class Idle() : SuperstructureRequest
class Home() : SuperstructureRequest

class GroundIntakeCube() : SuperstructureRequest
class GroundIntakeCone() : SuperstructureRequest

class EjectGamePiece() : SuperstructureRequest

class DoubleSubstationIntakePrep(val gamePiece: GamePiece) : SuperstructureRequest
class SingleSubstationIntakePrep(val gamePiece: GamePiece) : SuperstructureRequest

class DoubleSubstationIntake() : SuperstructureRequest
class SingleSubstationIntake(val gamePiece: GamePiece) : SuperstructureRequest

class PrepScore(val gamePiece: GamePiece, val nodeTier: NodeTier) : SuperstructureRequest

class Score() : SuperstructureRequest

class Tuning() : SuperstructureRequest
}

// Implements RequestStructure to ensure standardized structure
sealed interface ManipulatorRequest : Request {
class TargetingPosition(val position: Length, val rollerVoltage: ElectricalPotential) :
ManipulatorRequest
class OpenLoop(val voltage: ElectricalPotential, val rollerVoltage: ElectricalPotential) :
ManipulatorRequest
class Home() : ManipulatorRequest
}

sealed interface ElevatorRequest : Request {
class TargetingPosition(
val position: Length,
val finalVelocity: LinearVelocity = 0.0.inches.perSecond,
val canContinueBuffer: Length = 5.0.inches
) : ElevatorRequest
class OpenLoop(val voltage: ElectricalPotential) : ElevatorRequest
class Home : ElevatorRequest
}

sealed interface IntakeRequest : Request {
class OpenLoop(val rollerVoltage: ElectricalPotential) : IntakeRequest
class Idle() : IntakeRequest
}

sealed interface DrivetrainRequest : Request {
class OpenLoop(
val angularVelocity: AngularVelocity,
Expand Down

0 comments on commit af159c1

Please sign in to comment.