-
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.
configuring wrist sim pid (what a w)
- Loading branch information
1 parent
33de50b
commit c0c4d2a
Showing
8 changed files
with
58 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -90,6 +90,7 @@ | |
} | ||
], | ||
"robotJoysticks": [ | ||
{}, | ||
{ | ||
"guid": "Keyboard0" | ||
} | ||
|
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
27 changes: 27 additions & 0 deletions
27
src/main/kotlin/com/team4099/robot2023/commands/wrist/WristPositioningCommand.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,27 @@ | ||
package com.team4099.robot2023.commands.wrist | ||
|
||
import edu.wpi.first.wpilibj2.command.Command | ||
import com.team4099.robot2023.subsystems.wrist.Wrist | ||
import com.team4099.robot2023.subsystems.wrist.WristIOSim.setWristPosition | ||
import org.littletonrobotics.junction.Logger | ||
import org.team4099.lib.units.derived.degrees | ||
import org.team4099.lib.units.derived.volts | ||
|
||
class WristPositioningCommand(wrist: Wrist) : Command() { | ||
init { | ||
addRequirements(wrist) | ||
} | ||
|
||
override fun initialize() { | ||
setWristPosition(45.degrees, 5.volts) | ||
} | ||
|
||
override fun execute() { | ||
Logger.recordOutput("ActiveCommands/WristPositioningCommand", true) | ||
} | ||
|
||
override fun isFinished(): Boolean { | ||
setWristPosition(0.degrees, 5.volts) | ||
return false | ||
} | ||
} |
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