diff --git a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/api/Box.kt b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/api/Box.kt index 29ebf8a8..f0ad98af 100644 --- a/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/api/Box.kt +++ b/TeamCode/src/main/java/org/firstinspires/ftc/teamcode/api/Box.kt @@ -1,17 +1,14 @@ package org.firstinspires.ftc.teamcode.api import com.qualcomm.robotcore.eventloop.opmode.OpMode -import com.qualcomm.robotcore.hardware.DcMotor import com.qualcomm.robotcore.hardware.Servo object Box : API() { - private lateinit var boxL: Servo private lateinit var boxR: Servo private lateinit var grip: Servo - override fun init(opMode : OpMode) { - + override fun init(opMode: OpMode) { super.init(opMode) this.boxL = this.hardwareMap.get(Servo::class.java, "boxL") @@ -19,33 +16,33 @@ object Box : API() { this.grip = this.hardwareMap.get(Servo::class.java, "grip") } - /* - * Moves the box to the ground - */ + /** + * Moves the box to the ground + */ fun dropBox() { boxL.position = 0.5 boxR.position = 0.5 } - /* - * Moves box to upright position - */ + /** + * Moves box to upright position + */ fun pickUpBox() { boxL.position = 0.0 boxL.position = 0.0 } - /* - * Moves the grip to keep pixels in place when [pickUpBox] the box - */ + /** + * Moves the grip to keep pixels in place when [pickUpBox] the box + */ fun gripIn() { grip.position = 0.2 } - /* - * Resets the grip to starting position - */ + /** + * Resets the grip to starting position + */ fun gripOut() { grip.position = 0.0 } -} \ No newline at end of file +}