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

Commit

Permalink
feat: make linear slide power configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
BD103 committed Jan 18, 2024
1 parent 4ee9fca commit 82052a7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ object TeleOpMovement : Component {
}

if (gamepad.dpad_down) {
LinearSlide.power(-0.4)
LinearSlide.power(RobotConfig.TeleOpMovement.SLIDE_DOWN_POWER)
} else if (gamepad.dpad_up) {
LinearSlide.power(0.6)
LinearSlide.power(RobotConfig.TeleOpMovement.SLIDE_UP_POWER)
} else {
LinearSlide.stop()
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ object RobotConfig {

@JvmField
var SLOW_MULTIPLIER: Double = 0.4

@JvmField
var SLIDE_UP_POWER: Double = 0.6

@JvmField
var SLIDE_DOWN_POWER: Double = -0.4
}

/**
Expand Down

0 comments on commit 82052a7

Please sign in to comment.