-
Notifications
You must be signed in to change notification settings - Fork 0
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
Storm surge #91
Conversation
@@ -196,7 +198,9 @@ object Shooter { | |||
val encoderConnected get() = inputs.absoluteEncoderConnected | |||
|
|||
override fun periodic() { | |||
val currentZero = zeroPos.getDouble(PivotIOKraken.ABSOLUTE_ENCODER_OFFSET.radians) | |||
numTicks++ |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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?
No description provided.