-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ishaan Ghaskadbi
authored and
Ishaan Ghaskadbi
committed
Nov 29, 2024
1 parent
88a8723
commit 5d310a0
Showing
12 changed files
with
274 additions
and
122 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
22 changes: 22 additions & 0 deletions
22
TeamCode/src/main/kotlin/org/firstinspires/ftc/teamcode/commands/intake/IntakeBeltCommand.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,22 @@ | ||
package org.firstinspires.ftc.teamcode.commands.intake | ||
|
||
import com.arcrobotics.ftclib.command.CommandBase | ||
import org.firstinspires.ftc.teamcode.subsystems.intake.IntakeBeltSubsystem | ||
|
||
class IntakeBeltCommand( | ||
private val intakeBelt: Boolean, | ||
private val intakeBeltSubsystem: IntakeBeltSubsystem | ||
) : CommandBase() { | ||
override fun execute() { | ||
if (intakeBelt) { | ||
intakeBeltSubsystem.intakePos() | ||
} | ||
else { | ||
intakeBeltSubsystem.outtakePos() | ||
} | ||
} | ||
|
||
/* override fun end(interrupted: Boolean) { | ||
intakeBeltSubsystem.stop() | ||
} | ||
*/} |
4 changes: 2 additions & 2 deletions
4
TeamCode/src/main/kotlin/org/firstinspires/ftc/teamcode/constants/ArmConstants.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 |
---|---|---|
@@ -1,8 +1,8 @@ | ||
package org.firstinspires.ftc.teamcode.constants | ||
|
||
enum class ArmConstants(val value: Double) { | ||
kP(1.0), | ||
kP(2.0), | ||
kI(0.0), | ||
kD(0.08), | ||
kD(0.0), | ||
kCos(0.01) | ||
} |
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
Oops, something went wrong.