-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathAutonomousRed.kt
More file actions
34 lines (27 loc) · 924 Bytes
/
AutonomousRed.kt
File metadata and controls
34 lines (27 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package org.firstinspires.ftc.teamcode
import com.qualcomm.ftccommon.SoundPlayer
import com.qualcomm.robotcore.eventloop.opmode.Autonomous
import com.qualcomm.robotcore.eventloop.opmode.LinearOpMode
import org.firstinspires.ftc.robotcore.external.navigation.DistanceUnit
@Autonomous(name = "Autonomous Red", group = "Linear Opmode")
class AutonomousRed : LinearOpMode() {
var robot = Hardware(hardwareMap)
var auto = AutoMovement(robot, this)
override fun runOpMode() {
/*
auto.armGrab()
*/
waitForStart()
/*
Thread.sleep(10000)
auto.armRaise(AutoMovement.Position.TOP)
auto.moveToDistance(40.0, 0.2)
auto.armRelease()
auto.moveToDistance(5.0, 0.2)
auto.robotStop() */
auto.armRaise(AutoMovement.Position.TOP)
auto.robotTranslate(0.6, AutoMovement.Direction.RIGHT)
while (!isStopRequested) {
}
}
}