Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Storm surge #91

Merged
merged 6 commits into from
Oct 29, 2024
Merged

Storm surge #91

merged 6 commits into from
Oct 29, 2024

Conversation

Craftzman7
Copy link
Contributor

No description provided.

@Craftzman7 Craftzman7 merged commit 6f68e51 into main Oct 29, 2024
1 check passed
@@ -196,7 +198,9 @@ object Shooter {
val encoderConnected get() = inputs.absoluteEncoderConnected

override fun periodic() {
val currentZero = zeroPos.getDouble(PivotIOKraken.ABSOLUTE_ENCODER_OFFSET.radians)
numTicks++
Copy link
Contributor

@rezetta15 rezetta15 Oct 30, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert(numTicks <= 20 && numTicks >=0)

@@ -264,7 +263,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(229.5) + HARDSTOP_OFFSET
val ABSOLUTE_ENCODER_OFFSET: Rotation2d = Rotation2d.fromDegrees(343.3) + HARDSTOP_OFFSET
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where the hell did 343.3 come from? Explain in comment.

@@ -47,7 +46,7 @@ object Drivetrain : Subsystem, TalonFXStatusProvider {
/** Unit: Percent of max robot speed */
private const val TRANSLATION_SENSITIVITY = 1.0
/** Unit: Rotations per second */
private const val ROTATION_SENSITIVITY = 0.9
private const val ROTATION_SENSITIVITY = 1.25
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.25 comes from getting joystick control that felt good to Calvin. Note this.

.whileTrue(
Shooter.Flywheels.intake()
)
// Trigger(joystickLeft::getTrigger)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can delete this, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants