-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Clear errors in Drive Path command still have errors with .calculate …
…(its not abstracted yet) and a few other minor errors to fix
- Loading branch information
Showing
4 changed files
with
62 additions
and
51 deletions.
There are no files selected for viewing
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
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
9 changes: 9 additions & 0 deletions
9
src/main/kotlin/com/team4099/robot2023/util/driver/DriveStateTypes.kt
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,9 @@ | ||
package com.team4099.robot2023.util.driver | ||
|
||
import com.team4099.robot2023.util.CustomTrajectoryState | ||
import edu.wpi.first.math.trajectory.Trajectory | ||
|
||
sealed interface DriveStateTypes { | ||
data class WPILIBDriveStateType(val state: Trajectory.State) : DriveStateTypes | ||
data class CustomDriveState(val state: CustomTrajectoryState) : DriveStateTypes | ||
} |