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

Commit

Permalink
Document OI controls
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewda committed Feb 1, 2018
1 parent 5a339b7 commit 2ccf29e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/org/sert2521/powerup/util/Oi.kt
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,16 @@ import edu.wpi.first.wpilibj.Joystick
import edu.wpi.first.wpilibj.Preferences
import edu.wpi.first.wpilibj.XboxController

// Driver joysticks. Left and right used for tank drive, only right used for arcade drive.
val leftJoystick = Joystick(LEFT_STICK_PORT)
val rightJoystick = Joystick(RIGHT_STICK_PORT)
val secondaryJoystick = Joystick(SECONDARY_STICK_PORT)

// Driver controller. Used in "controller" control mode.
val controller = XboxController(CONTROLLER_PORT)

// Gunner joystick.
val secondaryJoystick = Joystick(SECONDARY_STICK_PORT)

val controlMode
get() = Preferences.getInstance().getString("control_mode", null).let {
when (it) {
Expand Down

0 comments on commit 2ccf29e

Please sign in to comment.