Skip to content
This repository has been archived by the owner on Dec 11, 2024. It is now read-only.

Commit

Permalink
invert joysticks and add new auto
Browse files Browse the repository at this point in the history
  • Loading branch information
drive station committed Oct 17, 2024
1 parent d53abc8 commit 9b8d324
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 3 deletions.
56 changes: 56 additions & 0 deletions src/main/deploy/pathplanner/autos/Amp 1 Piece, Mobility.auto
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"version": 1.0,
"startingPose": {
"position": {
"x": 0.7003471493721009,
"y": 6.668600082397461
},
"rotation": 60.52408484195273
},
"command": {
"type": "sequential",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "ensureNoteSecure"
}
},
{
"type": "race",
"data": {
"commands": [
{
"type": "named",
"data": {
"name": "revAimSpeaker"
}
},
{
"type": "named",
"data": {
"name": "shootWhenReady"
}
}
]
}
},
{
"type": "named",
"data": {
"name": "stow"
}
},
{
"type": "path",
"data": {
"pathName": "Amp 1-Piece, Mobility 2"
}
}
]
}
},
"folder": "Amp Side",
"choreoAuto": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -241,8 +241,8 @@ object Drivetrain : Subsystem, TalonFXStatusProvider {

chassisSpeeds =
ChassisSpeeds.fromFieldRelativeSpeeds(
translationInput.x * FREE_SPEED.baseUnitMagnitude() * TRANSLATION_SENSITIVITY,
translationInput.y * FREE_SPEED.baseUnitMagnitude() * TRANSLATION_SENSITIVITY,
-translationInput.x * FREE_SPEED.baseUnitMagnitude() * TRANSLATION_SENSITIVITY,
-translationInput.y * FREE_SPEED.baseUnitMagnitude() * TRANSLATION_SENSITIVITY,
-rotationJoystick.x * TAU * ROTATION_SENSITIVITY,
gyroRotation.toRotation2d()
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ class PivotIOKraken : PivotIO {
const val PROFILE_JERK = 80.0

val HARDSTOP_OFFSET: Rotation2d = Rotation2d.fromDegrees(-27.0)
val ABSOLUTE_ENCODER_OFFSET: Rotation2d = Rotation2d.fromDegrees(219.5) + HARDSTOP_OFFSET
val ABSOLUTE_ENCODER_OFFSET: Rotation2d = Rotation2d.fromDegrees(229.5) + HARDSTOP_OFFSET
}

override val talonCANStatuses = listOf(leftMotor.version, rightMotor.version)
Expand Down

0 comments on commit 9b8d324

Please sign in to comment.